Skip to content

Commit

Permalink
Comment interfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
JrMasterModelBuilder committed Oct 15, 2023
1 parent f90c68f commit dba96fb
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/projector/otto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ import {fsLstatExists} from '@shockpkg/archive-files';
import {Projector} from '../projector';
import {pathRelativeBase, trimExtension} from '../util';

/**
* Include Xtra mapping.
*/
export interface IIncludeXtraMapping {
/**
* Source path, case insensitive.
Expand All @@ -20,6 +23,9 @@ export interface IIncludeXtraMapping {
dest: string | null;
}

/**
* Include Xtra mapping, best match.
*/
export interface IIncludeXtraMappingBest {
/**
* Map instance.
Expand All @@ -32,6 +38,9 @@ export interface IIncludeXtraMappingBest {
relative: string;
}

/**
* Include Xtras.
*/
export interface IIncludeXtras {
[key: string]: string | null;
}
Expand Down
3 changes: 3 additions & 0 deletions src/util/mac.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ const MH_CIGAM_64 = 0xcffaedfe;
const CPU_TYPE_POWERPC = 0x00000012;
const CPU_TYPE_I386 = 0x00000007;

/**
* Mach-O type.
*/
export interface IMachoType {
/**
* CPU type.
Expand Down
6 changes: 6 additions & 0 deletions src/util/windows.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ const IMAGE_SCN_CNT_CODE = 0x00000020;
const IMAGE_SCN_CNT_INITIALIZED_DATA = 0x00000040;
const IMAGE_SCN_CNT_UNINITIALIZED_DATA = 0x00000080;

/**
* PE Resource replace config.
*/
export interface IPeResourceReplace {
/**
* Replace icons if not null.
Expand Down Expand Up @@ -366,6 +369,9 @@ export async function windowsLauncher(
return new Uint8Array(exeData);
}

/**
* Patcher patch.
*/
interface IPatcherPatch {
/**
* The bytes to find.
Expand Down

0 comments on commit dba96fb

Please sign in to comment.