@butr/vortexextensionnative 1.0.77 → 1.0.79
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/Bannerlord.LauncherManager.Native.dll +0 -0
- package/dist/launchermanager.node +0 -0
- package/dist/main/lib/LauncherManager.d.ts +1 -2
- package/dist/main/lib/LauncherManager.js +2 -5
- package/dist/main/lib/LauncherManager.js.map +1 -1
- package/dist/main/lib/types/LauncherManager.d.ts +1 -2
- package/dist/module/lib/LauncherManager.d.ts +1 -2
- package/dist/module/lib/LauncherManager.js +2 -5
- package/dist/module/lib/LauncherManager.js.map +1 -1
- package/dist/module/lib/types/LauncherManager.d.ts +1 -2
- package/package.json +1 -1
|
Binary file
|
|
Binary file
|
|
@@ -4,7 +4,7 @@ type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
|
|
|
4
4
|
type LauncherManagerWithoutConstructor = Omit<types.LauncherManager, "constructor">;
|
|
5
5
|
export declare class NativeLauncherManager implements LauncherManagerWithoutConstructor {
|
|
6
6
|
private manager;
|
|
7
|
-
constructor();
|
|
7
|
+
constructor(setGameParameters: (executable: string, gameParameters: string[]) => void, getLoadOrder: () => types.LoadOrder, setLoadOrder: (loadOrder: types.LoadOrder) => void, sendNotification: (id: string, type: types.NotificationType, message: string, delayMS: number) => void, sendDialog: (type: types.DialogType, title: string, message: string, filters: types.FileFilter[]) => Promise<string>, getInstallPath: () => string, readFileContent: (filePath: string, offset: number, length: number) => Uint8Array | null, writeFileContent: (filePath: string, data: Uint8Array) => void, readDirectoryFileList: (directoryPath: string) => string[] | null, readDirectoryList: (directoryPath: string) => string[] | null, getAllModuleViewModels: () => types.ModuleViewModel[] | null, getModuleViewModels: () => types.ModuleViewModel[] | null, setModuleViewModels: (moduleViewModels: types.ModuleViewModel[]) => void, getOptions: () => types.LauncherOptions, getState: () => types.LauncherState);
|
|
8
8
|
checkForRootHarmony: () => void;
|
|
9
9
|
getGamePlatform: () => GamePlatform;
|
|
10
10
|
getGameVersion: () => string;
|
|
@@ -25,7 +25,6 @@ export declare class NativeLauncherManager implements LauncherManagerWithoutCons
|
|
|
25
25
|
orderByLoadOrder: (loadOrder: types.LoadOrder) => types.OrderByLoadOrderResult;
|
|
26
26
|
refreshModules: () => void;
|
|
27
27
|
refreshGameParameters: () => void;
|
|
28
|
-
registerCallbacks: (setGameParameters: (executable: string, gameParameters: string[]) => void, getLoadOrder: () => types.LoadOrder, setLoadOrder: (loadOrder: types.LoadOrder) => void, sendNotification: (id: string, type: types.NotificationType, message: string, delayMS: number) => void, sendDialog: (type: types.DialogType, title: string, message: string, filters: types.FileFilter[]) => Promise<string>, getInstallPath: () => string, readFileContent: (filePath: string, offset: number, length: number) => Uint8Array | null, writeFileContent: (filePath: string, data: Uint8Array) => void, readDirectoryFileList: (directoryPath: string) => string[] | null, readDirectoryList: (directoryPath: string) => string[] | null, getAllModuleViewModels: () => types.ModuleViewModel[] | null, getModuleViewModels: () => types.ModuleViewModel[] | null, setModuleViewModels: (moduleViewModels: types.ModuleViewModel[]) => void, getOptions: () => types.LauncherOptions, getState: () => types.LauncherState) => void;
|
|
29
28
|
setGameParameterExecutable(executable: string): void;
|
|
30
29
|
setGameParameterSaveFile(saveName: string): void;
|
|
31
30
|
setGameParameterContinueLastSaveFile(value: boolean): void;
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.NativeLauncherManager = void 0;
|
|
13
13
|
class NativeLauncherManager {
|
|
14
|
-
constructor() {
|
|
14
|
+
constructor(setGameParameters, getLoadOrder, setLoadOrder, sendNotification, sendDialog, getInstallPath, readFileContent, writeFileContent, readDirectoryFileList, readDirectoryList, getAllModuleViewModels, getModuleViewModels, setModuleViewModels, getOptions, getState) {
|
|
15
15
|
this.checkForRootHarmony = () => {
|
|
16
16
|
return this.manager.checkForRootHarmony();
|
|
17
17
|
};
|
|
@@ -66,9 +66,6 @@
|
|
|
66
66
|
this.refreshGameParameters = () => {
|
|
67
67
|
return this.manager.refreshGameParameters();
|
|
68
68
|
};
|
|
69
|
-
this.registerCallbacks = (setGameParameters, getLoadOrder, setLoadOrder, sendNotification, sendDialog, getInstallPath, readFileContent, writeFileContent, readDirectoryFileList, readDirectoryList, getAllModuleViewModels, getModuleViewModels, setModuleViewModels, getOptions, getState) => {
|
|
70
|
-
return this.manager.registerCallbacks(setGameParameters, getLoadOrder, setLoadOrder, sendNotification, sendDialog, getInstallPath, readFileContent, writeFileContent, readDirectoryFileList, readDirectoryList, getAllModuleViewModels, getModuleViewModels, setModuleViewModels, getOptions, getState);
|
|
71
|
-
};
|
|
72
69
|
this.sort = () => {
|
|
73
70
|
return this.manager.sort();
|
|
74
71
|
};
|
|
@@ -91,7 +88,7 @@
|
|
|
91
88
|
return this.manager.dialogTestFileOpen();
|
|
92
89
|
};
|
|
93
90
|
const addon = require('./../../launchermanager.node');
|
|
94
|
-
this.manager = new addon.LauncherManager();
|
|
91
|
+
this.manager = new addon.LauncherManager(setGameParameters, getLoadOrder, setLoadOrder, sendNotification, sendDialog, getInstallPath, readFileContent, writeFileContent, readDirectoryFileList, readDirectoryList, getAllModuleViewModels, getModuleViewModels, setModuleViewModels, getOptions, getState);
|
|
95
92
|
}
|
|
96
93
|
setGameParameterExecutable(executable) {
|
|
97
94
|
return this.manager.setGameParameterExecutable(executable);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LauncherManager.js","sourceRoot":"","sources":["../../../src/lib/LauncherManager.ts"],"names":[],"mappings":";;;;;;;;;;;;IAKA,MAAa,qBAAqB;QAGhC;
|
|
1
|
+
{"version":3,"file":"LauncherManager.js","sourceRoot":"","sources":["../../../src/lib/LauncherManager.ts"],"names":[],"mappings":";;;;;;;;;;;;IAKA,MAAa,qBAAqB;QAGhC,YACE,iBAAyE,EACzE,YAAmC,EACnC,YAAkD,EAClD,gBAAsG,EACtG,UAAoH,EACpH,cAA4B,EAC5B,eAAwF,E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AC,wBAAwB,CAAC,QAAQ,CAAC,CAAC;QACzD,CAAC;QACM,oCAAoC,CAAC,KAAc;YACxD,OAAO,IAAI,CAAC,OAAO,CAAC,oCAAoC,CAAC,KAAK,CAAC,CAAC;QAClE,CAAC;QACM,YAAY,CAAC,SAAoB;YACtC,OAAO,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,SAAS,CAAC,CAAC;QAC9C,CAAC;KAsBF;IA9HD,sDA8HC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ModuleInfoExtended, ModuleInfoExtendedWithPath } from "./BannerlordModuleManager";
|
|
2
2
|
export interface INativeExtension {
|
|
3
|
-
LauncherManager: new () => LauncherManager;
|
|
3
|
+
LauncherManager: new (setGameParameters: (executable: string, gameParameters: string[]) => void, getLoadOrder: () => LoadOrder, setLoadOrder: (loadOrder: LoadOrder) => void, sendNotification: (id: string, type: NotificationType, message: string, delayMS: number) => void, sendDialog: (type: DialogType, title: string, message: string, filters: FileFilter[]) => Promise<string>, getInstallPath: () => string, readFileContent: (filePath: string, offset: number, length: number) => Uint8Array | null, writeFileContent: (filePath: string, data: Uint8Array) => void, readDirectoryFileList: (directoryPath: string) => string[] | null, readDirectoryList: (directoryPath: string) => string[] | null, getAllModuleViewModels: () => ModuleViewModel[] | null, getModuleViewModels: () => ModuleViewModel[] | null, setModuleViewModels: (moduleViewModels: ModuleViewModel[]) => void, getOptions: () => LauncherOptions, getState: () => LauncherState) => LauncherManager;
|
|
4
4
|
}
|
|
5
5
|
export interface LoadOrderEntry {
|
|
6
6
|
id: string;
|
|
@@ -80,7 +80,6 @@ export type LauncherManager = {
|
|
|
80
80
|
orderByLoadOrder(loadOrder: LoadOrder): OrderByLoadOrderResult;
|
|
81
81
|
refreshModules(): void;
|
|
82
82
|
refreshGameParameters(): void;
|
|
83
|
-
registerCallbacks(setGameParameters: (executable: string, gameParameters: string[]) => void, getLoadOrder: () => LoadOrder, setLoadOrder: (loadOrder: LoadOrder) => void, sendNotification: (id: string, type: NotificationType, message: string, delayMS: number) => void, sendDialog: (type: DialogType, title: string, message: string, filters: FileFilter[]) => Promise<string>, getInstallPath: () => string, readFileContent: (filePath: string, offset: number, length: number) => Uint8Array | null, writeFileContent: (filePath: string, data: Uint8Array) => void, readDirectoryFileList: (directoryPath: string) => string[] | null, readDirectoryList: (directoryPath: string) => string[] | null, getAllModuleViewModels: () => ModuleViewModel[] | null, getModuleViewModels: () => ModuleViewModel[] | null, setModuleViewModels: (moduleViewModels: ModuleViewModel[]) => void, getOptions: () => LauncherOptions, getState: () => LauncherState): void;
|
|
84
83
|
setGameParameterExecutable(executable: string): void;
|
|
85
84
|
setGameParameterSaveFile(saveName: string): void;
|
|
86
85
|
setGameParameterContinueLastSaveFile(value: boolean): void;
|
|
@@ -4,7 +4,7 @@ type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
|
|
|
4
4
|
type LauncherManagerWithoutConstructor = Omit<types.LauncherManager, "constructor">;
|
|
5
5
|
export declare class NativeLauncherManager implements LauncherManagerWithoutConstructor {
|
|
6
6
|
private manager;
|
|
7
|
-
constructor();
|
|
7
|
+
constructor(setGameParameters: (executable: string, gameParameters: string[]) => void, getLoadOrder: () => types.LoadOrder, setLoadOrder: (loadOrder: types.LoadOrder) => void, sendNotification: (id: string, type: types.NotificationType, message: string, delayMS: number) => void, sendDialog: (type: types.DialogType, title: string, message: string, filters: types.FileFilter[]) => Promise<string>, getInstallPath: () => string, readFileContent: (filePath: string, offset: number, length: number) => Uint8Array | null, writeFileContent: (filePath: string, data: Uint8Array) => void, readDirectoryFileList: (directoryPath: string) => string[] | null, readDirectoryList: (directoryPath: string) => string[] | null, getAllModuleViewModels: () => types.ModuleViewModel[] | null, getModuleViewModels: () => types.ModuleViewModel[] | null, setModuleViewModels: (moduleViewModels: types.ModuleViewModel[]) => void, getOptions: () => types.LauncherOptions, getState: () => types.LauncherState);
|
|
8
8
|
checkForRootHarmony: () => void;
|
|
9
9
|
getGamePlatform: () => GamePlatform;
|
|
10
10
|
getGameVersion: () => string;
|
|
@@ -25,7 +25,6 @@ export declare class NativeLauncherManager implements LauncherManagerWithoutCons
|
|
|
25
25
|
orderByLoadOrder: (loadOrder: types.LoadOrder) => types.OrderByLoadOrderResult;
|
|
26
26
|
refreshModules: () => void;
|
|
27
27
|
refreshGameParameters: () => void;
|
|
28
|
-
registerCallbacks: (setGameParameters: (executable: string, gameParameters: string[]) => void, getLoadOrder: () => types.LoadOrder, setLoadOrder: (loadOrder: types.LoadOrder) => void, sendNotification: (id: string, type: types.NotificationType, message: string, delayMS: number) => void, sendDialog: (type: types.DialogType, title: string, message: string, filters: types.FileFilter[]) => Promise<string>, getInstallPath: () => string, readFileContent: (filePath: string, offset: number, length: number) => Uint8Array | null, writeFileContent: (filePath: string, data: Uint8Array) => void, readDirectoryFileList: (directoryPath: string) => string[] | null, readDirectoryList: (directoryPath: string) => string[] | null, getAllModuleViewModels: () => types.ModuleViewModel[] | null, getModuleViewModels: () => types.ModuleViewModel[] | null, setModuleViewModels: (moduleViewModels: types.ModuleViewModel[]) => void, getOptions: () => types.LauncherOptions, getState: () => types.LauncherState) => void;
|
|
29
28
|
setGameParameterExecutable(executable: string): void;
|
|
30
29
|
setGameParameterSaveFile(saveName: string): void;
|
|
31
30
|
setGameParameterContinueLastSaveFile(value: boolean): void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export class NativeLauncherManager {
|
|
2
|
-
constructor() {
|
|
2
|
+
constructor(setGameParameters, getLoadOrder, setLoadOrder, sendNotification, sendDialog, getInstallPath, readFileContent, writeFileContent, readDirectoryFileList, readDirectoryList, getAllModuleViewModels, getModuleViewModels, setModuleViewModels, getOptions, getState) {
|
|
3
3
|
this.checkForRootHarmony = () => {
|
|
4
4
|
return this.manager.checkForRootHarmony();
|
|
5
5
|
};
|
|
@@ -54,9 +54,6 @@ export class NativeLauncherManager {
|
|
|
54
54
|
this.refreshGameParameters = () => {
|
|
55
55
|
return this.manager.refreshGameParameters();
|
|
56
56
|
};
|
|
57
|
-
this.registerCallbacks = (setGameParameters, getLoadOrder, setLoadOrder, sendNotification, sendDialog, getInstallPath, readFileContent, writeFileContent, readDirectoryFileList, readDirectoryList, getAllModuleViewModels, getModuleViewModels, setModuleViewModels, getOptions, getState) => {
|
|
58
|
-
return this.manager.registerCallbacks(setGameParameters, getLoadOrder, setLoadOrder, sendNotification, sendDialog, getInstallPath, readFileContent, writeFileContent, readDirectoryFileList, readDirectoryList, getAllModuleViewModels, getModuleViewModels, setModuleViewModels, getOptions, getState);
|
|
59
|
-
};
|
|
60
57
|
this.sort = () => {
|
|
61
58
|
return this.manager.sort();
|
|
62
59
|
};
|
|
@@ -79,7 +76,7 @@ export class NativeLauncherManager {
|
|
|
79
76
|
return this.manager.dialogTestFileOpen();
|
|
80
77
|
};
|
|
81
78
|
const addon = require('./../../launchermanager.node');
|
|
82
|
-
this.manager = new addon.LauncherManager();
|
|
79
|
+
this.manager = new addon.LauncherManager(setGameParameters, getLoadOrder, setLoadOrder, sendNotification, sendDialog, getInstallPath, readFileContent, writeFileContent, readDirectoryFileList, readDirectoryList, getAllModuleViewModels, getModuleViewModels, setModuleViewModels, getOptions, getState);
|
|
83
80
|
}
|
|
84
81
|
setGameParameterExecutable(executable) {
|
|
85
82
|
return this.manager.setGameParameterExecutable(executable);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LauncherManager.js","sourceRoot":"","sources":["../../../src/lib/LauncherManager.ts"],"names":[],"mappings":"AAKA,MAAM,OAAO,qBAAqB;IAGhC;
|
|
1
|
+
{"version":3,"file":"LauncherManager.js","sourceRoot":"","sources":["../../../src/lib/LauncherManager.ts"],"names":[],"mappings":"AAKA,MAAM,OAAO,qBAAqB;IAGhC,YACE,iBAAyE,EACzE,YAAmC,EACnC,YAAkD,EAClD,gBAAsG,EACtG,UAAoH,EACpH,cAA4B,EAC5B,eAAwF,EACxF,gBAA8D,EAC9D,qBAAiE,EACjE,iBAA6D,EAC7D,sBAA4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IAAI,CAAC,OAAO,CAAC,oCAAoC,CAAC,KAAK,CAAC,CAAC;IAClE,CAAC;IACM,YAAY,CAAC,SAAoB;QACtC,OAAO,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,SAAS,CAAC,CAAC;IAC9C,CAAC;CAsBF"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ModuleInfoExtended, ModuleInfoExtendedWithPath } from "./BannerlordModuleManager";
|
|
2
2
|
export interface INativeExtension {
|
|
3
|
-
LauncherManager: new () => LauncherManager;
|
|
3
|
+
LauncherManager: new (setGameParameters: (executable: string, gameParameters: string[]) => void, getLoadOrder: () => LoadOrder, setLoadOrder: (loadOrder: LoadOrder) => void, sendNotification: (id: string, type: NotificationType, message: string, delayMS: number) => void, sendDialog: (type: DialogType, title: string, message: string, filters: FileFilter[]) => Promise<string>, getInstallPath: () => string, readFileContent: (filePath: string, offset: number, length: number) => Uint8Array | null, writeFileContent: (filePath: string, data: Uint8Array) => void, readDirectoryFileList: (directoryPath: string) => string[] | null, readDirectoryList: (directoryPath: string) => string[] | null, getAllModuleViewModels: () => ModuleViewModel[] | null, getModuleViewModels: () => ModuleViewModel[] | null, setModuleViewModels: (moduleViewModels: ModuleViewModel[]) => void, getOptions: () => LauncherOptions, getState: () => LauncherState) => LauncherManager;
|
|
4
4
|
}
|
|
5
5
|
export interface LoadOrderEntry {
|
|
6
6
|
id: string;
|
|
@@ -80,7 +80,6 @@ export type LauncherManager = {
|
|
|
80
80
|
orderByLoadOrder(loadOrder: LoadOrder): OrderByLoadOrderResult;
|
|
81
81
|
refreshModules(): void;
|
|
82
82
|
refreshGameParameters(): void;
|
|
83
|
-
registerCallbacks(setGameParameters: (executable: string, gameParameters: string[]) => void, getLoadOrder: () => LoadOrder, setLoadOrder: (loadOrder: LoadOrder) => void, sendNotification: (id: string, type: NotificationType, message: string, delayMS: number) => void, sendDialog: (type: DialogType, title: string, message: string, filters: FileFilter[]) => Promise<string>, getInstallPath: () => string, readFileContent: (filePath: string, offset: number, length: number) => Uint8Array | null, writeFileContent: (filePath: string, data: Uint8Array) => void, readDirectoryFileList: (directoryPath: string) => string[] | null, readDirectoryList: (directoryPath: string) => string[] | null, getAllModuleViewModels: () => ModuleViewModel[] | null, getModuleViewModels: () => ModuleViewModel[] | null, setModuleViewModels: (moduleViewModels: ModuleViewModel[]) => void, getOptions: () => LauncherOptions, getState: () => LauncherState): void;
|
|
84
83
|
setGameParameterExecutable(executable: string): void;
|
|
85
84
|
setGameParameterSaveFile(saveName: string): void;
|
|
86
85
|
setGameParameterContinueLastSaveFile(value: boolean): void;
|
package/package.json
CHANGED