@butr/vortexextensionnative 1.0.22 → 1.0.27
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.VortexExtension.Native.dll → Bannerlord.LauncherManager.Native.dll} +0 -0
- package/dist/main/lib/index.d.ts +1 -1
- package/dist/main/lib/index.js +25 -25
- package/dist/main/lib/index.js.map +1 -1
- package/dist/{module/lib/types/VortexExtensionManager.d.ts → main/lib/types/LauncherManager.d.ts} +3 -3
- package/dist/main/lib/types/{VortexExtensionManager.js → LauncherManager.js} +1 -1
- package/dist/main/lib/types/LauncherManager.js.map +1 -0
- package/dist/main/lib/types/index.d.ts +2 -2
- package/dist/main/lib/types/index.js +2 -2
- package/dist/main/lib/types/index.js.map +1 -1
- package/dist/module/lib/index.d.ts +1 -1
- package/dist/module/lib/index.js +23 -23
- package/dist/module/lib/index.js.map +1 -1
- package/dist/{main/lib/types/VortexExtensionManager.d.ts → module/lib/types/LauncherManager.d.ts} +3 -3
- package/dist/module/lib/types/LauncherManager.js +2 -0
- package/dist/module/lib/types/LauncherManager.js.map +1 -0
- package/dist/module/lib/types/index.d.ts +2 -2
- package/dist/module/lib/types/index.js +1 -1
- package/dist/module/lib/types/index.js.map +1 -1
- package/package.json +5 -5
- package/dist/main/lib/types/VortexExtensionManager.js.map +0 -1
- package/dist/module/lib/types/VortexExtensionManager.js +0 -2
- package/dist/module/lib/types/VortexExtensionManager.js.map +0 -1
- package/dist/vortexextension.node +0 -0
package/dist/{Bannerlord.VortexExtension.Native.dll → Bannerlord.LauncherManager.Native.dll}
RENAMED
|
Binary file
|
package/dist/main/lib/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as types from './types';
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const createLauncherManager: () => types.LauncherManager;
|
|
3
3
|
export declare const allocAliveCount: () => number;
|
|
4
4
|
export declare class BannerlordModuleManager {
|
|
5
5
|
private constructor();
|
package/dist/main/lib/index.js
CHANGED
|
@@ -32,68 +32,68 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
32
32
|
})(function (require, exports) {
|
|
33
33
|
"use strict";
|
|
34
34
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
35
|
-
exports.types = exports.FetchBannerlordVersion = exports.BannerlordModuleManager = exports.allocAliveCount = exports.
|
|
35
|
+
exports.types = exports.FetchBannerlordVersion = exports.BannerlordModuleManager = exports.allocAliveCount = exports.createLauncherManager = void 0;
|
|
36
36
|
const types = __importStar(require("./types"));
|
|
37
37
|
exports.types = types;
|
|
38
|
-
const
|
|
39
|
-
const
|
|
40
|
-
return new
|
|
38
|
+
const launchermanager = require('./../../launchermanager.node');
|
|
39
|
+
const createLauncherManager = () => {
|
|
40
|
+
return new launchermanager.LauncherManager();
|
|
41
41
|
};
|
|
42
|
-
exports.
|
|
42
|
+
exports.createLauncherManager = createLauncherManager;
|
|
43
43
|
const allocAliveCount = () => {
|
|
44
|
-
return
|
|
44
|
+
return launchermanager.allocAliveCount();
|
|
45
45
|
};
|
|
46
46
|
exports.allocAliveCount = allocAliveCount;
|
|
47
47
|
class BannerlordModuleManager {
|
|
48
48
|
/* istanbul ignore next */
|
|
49
49
|
constructor() { }
|
|
50
50
|
static sort(unsorted) {
|
|
51
|
-
return
|
|
51
|
+
return launchermanager.sort(unsorted);
|
|
52
52
|
}
|
|
53
53
|
static sortWithOptions(unsorted, options) {
|
|
54
|
-
return
|
|
54
|
+
return launchermanager.sortWithOptions(unsorted, options);
|
|
55
55
|
}
|
|
56
56
|
static areAllDependenciesOfModulePresent(unsorted, module) {
|
|
57
|
-
return
|
|
57
|
+
return launchermanager.areAllDependenciesOfModulePresent(unsorted, module);
|
|
58
58
|
}
|
|
59
59
|
static getDependentModulesOf(source, module) {
|
|
60
|
-
return
|
|
60
|
+
return launchermanager.getDependentModulesOf(source, module);
|
|
61
61
|
}
|
|
62
62
|
static getDependentModulesOfWithOptions(source, module, options) {
|
|
63
|
-
return
|
|
63
|
+
return launchermanager.getDependentModulesOfWithOptions(source, module, options);
|
|
64
64
|
}
|
|
65
65
|
static validateLoadOrder(source, targetModule) {
|
|
66
|
-
return
|
|
66
|
+
return launchermanager.validateLoadOrder(source, targetModule);
|
|
67
67
|
}
|
|
68
68
|
static validateModule(modules, targetModule, manager) {
|
|
69
|
-
return
|
|
69
|
+
return launchermanager.validateModule(modules, targetModule, manager);
|
|
70
70
|
}
|
|
71
71
|
static enableModule(modules, targetModule, manager) {
|
|
72
|
-
return
|
|
72
|
+
return launchermanager.enableModule(modules, targetModule, manager);
|
|
73
73
|
}
|
|
74
74
|
static disableModule(modules, targetModule, manager) {
|
|
75
|
-
return
|
|
75
|
+
return launchermanager.disableModule(modules, targetModule, manager);
|
|
76
76
|
}
|
|
77
77
|
static getModuleInfo(xml) {
|
|
78
|
-
return
|
|
78
|
+
return launchermanager.getModuleInfo(xml);
|
|
79
79
|
}
|
|
80
80
|
static getSubModuleInfo(xml) {
|
|
81
|
-
return
|
|
81
|
+
return launchermanager.getSubModuleInfo(xml);
|
|
82
82
|
}
|
|
83
83
|
static compareVersions(x, y) {
|
|
84
|
-
return
|
|
84
|
+
return launchermanager.compareVersions(x, y);
|
|
85
85
|
}
|
|
86
86
|
static getDependenciesAll(module) {
|
|
87
|
-
return
|
|
87
|
+
return launchermanager.getDependenciesAll(module);
|
|
88
88
|
}
|
|
89
89
|
static getDependenciesToLoadBeforeThis(module) {
|
|
90
|
-
return
|
|
90
|
+
return launchermanager.getDependenciesToLoadBeforeThis(module);
|
|
91
91
|
}
|
|
92
92
|
static getDependenciesToLoadAfterThis(module) {
|
|
93
|
-
return
|
|
93
|
+
return launchermanager.getDependenciesToLoadAfterThis(module);
|
|
94
94
|
}
|
|
95
95
|
static getDependenciesIncompatibles(module) {
|
|
96
|
-
return
|
|
96
|
+
return launchermanager.getDependenciesIncompatibles(module);
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
99
|
exports.BannerlordModuleManager = BannerlordModuleManager;
|
|
@@ -101,13 +101,13 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
101
101
|
/* istanbul ignore next */
|
|
102
102
|
constructor() { }
|
|
103
103
|
static getChangeSet(gameFolderPath, libAssembly) {
|
|
104
|
-
return
|
|
104
|
+
return launchermanager.getChangeSet(gameFolderPath, libAssembly);
|
|
105
105
|
}
|
|
106
106
|
static getVersion(gameFolderPath, libAssembly) {
|
|
107
|
-
return
|
|
107
|
+
return launchermanager.getVersion(gameFolderPath, libAssembly);
|
|
108
108
|
}
|
|
109
109
|
static getVersionType(gameFolderPath, libAssembly) {
|
|
110
|
-
return
|
|
110
|
+
return launchermanager.getVersionType(gameFolderPath, libAssembly);
|
|
111
111
|
}
|
|
112
112
|
}
|
|
113
113
|
exports.FetchBannerlordVersion = FetchBannerlordVersion;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/lib/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAAA,+CAAiC;IAgG7B,sBAAK;IA9FT,MAAM,eAAe,GAAqB,OAAO,CAAC,8BAA8B,CAAC,CAAC;IAE3E,MAAM,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/lib/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAAA,+CAAiC;IAgG7B,sBAAK;IA9FT,MAAM,eAAe,GAAqB,OAAO,CAAC,8BAA8B,CAAC,CAAC;IAE3E,MAAM,qBAAqB,GAAG,GAA0B,EAAE;QAC7D,OAAO,IAAI,eAAe,CAAC,eAAe,EAAE,CAAC;IACjD,CAAC,CAAA;IAFY,QAAA,qBAAqB,yBAEjC;IAEM,MAAM,eAAe,GAAG,GAAW,EAAE;QACxC,OAAO,eAAe,CAAC,eAAe,EAAE,CAAC;IAC7C,CAAC,CAAA;IAFY,QAAA,eAAe,mBAE3B;IAED,MAA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7D,OAAO,eAAe,CAAC,cAAc,CAAC,cAAc,EAAE,WAAW,CAAC,CAAC;QACvE,CAAC;KACJ;IAfD,wDAeC"}
|
package/dist/{module/lib/types/VortexExtensionManager.d.ts → main/lib/types/LauncherManager.d.ts}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { types } from "vortex-api";
|
|
2
2
|
import { ModuleInfoExtended } from "./BannerlordModuleManager";
|
|
3
3
|
export interface IVortexExtension {
|
|
4
|
-
|
|
4
|
+
LauncherManager: new () => LauncherManager;
|
|
5
5
|
}
|
|
6
6
|
export interface ILoadOrderEntry<T = any> {
|
|
7
7
|
pos: number;
|
|
@@ -14,8 +14,8 @@ export interface ILoadOrderEntry<T = any> {
|
|
|
14
14
|
export interface ILoadOrder {
|
|
15
15
|
[modId: string]: ILoadOrderEntry;
|
|
16
16
|
}
|
|
17
|
-
export type
|
|
18
|
-
constructor():
|
|
17
|
+
export type LauncherManager = {
|
|
18
|
+
constructor(): LauncherManager;
|
|
19
19
|
registerCallbacks(getActiveProfile: () => types.IProfile, getProfileById: (id: string) => types.IProfile, getActiveGameId: () => string, setGameParameters: (gameId: string, executable: string, gameParameters: string[]) => void, getLoadOrder: () => ILoadOrder, setLoadOrder: (loadOrder: ILoadOrder) => void, translateString: (text: string, ns: string) => string, sendNotification: (id: string, type: types.NotificationType, message: string, delayMS: number) => void, getInstallPath: () => string, readFileContent: (filePath: string) => string | null, readDirectoryFileList: (directoryPath: string) => string[] | null, readDirectoryList: (directoryPath: string) => string[] | null): void;
|
|
20
20
|
getGameVersion(): string;
|
|
21
21
|
testModule(files: string[], gameId: string): types.ISupportedResult;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LauncherManager.js","sourceRoot":"","sources":["../../../../src/lib/types/LauncherManager.ts"],"names":[],"mappings":""}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export * from './BannerlordModuleManager';
|
|
2
2
|
export * from './FetchBannerlordVersion';
|
|
3
|
-
export * from './
|
|
3
|
+
export * from './LauncherManager';
|
|
4
4
|
import { IBannerlordModuleManager } from './BannerlordModuleManager';
|
|
5
5
|
import { IFetchBannerlordVersion } from './FetchBannerlordVersion';
|
|
6
|
-
import { IVortexExtension } from './
|
|
6
|
+
import { IVortexExtension } from './LauncherManager';
|
|
7
7
|
export interface IExtension extends IBannerlordModuleManager, IFetchBannerlordVersion, IVortexExtension {
|
|
8
8
|
allocAliveCount(): number;
|
|
9
9
|
}
|
|
@@ -18,13 +18,13 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
18
18
|
if (v !== undefined) module.exports = v;
|
|
19
19
|
}
|
|
20
20
|
else if (typeof define === "function" && define.amd) {
|
|
21
|
-
define(["require", "exports", "./BannerlordModuleManager", "./FetchBannerlordVersion", "./
|
|
21
|
+
define(["require", "exports", "./BannerlordModuleManager", "./FetchBannerlordVersion", "./LauncherManager"], factory);
|
|
22
22
|
}
|
|
23
23
|
})(function (require, exports) {
|
|
24
24
|
"use strict";
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
__exportStar(require("./BannerlordModuleManager"), exports);
|
|
27
27
|
__exportStar(require("./FetchBannerlordVersion"), exports);
|
|
28
|
-
__exportStar(require("./
|
|
28
|
+
__exportStar(require("./LauncherManager"), exports);
|
|
29
29
|
});
|
|
30
30
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/lib/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;IAAA,4DAA0C;IAC1C,2DAAyC;IACzC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/lib/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;IAAA,4DAA0C;IAC1C,2DAAyC;IACzC,oDAAkC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as types from './types';
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const createLauncherManager: () => types.LauncherManager;
|
|
3
3
|
export declare const allocAliveCount: () => number;
|
|
4
4
|
export declare class BannerlordModuleManager {
|
|
5
5
|
private constructor();
|
package/dist/module/lib/index.js
CHANGED
|
@@ -1,74 +1,74 @@
|
|
|
1
1
|
import * as types from './types';
|
|
2
|
-
const
|
|
3
|
-
export const
|
|
4
|
-
return new
|
|
2
|
+
const launchermanager = require('./../../launchermanager.node');
|
|
3
|
+
export const createLauncherManager = () => {
|
|
4
|
+
return new launchermanager.LauncherManager();
|
|
5
5
|
};
|
|
6
6
|
export const allocAliveCount = () => {
|
|
7
|
-
return
|
|
7
|
+
return launchermanager.allocAliveCount();
|
|
8
8
|
};
|
|
9
9
|
export class BannerlordModuleManager {
|
|
10
10
|
/* istanbul ignore next */
|
|
11
11
|
constructor() { }
|
|
12
12
|
static sort(unsorted) {
|
|
13
|
-
return
|
|
13
|
+
return launchermanager.sort(unsorted);
|
|
14
14
|
}
|
|
15
15
|
static sortWithOptions(unsorted, options) {
|
|
16
|
-
return
|
|
16
|
+
return launchermanager.sortWithOptions(unsorted, options);
|
|
17
17
|
}
|
|
18
18
|
static areAllDependenciesOfModulePresent(unsorted, module) {
|
|
19
|
-
return
|
|
19
|
+
return launchermanager.areAllDependenciesOfModulePresent(unsorted, module);
|
|
20
20
|
}
|
|
21
21
|
static getDependentModulesOf(source, module) {
|
|
22
|
-
return
|
|
22
|
+
return launchermanager.getDependentModulesOf(source, module);
|
|
23
23
|
}
|
|
24
24
|
static getDependentModulesOfWithOptions(source, module, options) {
|
|
25
|
-
return
|
|
25
|
+
return launchermanager.getDependentModulesOfWithOptions(source, module, options);
|
|
26
26
|
}
|
|
27
27
|
static validateLoadOrder(source, targetModule) {
|
|
28
|
-
return
|
|
28
|
+
return launchermanager.validateLoadOrder(source, targetModule);
|
|
29
29
|
}
|
|
30
30
|
static validateModule(modules, targetModule, manager) {
|
|
31
|
-
return
|
|
31
|
+
return launchermanager.validateModule(modules, targetModule, manager);
|
|
32
32
|
}
|
|
33
33
|
static enableModule(modules, targetModule, manager) {
|
|
34
|
-
return
|
|
34
|
+
return launchermanager.enableModule(modules, targetModule, manager);
|
|
35
35
|
}
|
|
36
36
|
static disableModule(modules, targetModule, manager) {
|
|
37
|
-
return
|
|
37
|
+
return launchermanager.disableModule(modules, targetModule, manager);
|
|
38
38
|
}
|
|
39
39
|
static getModuleInfo(xml) {
|
|
40
|
-
return
|
|
40
|
+
return launchermanager.getModuleInfo(xml);
|
|
41
41
|
}
|
|
42
42
|
static getSubModuleInfo(xml) {
|
|
43
|
-
return
|
|
43
|
+
return launchermanager.getSubModuleInfo(xml);
|
|
44
44
|
}
|
|
45
45
|
static compareVersions(x, y) {
|
|
46
|
-
return
|
|
46
|
+
return launchermanager.compareVersions(x, y);
|
|
47
47
|
}
|
|
48
48
|
static getDependenciesAll(module) {
|
|
49
|
-
return
|
|
49
|
+
return launchermanager.getDependenciesAll(module);
|
|
50
50
|
}
|
|
51
51
|
static getDependenciesToLoadBeforeThis(module) {
|
|
52
|
-
return
|
|
52
|
+
return launchermanager.getDependenciesToLoadBeforeThis(module);
|
|
53
53
|
}
|
|
54
54
|
static getDependenciesToLoadAfterThis(module) {
|
|
55
|
-
return
|
|
55
|
+
return launchermanager.getDependenciesToLoadAfterThis(module);
|
|
56
56
|
}
|
|
57
57
|
static getDependenciesIncompatibles(module) {
|
|
58
|
-
return
|
|
58
|
+
return launchermanager.getDependenciesIncompatibles(module);
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
61
|
export class FetchBannerlordVersion {
|
|
62
62
|
/* istanbul ignore next */
|
|
63
63
|
constructor() { }
|
|
64
64
|
static getChangeSet(gameFolderPath, libAssembly) {
|
|
65
|
-
return
|
|
65
|
+
return launchermanager.getChangeSet(gameFolderPath, libAssembly);
|
|
66
66
|
}
|
|
67
67
|
static getVersion(gameFolderPath, libAssembly) {
|
|
68
|
-
return
|
|
68
|
+
return launchermanager.getVersion(gameFolderPath, libAssembly);
|
|
69
69
|
}
|
|
70
70
|
static getVersionType(gameFolderPath, libAssembly) {
|
|
71
|
-
return
|
|
71
|
+
return launchermanager.getVersionType(gameFolderPath, libAssembly);
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
74
|
export { types };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/lib/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,SAAS,CAAC;AAEjC,MAAM,eAAe,GAAqB,OAAO,CAAC,8BAA8B,CAAC,CAAC;AAElF,MAAM,CAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/lib/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,SAAS,CAAC;AAEjC,MAAM,eAAe,GAAqB,OAAO,CAAC,8BAA8B,CAAC,CAAC;AAElF,MAAM,CAAC,MAAM,qBAAqB,GAAG,GAA0B,EAAE;IAC7D,OAAO,IAAI,eAAe,CAAC,eAAe,EAAE,CAAC;AACjD,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,eAAe,GAAG,GAAW,EAAE;IACxC,OAAO,eAAe,CAAC,eAAe,EAAE,CAAC;AAC7C,CAAC,CAAA;AAED,MAAM,OAAO,uBAAuB;IAChC,0BAA0B;IAC1B,gBAAwB,CAAC;IAEzB,MAAM,CAAC,IAAI,CAAC,QAAoC;QAC5C,OAAO,eAAe,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IAC1C,CAAC;IAED,MAAM,CAAC,eAAe,CAAC,QAAoC,EAAE,OAAkC;QAC3F,OAAO,eAAe,CAAC,eAAe,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;IAC9D,CAAC;IAED,MAAM,CAAC,iCAAiC,CAAC,QAAoC,EAAE,MAAgC;QAC3G,OAAO,eAAe,CAAC,iCAAiC,CAAC,QAAQ,EAAE,MAAM,CAAC,CAA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D,CAAC;IAED,MAAM,CAAC,kBAAkB,CAAC,MAAgC;QACtD,OAAO,eAAe,CAAC,kBAAkB,CAAC,MAAM,CAAC,CAAC;IACtD,CAAC;IACD,MAAM,CAAC,+BAA+B,CAAC,MAAgC;QACnE,OAAO,eAAe,CAAC,+BAA+B,CAAC,MAAM,CAAC,CAAC;IACnE,CAAC;IACD,MAAM,CAAC,8BAA8B,CAAC,MAAgC;QAClE,OAAO,eAAe,CAAC,8BAA8B,CAAC,MAAM,CAAC,CAAC;IAClE,CAAC;IACD,MAAM,CAAC,4BAA4B,CAAC,MAAgC;QAChE,OAAO,eAAe,CAAC,4BAA4B,CAAC,MAAM,CAAC,CAAC;IAChE,CAAC;CACJ;AAED,MAAM,OAAO,sBAAsB;IAC/B,0BAA0B;IAC1B,gBAAwB,CAAC;IAEzB,MAAM,CAAC,YAAY,CAAC,cAAsB,EAAE,WAAmB;QAC3D,OAAO,eAAe,CAAC,YAAY,CAAC,cAAc,EAAE,WAAW,CAAC,CAAC;IACrE,CAAC;IAED,MAAM,CAAC,UAAU,CAAC,cAAsB,EAAE,WAAmB;QACzD,OAAO,eAAe,CAAC,UAAU,CAAC,cAAc,EAAE,WAAW,CAAC,CAAC;IACnE,CAAC;IAED,MAAM,CAAC,cAAc,CAAC,cAAsB,EAAE,WAAmB;QAC7D,OAAO,eAAe,CAAC,cAAc,CAAC,cAAc,EAAE,WAAW,CAAC,CAAC;IACvE,CAAC;CACJ;AAED,OAAO,EACH,KAAK,EACR,CAAA"}
|
package/dist/{main/lib/types/VortexExtensionManager.d.ts → module/lib/types/LauncherManager.d.ts}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { types } from "vortex-api";
|
|
2
2
|
import { ModuleInfoExtended } from "./BannerlordModuleManager";
|
|
3
3
|
export interface IVortexExtension {
|
|
4
|
-
|
|
4
|
+
LauncherManager: new () => LauncherManager;
|
|
5
5
|
}
|
|
6
6
|
export interface ILoadOrderEntry<T = any> {
|
|
7
7
|
pos: number;
|
|
@@ -14,8 +14,8 @@ export interface ILoadOrderEntry<T = any> {
|
|
|
14
14
|
export interface ILoadOrder {
|
|
15
15
|
[modId: string]: ILoadOrderEntry;
|
|
16
16
|
}
|
|
17
|
-
export type
|
|
18
|
-
constructor():
|
|
17
|
+
export type LauncherManager = {
|
|
18
|
+
constructor(): LauncherManager;
|
|
19
19
|
registerCallbacks(getActiveProfile: () => types.IProfile, getProfileById: (id: string) => types.IProfile, getActiveGameId: () => string, setGameParameters: (gameId: string, executable: string, gameParameters: string[]) => void, getLoadOrder: () => ILoadOrder, setLoadOrder: (loadOrder: ILoadOrder) => void, translateString: (text: string, ns: string) => string, sendNotification: (id: string, type: types.NotificationType, message: string, delayMS: number) => void, getInstallPath: () => string, readFileContent: (filePath: string) => string | null, readDirectoryFileList: (directoryPath: string) => string[] | null, readDirectoryList: (directoryPath: string) => string[] | null): void;
|
|
20
20
|
getGameVersion(): string;
|
|
21
21
|
testModule(files: string[], gameId: string): types.ISupportedResult;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LauncherManager.js","sourceRoot":"","sources":["../../../../src/lib/types/LauncherManager.ts"],"names":[],"mappings":""}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export * from './BannerlordModuleManager';
|
|
2
2
|
export * from './FetchBannerlordVersion';
|
|
3
|
-
export * from './
|
|
3
|
+
export * from './LauncherManager';
|
|
4
4
|
import { IBannerlordModuleManager } from './BannerlordModuleManager';
|
|
5
5
|
import { IFetchBannerlordVersion } from './FetchBannerlordVersion';
|
|
6
|
-
import { IVortexExtension } from './
|
|
6
|
+
import { IVortexExtension } from './LauncherManager';
|
|
7
7
|
export interface IExtension extends IBannerlordModuleManager, IFetchBannerlordVersion, IVortexExtension {
|
|
8
8
|
allocAliveCount(): number;
|
|
9
9
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/lib/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,cAAc,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/lib/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,cAAc,mBAAmB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@butr/vortexextensionnative",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.27",
|
|
4
4
|
"description": "Package of native bindings bundled with TS declarations",
|
|
5
5
|
"main": "dist/main/lib/index.js",
|
|
6
6
|
"typings": "dist/main/lib/index.d.ts",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"gypfile": true,
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
11
|
-
"url": "git+ssh://git@github.com:BUTR/Bannerlord.
|
|
11
|
+
"url": "git+ssh://git@github.com:BUTR/Bannerlord.LauncherManager.git"
|
|
12
12
|
},
|
|
13
13
|
"keywords": [
|
|
14
14
|
"bannerlord",
|
|
@@ -16,9 +16,9 @@
|
|
|
16
16
|
],
|
|
17
17
|
"author": "BUTR",
|
|
18
18
|
"license": "MIT",
|
|
19
|
-
"homepage": "https://github.com/BUTR/Bannerlord.
|
|
19
|
+
"homepage": "https://github.com/BUTR/Bannerlord.LauncherManager#readme",
|
|
20
20
|
"bugs": {
|
|
21
|
-
"url": "https://github.com/BUTR/Bannerlord.
|
|
21
|
+
"url": "https://github.com/BUTR/Bannerlord.LauncherManager/issues"
|
|
22
22
|
},
|
|
23
23
|
"scripts": {
|
|
24
24
|
"install": "echo",
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
"dist/main/lib",
|
|
72
72
|
"dist/module/index.*",
|
|
73
73
|
"dist/module/lib",
|
|
74
|
-
"dist/Bannerlord.
|
|
74
|
+
"dist/Bannerlord.LauncherManager.Native.dll",
|
|
75
75
|
"dist/vortexextension.node",
|
|
76
76
|
"dist/steam_api64.dll",
|
|
77
77
|
"dist/steam_appid.txt",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"VortexExtensionManager.js","sourceRoot":"","sources":["../../../../src/lib/types/VortexExtensionManager.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"VortexExtensionManager.js","sourceRoot":"","sources":["../../../../src/lib/types/VortexExtensionManager.ts"],"names":[],"mappings":""}
|
|
Binary file
|