@gaialabs/core 0.2.1 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +411 -269
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +36 -13
- package/dist/index.d.mts +36 -13
- package/dist/index.mjs +411 -270
- package/dist/index.mjs.map +1 -1
- package/package.json +5 -5
package/dist/index.d.cts
CHANGED
|
@@ -66,6 +66,7 @@ declare enum AddressType {
|
|
|
66
66
|
Address = "Address",
|
|
67
67
|
WBank = "WBank",
|
|
68
68
|
Relative = "Relative",
|
|
69
|
+
WRelative = "WRelative",
|
|
69
70
|
Location = "Location",
|
|
70
71
|
}
|
|
71
72
|
/**
|
|
@@ -84,6 +85,10 @@ declare enum MemoryMapMode {
|
|
|
84
85
|
Hi = "Hi",
|
|
85
86
|
ExHi = "ExHi",
|
|
86
87
|
}
|
|
88
|
+
declare enum CpuMode {
|
|
89
|
+
Slow = "Slow",
|
|
90
|
+
Fast = "Fast",
|
|
91
|
+
}
|
|
87
92
|
/**
|
|
88
93
|
* SNES address structure
|
|
89
94
|
* Converted from GaiaLib/Types/Address.cs
|
|
@@ -98,9 +103,10 @@ declare class Address {
|
|
|
98
103
|
constructor(bank: number, offset: number, mode: MemoryMapMode);
|
|
99
104
|
get isROM(): boolean;
|
|
100
105
|
get isCodeBank(): boolean;
|
|
101
|
-
|
|
102
|
-
static
|
|
106
|
+
toLocation(): number;
|
|
107
|
+
static fromLocation(value: number, mode: MemoryMapMode, cpuMode: CpuMode): Address;
|
|
103
108
|
static resolveBank(value: number, mode: MemoryMapMode): number;
|
|
109
|
+
toInt(): number;
|
|
104
110
|
toString(): string;
|
|
105
111
|
static typeFromCode(code: string): AddressType;
|
|
106
112
|
static codeFromType(type: AddressType): string | null;
|
|
@@ -209,12 +215,12 @@ declare enum BinType {
|
|
|
209
215
|
Palette = "Palette",
|
|
210
216
|
Sound = "Sound",
|
|
211
217
|
Music = "Music",
|
|
212
|
-
Unknown = "Unknown",
|
|
213
218
|
Meta17 = "Meta17",
|
|
214
219
|
Spritemap = "Spritemap",
|
|
215
220
|
Assembly = "Assembly",
|
|
216
221
|
Patch = "Patch",
|
|
217
222
|
Transform = "Transform",
|
|
223
|
+
Binary = "Binary",
|
|
218
224
|
}
|
|
219
225
|
//#endregion
|
|
220
226
|
//#region src/types/transforms.d.ts
|
|
@@ -317,7 +323,7 @@ interface ICompressionProvider {
|
|
|
317
323
|
* @param srcData Source data to compress
|
|
318
324
|
* @returns Compressed data
|
|
319
325
|
*/
|
|
320
|
-
compact(srcData: Uint8Array): Uint8Array;
|
|
326
|
+
compact(srcData: Uint8Array, srcPosition?: number, srcLen?: number): Uint8Array;
|
|
321
327
|
}
|
|
322
328
|
//#endregion
|
|
323
329
|
//#region src/types/files.d.ts
|
|
@@ -349,7 +355,7 @@ declare class ChunkFile {
|
|
|
349
355
|
constructor(name: string, size: number, location: number, type: DbFileType);
|
|
350
356
|
}
|
|
351
357
|
declare function createChunkFileFromDbFile(rom: Uint8Array, compression: ICompressionProvider, dbFile: DbFile, fileType: DbFileType): ChunkFile;
|
|
352
|
-
declare function createChunkFileFromDbBlock(block: DbBlock, fileType: DbFileType): ChunkFile;
|
|
358
|
+
declare function createChunkFileFromDbBlock(block: DbBlock, fileType: DbFileType, memoryMode: MemoryMapMode): ChunkFile;
|
|
353
359
|
/**
|
|
354
360
|
* Chunk file utilities
|
|
355
361
|
*/
|
|
@@ -615,7 +621,7 @@ declare class LocationWrapper {
|
|
|
615
621
|
declare class DbStringCommand {
|
|
616
622
|
id: number;
|
|
617
623
|
name: string;
|
|
618
|
-
types:
|
|
624
|
+
types: string[];
|
|
619
625
|
delimiter?: number;
|
|
620
626
|
halt: boolean;
|
|
621
627
|
constructor(data: Partial<DbStringCommand>);
|
|
@@ -633,7 +639,6 @@ declare class DbStringDictionary {
|
|
|
633
639
|
range: number;
|
|
634
640
|
command: number;
|
|
635
641
|
name: string;
|
|
636
|
-
suffix: string;
|
|
637
642
|
entries: string[];
|
|
638
643
|
constructor(data: Partial<DbStringDictionary>);
|
|
639
644
|
}
|
|
@@ -652,6 +657,10 @@ declare class DbStringType {
|
|
|
652
657
|
layers: DbStringLayer[];
|
|
653
658
|
greedyTerminator: boolean;
|
|
654
659
|
dictionaries: Record<string, DbStringDictionary>;
|
|
660
|
+
dictionaryLookup: {
|
|
661
|
+
text: string;
|
|
662
|
+
id: number;
|
|
663
|
+
}[];
|
|
655
664
|
constructor(data: Partial<DbStringType>);
|
|
656
665
|
}
|
|
657
666
|
/**
|
|
@@ -829,10 +838,16 @@ declare function createDbPath(folder?: string, extension?: string): DbPath;
|
|
|
829
838
|
interface DbConfig {
|
|
830
839
|
sfxLocation: number;
|
|
831
840
|
sfxCount: number;
|
|
841
|
+
sfxType: string;
|
|
842
|
+
sfxPack: string;
|
|
832
843
|
compression: string;
|
|
844
|
+
uncompress: boolean;
|
|
833
845
|
entryPoints: DbEntryPoint[];
|
|
834
846
|
paths: Record<BinType, DbPath>;
|
|
835
847
|
memoryMode: MemoryMapMode;
|
|
848
|
+
cpuMode: CpuMode;
|
|
849
|
+
chipset: number;
|
|
850
|
+
ramSize: number;
|
|
836
851
|
}
|
|
837
852
|
//#endregion
|
|
838
853
|
//#region src/database/structs.d.ts
|
|
@@ -921,6 +936,7 @@ interface DbRoot {
|
|
|
921
936
|
structs: Record<string, DbStruct>;
|
|
922
937
|
stringTypes: Record<string, DbStringType>;
|
|
923
938
|
stringDelimiters: string[];
|
|
939
|
+
stringDelimiterLookup: Record<string, DbStringType>;
|
|
924
940
|
files: DbFile[];
|
|
925
941
|
config: DbConfig;
|
|
926
942
|
blocks: DbBlock[];
|
|
@@ -957,7 +973,7 @@ declare class DbRootUtils {
|
|
|
957
973
|
static fromGameModule(module: DbGameRomModule): DbRoot;
|
|
958
974
|
static applyFolder(root: DbRoot, folderPath: string, sourceFiles?: ChunkFile[]): Promise<ChunkFile[]>;
|
|
959
975
|
static extractAllContent(root: DbRoot, romPath: string, outPath: string): Promise<void>;
|
|
960
|
-
static rebuildAllContent(root: DbRoot, inPath: string[], outPath: string): Promise<
|
|
976
|
+
static rebuildAllContent(root: DbRoot, inPath: string[], outPath: string): Promise<ChunkFile[]>;
|
|
961
977
|
}
|
|
962
978
|
//#endregion
|
|
963
979
|
//#region src/database/labels.d.ts
|
|
@@ -1406,8 +1422,12 @@ declare class RomLayout {
|
|
|
1406
1422
|
private bestDepth;
|
|
1407
1423
|
private bestOffset;
|
|
1408
1424
|
private bestRemain;
|
|
1409
|
-
|
|
1410
|
-
|
|
1425
|
+
private root;
|
|
1426
|
+
private config;
|
|
1427
|
+
private sfxPackType;
|
|
1428
|
+
readonly sfxFiles: ChunkFile[];
|
|
1429
|
+
constructor(files: ChunkFile[], root: DbRoot);
|
|
1430
|
+
organize(): number;
|
|
1411
1431
|
private testDepth;
|
|
1412
1432
|
private commitPage;
|
|
1413
1433
|
}
|
|
@@ -1419,12 +1439,14 @@ declare class RomLayout {
|
|
|
1419
1439
|
*/
|
|
1420
1440
|
declare class RomWriter {
|
|
1421
1441
|
bpsPath?: string;
|
|
1422
|
-
|
|
1442
|
+
outBuffer?: Uint8Array;
|
|
1443
|
+
private romSize?;
|
|
1423
1444
|
readonly cartName: string;
|
|
1424
1445
|
readonly makerCode: string;
|
|
1425
1446
|
readonly root: DbRoot;
|
|
1426
1447
|
constructor(root: DbRoot, cartName: string, makerCode: string);
|
|
1427
1448
|
repack(files: ChunkFile[]): Promise<Uint8Array>;
|
|
1449
|
+
allocate(pages: number): void;
|
|
1428
1450
|
writeHeader(): void;
|
|
1429
1451
|
writeChecksum(): void;
|
|
1430
1452
|
writeEntryPoints(asmFiles: ChunkFile[]): void;
|
|
@@ -1490,6 +1512,7 @@ declare class StringProcessor {
|
|
|
1490
1512
|
private readonly context;
|
|
1491
1513
|
private readonly root;
|
|
1492
1514
|
private readonly stringCharLookup;
|
|
1515
|
+
private readonly testRegex;
|
|
1493
1516
|
constructor(context: AssemblerContext);
|
|
1494
1517
|
consumeString(typeChar: string): void;
|
|
1495
1518
|
private flushBuffer;
|
|
@@ -1624,7 +1647,7 @@ declare class QuintetLZ implements ICompressionProvider {
|
|
|
1624
1647
|
* @param srcData Source data to compress
|
|
1625
1648
|
* @returns Compressed data
|
|
1626
1649
|
*/
|
|
1627
|
-
compact(srcData: Uint8Array): Uint8Array;
|
|
1650
|
+
compact(srcData: Uint8Array, srcPosition?: number, srcLen?: number): Uint8Array;
|
|
1628
1651
|
}
|
|
1629
1652
|
//#endregion
|
|
1630
1653
|
//#region src/compression/index.d.ts
|
|
@@ -2448,5 +2471,5 @@ declare const isPlatformBrowser: boolean;
|
|
|
2448
2471
|
declare const isPlatformNode: string;
|
|
2449
2472
|
declare const isPlatformWebWorker: boolean;
|
|
2450
2473
|
//#endregion
|
|
2451
|
-
export { Address, AddressSpace, AddressType, AddressingModeHandler, AsmBlock, AsmBlockUtils, AsmReader, Assembler, AssemblerContext, AssemblerState, BaseRomBranchData, BaseRomBranchFileRaw, BaseRomData, BaseRomFileData, BaseRomFileRaw, BaseRomPayload, BinType, BitStream, BlockReader, BlockReaderConstants, BlockWriter, BranchBaseData, Byte, ChunkFile, ChunkFileUtils, CollaborationConfig, CompressionAlgorithms, CompressionRegistry, CopCommandProcessor, CopDef, Database, DbAddressingMode, DbAsset, DbBaseRomModule, DbBlock, DbConfig, DbEntryPoint, DbFile, DbFileType, DbGameRomModule, DbGroup, DbLabel, DbMnemonic, DbOverride, DbPart, DbPath, DbRewrite, DbRoot, DbRootUtils, DbScene, DbSfx, DbStringCommand, DbStringDictionary, DbStringLayer, DbStringType, DbStringTypeUtils, DbStruct, DbTransform, DebugExporter, DirectoryEntry, FileBaseData, FileBaseRaw, FileReadOptions, FromSupabaseByNameOptions, FromSupabaseByProjectOptions, GAIA_CORE_VERSION, GameData, GameRomArtifactData, GameRomArtifactRaw, GameRomBranchArtifactRaw, GameRomBranchData, GameRomData, ICompressionProvider, LocationWrapper, Long, MapExt, MemberType, MemoryMapMode, ObjectType, Op, OpCode, OperationContext, PlatformBranchData, PlatformData, PostProcessor, ProcessorStateManager, ProjectBranchData, ProjectBranchFileRaw, ProjectConfig, ProjectData, ProjectFileData, ProjectFileRaw, ProjectPayload, QueryStats, QuintetLZ, ReferenceManager, RegionData, RegisterType, Registers, RomDataReader, RomGenerator, RomLayout, RomProcessingConstants, RomProcessor, RomState, RomStateUtils, RomWriter, SortedMap, SpriteFrame, SpriteGroup, SpriteMap, SpritePart, Stack, StackOperations, StatusFlags, StringEntry, StringMarker, StringProcessor, StringReader, StringSizeComparer, StringWrapper, StructDef, SupabaseErrorCode, SupabaseFromError, SupabaseResult, TableEntry, TransformProcessor, TypeParser, TypedNumber, Word, XformDef, XformType, base64ToUint8Array, binaryToUtf8String, bytesToHex, clamp, crc32_buffer, crc32_text_utf16, crc32_text_utf8, createChunkFileFromDbBlock, createChunkFileFromDbFile, createDbPath, createSupabaseClient, createTempDirectory, decodeBase64, decodeBase64String, decodeDataString, encodeBase64, encodeBase64String, fileExists, fromSupabaseByGameRom, fromSupabaseById, fromSupabaseByName, fromSupabaseByProject, getDirectory, getEnvVar, getNestedProperty, getSupabaseClient, hexToBytes, hexToUint8Array, indexOfAny, isPlatformBrowser, isPlatformNode, isPlatformWebWorker, isValidBase64, listDirectory, readFileAsBinary, readFileAsText, readJsonFile, removeDirectory, resetSupabaseClient, saveFileAsBinary, saveFileAsText, summaryFromSupabaseByProject, uint8ArrayToBase64, validateEnvironmentVariables };
|
|
2474
|
+
export { Address, AddressSpace, AddressType, AddressingModeHandler, AsmBlock, AsmBlockUtils, AsmReader, Assembler, AssemblerContext, AssemblerState, BaseRomBranchData, BaseRomBranchFileRaw, BaseRomData, BaseRomFileData, BaseRomFileRaw, BaseRomPayload, BinType, BitStream, BlockReader, BlockReaderConstants, BlockWriter, BranchBaseData, Byte, ChunkFile, ChunkFileUtils, CollaborationConfig, CompressionAlgorithms, CompressionRegistry, CopCommandProcessor, CopDef, CpuMode, Database, DbAddressingMode, DbAsset, DbBaseRomModule, DbBlock, DbConfig, DbEntryPoint, DbFile, DbFileType, DbGameRomModule, DbGroup, DbLabel, DbMnemonic, DbOverride, DbPart, DbPath, DbRewrite, DbRoot, DbRootUtils, DbScene, DbSfx, DbStringCommand, DbStringDictionary, DbStringLayer, DbStringType, DbStringTypeUtils, DbStruct, DbTransform, DebugExporter, DirectoryEntry, FileBaseData, FileBaseRaw, FileReadOptions, FromSupabaseByNameOptions, FromSupabaseByProjectOptions, GAIA_CORE_VERSION, GameData, GameRomArtifactData, GameRomArtifactRaw, GameRomBranchArtifactRaw, GameRomBranchData, GameRomData, ICompressionProvider, LocationWrapper, Long, MapExt, MemberType, MemoryMapMode, ObjectType, Op, OpCode, OperationContext, PlatformBranchData, PlatformData, PostProcessor, ProcessorStateManager, ProjectBranchData, ProjectBranchFileRaw, ProjectConfig, ProjectData, ProjectFileData, ProjectFileRaw, ProjectPayload, QueryStats, QuintetLZ, ReferenceManager, RegionData, RegisterType, Registers, RomDataReader, RomGenerator, RomLayout, RomProcessingConstants, RomProcessor, RomState, RomStateUtils, RomWriter, SortedMap, SpriteFrame, SpriteGroup, SpriteMap, SpritePart, Stack, StackOperations, StatusFlags, StringEntry, StringMarker, StringProcessor, StringReader, StringSizeComparer, StringWrapper, StructDef, SupabaseErrorCode, SupabaseFromError, SupabaseResult, TableEntry, TransformProcessor, TypeParser, TypedNumber, Word, XformDef, XformType, base64ToUint8Array, binaryToUtf8String, bytesToHex, clamp, crc32_buffer, crc32_text_utf16, crc32_text_utf8, createChunkFileFromDbBlock, createChunkFileFromDbFile, createDbPath, createSupabaseClient, createTempDirectory, decodeBase64, decodeBase64String, decodeDataString, encodeBase64, encodeBase64String, fileExists, fromSupabaseByGameRom, fromSupabaseById, fromSupabaseByName, fromSupabaseByProject, getDirectory, getEnvVar, getNestedProperty, getSupabaseClient, hexToBytes, hexToUint8Array, indexOfAny, isPlatformBrowser, isPlatformNode, isPlatformWebWorker, isValidBase64, listDirectory, readFileAsBinary, readFileAsText, readJsonFile, removeDirectory, resetSupabaseClient, saveFileAsBinary, saveFileAsText, summaryFromSupabaseByProject, uint8ArrayToBase64, validateEnvironmentVariables };
|
|
2452
2475
|
//# sourceMappingURL=index.d.cts.map
|
package/dist/index.d.mts
CHANGED
|
@@ -66,6 +66,7 @@ declare enum AddressType {
|
|
|
66
66
|
Address = "Address",
|
|
67
67
|
WBank = "WBank",
|
|
68
68
|
Relative = "Relative",
|
|
69
|
+
WRelative = "WRelative",
|
|
69
70
|
Location = "Location",
|
|
70
71
|
}
|
|
71
72
|
/**
|
|
@@ -84,6 +85,10 @@ declare enum MemoryMapMode {
|
|
|
84
85
|
Hi = "Hi",
|
|
85
86
|
ExHi = "ExHi",
|
|
86
87
|
}
|
|
88
|
+
declare enum CpuMode {
|
|
89
|
+
Slow = "Slow",
|
|
90
|
+
Fast = "Fast",
|
|
91
|
+
}
|
|
87
92
|
/**
|
|
88
93
|
* SNES address structure
|
|
89
94
|
* Converted from GaiaLib/Types/Address.cs
|
|
@@ -98,9 +103,10 @@ declare class Address {
|
|
|
98
103
|
constructor(bank: number, offset: number, mode: MemoryMapMode);
|
|
99
104
|
get isROM(): boolean;
|
|
100
105
|
get isCodeBank(): boolean;
|
|
101
|
-
|
|
102
|
-
static
|
|
106
|
+
toLocation(): number;
|
|
107
|
+
static fromLocation(value: number, mode: MemoryMapMode, cpuMode: CpuMode): Address;
|
|
103
108
|
static resolveBank(value: number, mode: MemoryMapMode): number;
|
|
109
|
+
toInt(): number;
|
|
104
110
|
toString(): string;
|
|
105
111
|
static typeFromCode(code: string): AddressType;
|
|
106
112
|
static codeFromType(type: AddressType): string | null;
|
|
@@ -209,12 +215,12 @@ declare enum BinType {
|
|
|
209
215
|
Palette = "Palette",
|
|
210
216
|
Sound = "Sound",
|
|
211
217
|
Music = "Music",
|
|
212
|
-
Unknown = "Unknown",
|
|
213
218
|
Meta17 = "Meta17",
|
|
214
219
|
Spritemap = "Spritemap",
|
|
215
220
|
Assembly = "Assembly",
|
|
216
221
|
Patch = "Patch",
|
|
217
222
|
Transform = "Transform",
|
|
223
|
+
Binary = "Binary",
|
|
218
224
|
}
|
|
219
225
|
//#endregion
|
|
220
226
|
//#region src/types/transforms.d.ts
|
|
@@ -317,7 +323,7 @@ interface ICompressionProvider {
|
|
|
317
323
|
* @param srcData Source data to compress
|
|
318
324
|
* @returns Compressed data
|
|
319
325
|
*/
|
|
320
|
-
compact(srcData: Uint8Array): Uint8Array;
|
|
326
|
+
compact(srcData: Uint8Array, srcPosition?: number, srcLen?: number): Uint8Array;
|
|
321
327
|
}
|
|
322
328
|
//#endregion
|
|
323
329
|
//#region src/types/files.d.ts
|
|
@@ -349,7 +355,7 @@ declare class ChunkFile {
|
|
|
349
355
|
constructor(name: string, size: number, location: number, type: DbFileType);
|
|
350
356
|
}
|
|
351
357
|
declare function createChunkFileFromDbFile(rom: Uint8Array, compression: ICompressionProvider, dbFile: DbFile, fileType: DbFileType): ChunkFile;
|
|
352
|
-
declare function createChunkFileFromDbBlock(block: DbBlock, fileType: DbFileType): ChunkFile;
|
|
358
|
+
declare function createChunkFileFromDbBlock(block: DbBlock, fileType: DbFileType, memoryMode: MemoryMapMode): ChunkFile;
|
|
353
359
|
/**
|
|
354
360
|
* Chunk file utilities
|
|
355
361
|
*/
|
|
@@ -615,7 +621,7 @@ declare class LocationWrapper {
|
|
|
615
621
|
declare class DbStringCommand {
|
|
616
622
|
id: number;
|
|
617
623
|
name: string;
|
|
618
|
-
types:
|
|
624
|
+
types: string[];
|
|
619
625
|
delimiter?: number;
|
|
620
626
|
halt: boolean;
|
|
621
627
|
constructor(data: Partial<DbStringCommand>);
|
|
@@ -633,7 +639,6 @@ declare class DbStringDictionary {
|
|
|
633
639
|
range: number;
|
|
634
640
|
command: number;
|
|
635
641
|
name: string;
|
|
636
|
-
suffix: string;
|
|
637
642
|
entries: string[];
|
|
638
643
|
constructor(data: Partial<DbStringDictionary>);
|
|
639
644
|
}
|
|
@@ -652,6 +657,10 @@ declare class DbStringType {
|
|
|
652
657
|
layers: DbStringLayer[];
|
|
653
658
|
greedyTerminator: boolean;
|
|
654
659
|
dictionaries: Record<string, DbStringDictionary>;
|
|
660
|
+
dictionaryLookup: {
|
|
661
|
+
text: string;
|
|
662
|
+
id: number;
|
|
663
|
+
}[];
|
|
655
664
|
constructor(data: Partial<DbStringType>);
|
|
656
665
|
}
|
|
657
666
|
/**
|
|
@@ -829,10 +838,16 @@ declare function createDbPath(folder?: string, extension?: string): DbPath;
|
|
|
829
838
|
interface DbConfig {
|
|
830
839
|
sfxLocation: number;
|
|
831
840
|
sfxCount: number;
|
|
841
|
+
sfxType: string;
|
|
842
|
+
sfxPack: string;
|
|
832
843
|
compression: string;
|
|
844
|
+
uncompress: boolean;
|
|
833
845
|
entryPoints: DbEntryPoint[];
|
|
834
846
|
paths: Record<BinType, DbPath>;
|
|
835
847
|
memoryMode: MemoryMapMode;
|
|
848
|
+
cpuMode: CpuMode;
|
|
849
|
+
chipset: number;
|
|
850
|
+
ramSize: number;
|
|
836
851
|
}
|
|
837
852
|
//#endregion
|
|
838
853
|
//#region src/database/structs.d.ts
|
|
@@ -921,6 +936,7 @@ interface DbRoot {
|
|
|
921
936
|
structs: Record<string, DbStruct>;
|
|
922
937
|
stringTypes: Record<string, DbStringType>;
|
|
923
938
|
stringDelimiters: string[];
|
|
939
|
+
stringDelimiterLookup: Record<string, DbStringType>;
|
|
924
940
|
files: DbFile[];
|
|
925
941
|
config: DbConfig;
|
|
926
942
|
blocks: DbBlock[];
|
|
@@ -957,7 +973,7 @@ declare class DbRootUtils {
|
|
|
957
973
|
static fromGameModule(module: DbGameRomModule): DbRoot;
|
|
958
974
|
static applyFolder(root: DbRoot, folderPath: string, sourceFiles?: ChunkFile[]): Promise<ChunkFile[]>;
|
|
959
975
|
static extractAllContent(root: DbRoot, romPath: string, outPath: string): Promise<void>;
|
|
960
|
-
static rebuildAllContent(root: DbRoot, inPath: string[], outPath: string): Promise<
|
|
976
|
+
static rebuildAllContent(root: DbRoot, inPath: string[], outPath: string): Promise<ChunkFile[]>;
|
|
961
977
|
}
|
|
962
978
|
//#endregion
|
|
963
979
|
//#region src/database/labels.d.ts
|
|
@@ -1406,8 +1422,12 @@ declare class RomLayout {
|
|
|
1406
1422
|
private bestDepth;
|
|
1407
1423
|
private bestOffset;
|
|
1408
1424
|
private bestRemain;
|
|
1409
|
-
|
|
1410
|
-
|
|
1425
|
+
private root;
|
|
1426
|
+
private config;
|
|
1427
|
+
private sfxPackType;
|
|
1428
|
+
readonly sfxFiles: ChunkFile[];
|
|
1429
|
+
constructor(files: ChunkFile[], root: DbRoot);
|
|
1430
|
+
organize(): number;
|
|
1411
1431
|
private testDepth;
|
|
1412
1432
|
private commitPage;
|
|
1413
1433
|
}
|
|
@@ -1419,12 +1439,14 @@ declare class RomLayout {
|
|
|
1419
1439
|
*/
|
|
1420
1440
|
declare class RomWriter {
|
|
1421
1441
|
bpsPath?: string;
|
|
1422
|
-
|
|
1442
|
+
outBuffer?: Uint8Array;
|
|
1443
|
+
private romSize?;
|
|
1423
1444
|
readonly cartName: string;
|
|
1424
1445
|
readonly makerCode: string;
|
|
1425
1446
|
readonly root: DbRoot;
|
|
1426
1447
|
constructor(root: DbRoot, cartName: string, makerCode: string);
|
|
1427
1448
|
repack(files: ChunkFile[]): Promise<Uint8Array>;
|
|
1449
|
+
allocate(pages: number): void;
|
|
1428
1450
|
writeHeader(): void;
|
|
1429
1451
|
writeChecksum(): void;
|
|
1430
1452
|
writeEntryPoints(asmFiles: ChunkFile[]): void;
|
|
@@ -1490,6 +1512,7 @@ declare class StringProcessor {
|
|
|
1490
1512
|
private readonly context;
|
|
1491
1513
|
private readonly root;
|
|
1492
1514
|
private readonly stringCharLookup;
|
|
1515
|
+
private readonly testRegex;
|
|
1493
1516
|
constructor(context: AssemblerContext);
|
|
1494
1517
|
consumeString(typeChar: string): void;
|
|
1495
1518
|
private flushBuffer;
|
|
@@ -1624,7 +1647,7 @@ declare class QuintetLZ implements ICompressionProvider {
|
|
|
1624
1647
|
* @param srcData Source data to compress
|
|
1625
1648
|
* @returns Compressed data
|
|
1626
1649
|
*/
|
|
1627
|
-
compact(srcData: Uint8Array): Uint8Array;
|
|
1650
|
+
compact(srcData: Uint8Array, srcPosition?: number, srcLen?: number): Uint8Array;
|
|
1628
1651
|
}
|
|
1629
1652
|
//#endregion
|
|
1630
1653
|
//#region src/compression/index.d.ts
|
|
@@ -2448,5 +2471,5 @@ declare const isPlatformBrowser: boolean;
|
|
|
2448
2471
|
declare const isPlatformNode: string;
|
|
2449
2472
|
declare const isPlatformWebWorker: boolean;
|
|
2450
2473
|
//#endregion
|
|
2451
|
-
export { Address, AddressSpace, AddressType, AddressingModeHandler, AsmBlock, AsmBlockUtils, AsmReader, Assembler, AssemblerContext, AssemblerState, BaseRomBranchData, BaseRomBranchFileRaw, BaseRomData, BaseRomFileData, BaseRomFileRaw, BaseRomPayload, BinType, BitStream, BlockReader, BlockReaderConstants, BlockWriter, BranchBaseData, Byte, ChunkFile, ChunkFileUtils, CollaborationConfig, CompressionAlgorithms, CompressionRegistry, CopCommandProcessor, CopDef, Database, DbAddressingMode, DbAsset, DbBaseRomModule, DbBlock, DbConfig, DbEntryPoint, DbFile, DbFileType, DbGameRomModule, DbGroup, DbLabel, DbMnemonic, DbOverride, DbPart, DbPath, DbRewrite, DbRoot, DbRootUtils, DbScene, DbSfx, DbStringCommand, DbStringDictionary, DbStringLayer, DbStringType, DbStringTypeUtils, DbStruct, DbTransform, DebugExporter, DirectoryEntry, FileBaseData, FileBaseRaw, FileReadOptions, FromSupabaseByNameOptions, FromSupabaseByProjectOptions, GAIA_CORE_VERSION, GameData, GameRomArtifactData, GameRomArtifactRaw, GameRomBranchArtifactRaw, GameRomBranchData, GameRomData, ICompressionProvider, LocationWrapper, Long, MapExt, MemberType, MemoryMapMode, ObjectType, Op, OpCode, OperationContext, PlatformBranchData, PlatformData, PostProcessor, ProcessorStateManager, ProjectBranchData, ProjectBranchFileRaw, ProjectConfig, ProjectData, ProjectFileData, ProjectFileRaw, ProjectPayload, QueryStats, QuintetLZ, ReferenceManager, RegionData, RegisterType, Registers, RomDataReader, RomGenerator, RomLayout, RomProcessingConstants, RomProcessor, RomState, RomStateUtils, RomWriter, SortedMap, SpriteFrame, SpriteGroup, SpriteMap, SpritePart, Stack, StackOperations, StatusFlags, StringEntry, StringMarker, StringProcessor, StringReader, StringSizeComparer, StringWrapper, StructDef, SupabaseErrorCode, SupabaseFromError, SupabaseResult, TableEntry, TransformProcessor, TypeParser, TypedNumber, Word, XformDef, XformType, base64ToUint8Array, binaryToUtf8String, bytesToHex, clamp, crc32_buffer, crc32_text_utf16, crc32_text_utf8, createChunkFileFromDbBlock, createChunkFileFromDbFile, createDbPath, createSupabaseClient, createTempDirectory, decodeBase64, decodeBase64String, decodeDataString, encodeBase64, encodeBase64String, fileExists, fromSupabaseByGameRom, fromSupabaseById, fromSupabaseByName, fromSupabaseByProject, getDirectory, getEnvVar, getNestedProperty, getSupabaseClient, hexToBytes, hexToUint8Array, indexOfAny, isPlatformBrowser, isPlatformNode, isPlatformWebWorker, isValidBase64, listDirectory, readFileAsBinary, readFileAsText, readJsonFile, removeDirectory, resetSupabaseClient, saveFileAsBinary, saveFileAsText, summaryFromSupabaseByProject, uint8ArrayToBase64, validateEnvironmentVariables };
|
|
2474
|
+
export { Address, AddressSpace, AddressType, AddressingModeHandler, AsmBlock, AsmBlockUtils, AsmReader, Assembler, AssemblerContext, AssemblerState, BaseRomBranchData, BaseRomBranchFileRaw, BaseRomData, BaseRomFileData, BaseRomFileRaw, BaseRomPayload, BinType, BitStream, BlockReader, BlockReaderConstants, BlockWriter, BranchBaseData, Byte, ChunkFile, ChunkFileUtils, CollaborationConfig, CompressionAlgorithms, CompressionRegistry, CopCommandProcessor, CopDef, CpuMode, Database, DbAddressingMode, DbAsset, DbBaseRomModule, DbBlock, DbConfig, DbEntryPoint, DbFile, DbFileType, DbGameRomModule, DbGroup, DbLabel, DbMnemonic, DbOverride, DbPart, DbPath, DbRewrite, DbRoot, DbRootUtils, DbScene, DbSfx, DbStringCommand, DbStringDictionary, DbStringLayer, DbStringType, DbStringTypeUtils, DbStruct, DbTransform, DebugExporter, DirectoryEntry, FileBaseData, FileBaseRaw, FileReadOptions, FromSupabaseByNameOptions, FromSupabaseByProjectOptions, GAIA_CORE_VERSION, GameData, GameRomArtifactData, GameRomArtifactRaw, GameRomBranchArtifactRaw, GameRomBranchData, GameRomData, ICompressionProvider, LocationWrapper, Long, MapExt, MemberType, MemoryMapMode, ObjectType, Op, OpCode, OperationContext, PlatformBranchData, PlatformData, PostProcessor, ProcessorStateManager, ProjectBranchData, ProjectBranchFileRaw, ProjectConfig, ProjectData, ProjectFileData, ProjectFileRaw, ProjectPayload, QueryStats, QuintetLZ, ReferenceManager, RegionData, RegisterType, Registers, RomDataReader, RomGenerator, RomLayout, RomProcessingConstants, RomProcessor, RomState, RomStateUtils, RomWriter, SortedMap, SpriteFrame, SpriteGroup, SpriteMap, SpritePart, Stack, StackOperations, StatusFlags, StringEntry, StringMarker, StringProcessor, StringReader, StringSizeComparer, StringWrapper, StructDef, SupabaseErrorCode, SupabaseFromError, SupabaseResult, TableEntry, TransformProcessor, TypeParser, TypedNumber, Word, XformDef, XformType, base64ToUint8Array, binaryToUtf8String, bytesToHex, clamp, crc32_buffer, crc32_text_utf16, crc32_text_utf8, createChunkFileFromDbBlock, createChunkFileFromDbFile, createDbPath, createSupabaseClient, createTempDirectory, decodeBase64, decodeBase64String, decodeDataString, encodeBase64, encodeBase64String, fileExists, fromSupabaseByGameRom, fromSupabaseById, fromSupabaseByName, fromSupabaseByProject, getDirectory, getEnvVar, getNestedProperty, getSupabaseClient, hexToBytes, hexToUint8Array, indexOfAny, isPlatformBrowser, isPlatformNode, isPlatformWebWorker, isValidBase64, listDirectory, readFileAsBinary, readFileAsText, readJsonFile, removeDirectory, resetSupabaseClient, saveFileAsBinary, saveFileAsText, summaryFromSupabaseByProject, uint8ArrayToBase64, validateEnvironmentVariables };
|
|
2452
2475
|
//# sourceMappingURL=index.d.mts.map
|