UPDATE: Add precheck version hdiff, support another hdiff
This commit is contained in:
@@ -4,21 +4,19 @@
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
||||
// @ts-ignore: Unused imports
|
||||
import {Call as $Call, Create as $Create} from "@wailsio/runtime";
|
||||
import { Call as $Call, CancellablePromise as $CancellablePromise, Create as $Create } from "@wailsio/runtime";
|
||||
|
||||
/**
|
||||
* @param {number} timeout
|
||||
* @returns {Promise<[boolean, string]> & { cancel(): void }}
|
||||
* @returns {$CancellablePromise<[boolean, string]>}
|
||||
*/
|
||||
export function CloseAppAfterTimeout(timeout) {
|
||||
let $resultPromise = /** @type {any} */($Call.ByID(1705931481, timeout));
|
||||
return $resultPromise;
|
||||
return $Call.ByID(1705931481, timeout);
|
||||
}
|
||||
|
||||
/**
|
||||
* @returns {Promise<[boolean, string]> & { cancel(): void }}
|
||||
* @returns {$CancellablePromise<[boolean, string]>}
|
||||
*/
|
||||
export function GetCurrentLauncherVersion() {
|
||||
let $resultPromise = /** @type {any} */($Call.ByID(3575133982));
|
||||
return $resultPromise;
|
||||
return $Call.ByID(3575133982);
|
||||
}
|
||||
|
||||
@@ -4,70 +4,64 @@
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
||||
// @ts-ignore: Unused imports
|
||||
import {Call as $Call, Create as $Create} from "@wailsio/runtime";
|
||||
import { Call as $Call, CancellablePromise as $CancellablePromise, Create as $Create } from "@wailsio/runtime";
|
||||
|
||||
/**
|
||||
* @param {string} patchPath
|
||||
* @returns {Promise<[boolean, string, string]> & { cancel(): void }}
|
||||
* @returns {$CancellablePromise<[boolean, string, string]>}
|
||||
*/
|
||||
export function CheckTypeHDiff(patchPath) {
|
||||
let $resultPromise = /** @type {any} */($Call.ByID(3717449114, patchPath));
|
||||
return $resultPromise;
|
||||
return $Call.ByID(3717449114, patchPath);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {string} gamePath
|
||||
* @returns {Promise<[boolean, string]> & { cancel(): void }}
|
||||
* @returns {$CancellablePromise<[boolean, string]>}
|
||||
*/
|
||||
export function CutData(gamePath) {
|
||||
let $resultPromise = /** @type {any} */($Call.ByID(2019290107, gamePath));
|
||||
return $resultPromise;
|
||||
return $Call.ByID(2019290107, gamePath);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {string} gamePath
|
||||
* @param {string} patchPath
|
||||
* @param {boolean} isSkipVerify
|
||||
* @returns {Promise<[boolean, string]> & { cancel(): void }}
|
||||
* @returns {$CancellablePromise<[boolean, string]>}
|
||||
*/
|
||||
export function DataExtract(gamePath, patchPath, isSkipVerify) {
|
||||
let $resultPromise = /** @type {any} */($Call.ByID(2161622254, gamePath, patchPath, isSkipVerify));
|
||||
return $resultPromise;
|
||||
return $Call.ByID(2161622254, gamePath, patchPath, isSkipVerify);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {string} gamePath
|
||||
* @returns {Promise<[boolean, string]> & { cancel(): void }}
|
||||
* @returns {$CancellablePromise<[boolean, string]>}
|
||||
*/
|
||||
export function DeleteFiles(gamePath) {
|
||||
let $resultPromise = /** @type {any} */($Call.ByID(1103091613, gamePath));
|
||||
return $resultPromise;
|
||||
return $Call.ByID(1103091613, gamePath);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {string} gamePath
|
||||
* @returns {Promise<[boolean, string]> & { cancel(): void }}
|
||||
* @returns {$CancellablePromise<[boolean, string]>}
|
||||
*/
|
||||
export function HDiffPatchData(gamePath) {
|
||||
let $resultPromise = /** @type {any} */($Call.ByID(3944051994, gamePath));
|
||||
return $resultPromise;
|
||||
return $Call.ByID(3944051994, gamePath);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {string} gamePath
|
||||
* @returns {Promise<[boolean, string]> & { cancel(): void }}
|
||||
* @returns {$CancellablePromise<[boolean, string]>}
|
||||
*/
|
||||
export function LDiffPatchData(gamePath) {
|
||||
let $resultPromise = /** @type {any} */($Call.ByID(360123238, gamePath));
|
||||
return $resultPromise;
|
||||
return $Call.ByID(360123238, gamePath);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {string} gamePath
|
||||
* @param {string} patchPath
|
||||
* @returns {Promise<[boolean, string]> & { cancel(): void }}
|
||||
* @param {boolean} isNeedHDiff
|
||||
* @returns {$CancellablePromise<[boolean, string]>}
|
||||
*/
|
||||
export function VersionValidate(gamePath, patchPath) {
|
||||
let $resultPromise = /** @type {any} */($Call.ByID(2105077257, gamePath, patchPath));
|
||||
return $resultPromise;
|
||||
export function VersionValidate(gamePath, patchPath, isNeedHDiff) {
|
||||
return $Call.ByID(2105077257, gamePath, patchPath, isNeedHDiff);
|
||||
}
|
||||
|
||||
@@ -4,76 +4,68 @@
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
||||
// @ts-ignore: Unused imports
|
||||
import {Call as $Call, Create as $Create} from "@wailsio/runtime";
|
||||
import { Call as $Call, CancellablePromise as $CancellablePromise, Create as $Create } from "@wailsio/runtime";
|
||||
|
||||
/**
|
||||
* @param {string} path
|
||||
* @returns {Promise<boolean> & { cancel(): void }}
|
||||
* @returns {$CancellablePromise<boolean>}
|
||||
*/
|
||||
export function DirExists(path) {
|
||||
let $resultPromise = /** @type {any} */($Call.ByID(1772289644, path));
|
||||
return $resultPromise;
|
||||
return $Call.ByID(1772289644, path);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {string} path
|
||||
* @returns {Promise<boolean> & { cancel(): void }}
|
||||
* @returns {$CancellablePromise<boolean>}
|
||||
*/
|
||||
export function FileExists(path) {
|
||||
let $resultPromise = /** @type {any} */($Call.ByID(1782610747, path));
|
||||
return $resultPromise;
|
||||
return $Call.ByID(1782610747, path);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {string} archivePath
|
||||
* @param {string} fileInside
|
||||
* @returns {Promise<[boolean, string]> & { cancel(): void }}
|
||||
* @returns {$CancellablePromise<[boolean, string]>}
|
||||
*/
|
||||
export function FileExistsInZip(archivePath, fileInside) {
|
||||
let $resultPromise = /** @type {any} */($Call.ByID(2509699047, archivePath, fileInside));
|
||||
return $resultPromise;
|
||||
return $Call.ByID(2509699047, archivePath, fileInside);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {string} path
|
||||
* @returns {Promise<[boolean, string]> & { cancel(): void }}
|
||||
* @returns {$CancellablePromise<[boolean, string]>}
|
||||
*/
|
||||
export function OpenFolder(path) {
|
||||
let $resultPromise = /** @type {any} */($Call.ByID(1635714001, path));
|
||||
return $resultPromise;
|
||||
return $Call.ByID(1635714001, path);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {string} filter
|
||||
* @returns {Promise<string> & { cancel(): void }}
|
||||
* @returns {$CancellablePromise<string>}
|
||||
*/
|
||||
export function PickFile(filter) {
|
||||
let $resultPromise = /** @type {any} */($Call.ByID(3756474934, filter));
|
||||
return $resultPromise;
|
||||
return $Call.ByID(3756474934, filter);
|
||||
}
|
||||
|
||||
/**
|
||||
* @returns {Promise<string> & { cancel(): void }}
|
||||
* @returns {$CancellablePromise<string>}
|
||||
*/
|
||||
export function PickFolder() {
|
||||
let $resultPromise = /** @type {any} */($Call.ByID(3654471460));
|
||||
return $resultPromise;
|
||||
return $Call.ByID(3654471460);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {string} path
|
||||
* @returns {Promise<boolean> & { cancel(): void }}
|
||||
* @returns {$CancellablePromise<boolean>}
|
||||
*/
|
||||
export function StartApp(path) {
|
||||
let $resultPromise = /** @type {any} */($Call.ByID(1267568402, path));
|
||||
return $resultPromise;
|
||||
return $Call.ByID(1267568402, path);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {string} path
|
||||
* @returns {Promise<boolean> & { cancel(): void }}
|
||||
* @returns {$CancellablePromise<boolean>}
|
||||
*/
|
||||
export function StartWithConsole(path) {
|
||||
let $resultPromise = /** @type {any} */($Call.ByID(3249271428, path));
|
||||
return $resultPromise;
|
||||
return $Call.ByID(3249271428, path);
|
||||
}
|
||||
|
||||
@@ -4,71 +4,63 @@
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
||||
// @ts-ignore: Unused imports
|
||||
import {Call as $Call, Create as $Create} from "@wailsio/runtime";
|
||||
import { Call as $Call, CancellablePromise as $CancellablePromise, Create as $Create } from "@wailsio/runtime";
|
||||
|
||||
/**
|
||||
* @param {string} version
|
||||
* @returns {Promise<[boolean, string]> & { cancel(): void }}
|
||||
* @returns {$CancellablePromise<[boolean, string]>}
|
||||
*/
|
||||
export function DownloadProxyProgress(version) {
|
||||
let $resultPromise = /** @type {any} */($Call.ByID(3559275334, version));
|
||||
return $resultPromise;
|
||||
return $Call.ByID(3559275334, version);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {string} version
|
||||
* @returns {Promise<[boolean, string]> & { cancel(): void }}
|
||||
* @returns {$CancellablePromise<[boolean, string]>}
|
||||
*/
|
||||
export function DownloadServerProgress(version) {
|
||||
let $resultPromise = /** @type {any} */($Call.ByID(1954767259, version));
|
||||
return $resultPromise;
|
||||
return $Call.ByID(1954767259, version);
|
||||
}
|
||||
|
||||
/**
|
||||
* @returns {Promise<[boolean, string, string]> & { cancel(): void }}
|
||||
* @returns {$CancellablePromise<[boolean, string, string]>}
|
||||
*/
|
||||
export function GetLatestLauncherVersion() {
|
||||
let $resultPromise = /** @type {any} */($Call.ByID(262637602));
|
||||
return $resultPromise;
|
||||
return $Call.ByID(262637602);
|
||||
}
|
||||
|
||||
/**
|
||||
* @returns {Promise<[boolean, string, string]> & { cancel(): void }}
|
||||
* @returns {$CancellablePromise<[boolean, string, string]>}
|
||||
*/
|
||||
export function GetLatestProxyVersion() {
|
||||
let $resultPromise = /** @type {any} */($Call.ByID(289488362));
|
||||
return $resultPromise;
|
||||
return $Call.ByID(289488362);
|
||||
}
|
||||
|
||||
/**
|
||||
* @returns {Promise<[boolean, string, string]> & { cancel(): void }}
|
||||
* @returns {$CancellablePromise<[boolean, string, string]>}
|
||||
*/
|
||||
export function GetLatestServerVersion() {
|
||||
let $resultPromise = /** @type {any} */($Call.ByID(2918980975));
|
||||
return $resultPromise;
|
||||
return $Call.ByID(2918980975);
|
||||
}
|
||||
|
||||
/**
|
||||
* @returns {Promise<void> & { cancel(): void }}
|
||||
* @returns {$CancellablePromise<void>}
|
||||
*/
|
||||
export function UnzipProxy() {
|
||||
let $resultPromise = /** @type {any} */($Call.ByID(2563246729));
|
||||
return $resultPromise;
|
||||
return $Call.ByID(2563246729);
|
||||
}
|
||||
|
||||
/**
|
||||
* @returns {Promise<void> & { cancel(): void }}
|
||||
* @returns {$CancellablePromise<void>}
|
||||
*/
|
||||
export function UnzipServer() {
|
||||
let $resultPromise = /** @type {any} */($Call.ByID(1126363284));
|
||||
return $resultPromise;
|
||||
return $Call.ByID(1126363284);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {string} version
|
||||
* @returns {Promise<[boolean, string]> & { cancel(): void }}
|
||||
* @returns {$CancellablePromise<[boolean, string]>}
|
||||
*/
|
||||
export function UpdateLauncherProgress(version) {
|
||||
let $resultPromise = /** @type {any} */($Call.ByID(97272861, version));
|
||||
return $resultPromise;
|
||||
return $Call.ByID(97272861, version);
|
||||
}
|
||||
|
||||
@@ -4,24 +4,22 @@
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
||||
// @ts-ignore: Unused imports
|
||||
import {Call as $Call, Create as $Create} from "@wailsio/runtime";
|
||||
import { Call as $Call, CancellablePromise as $CancellablePromise, Create as $Create } from "@wailsio/runtime";
|
||||
|
||||
/**
|
||||
* @param {string} path
|
||||
* @returns {Promise<[boolean, string, string, string]> & { cancel(): void }}
|
||||
* @returns {$CancellablePromise<[boolean, string, string, string]>}
|
||||
*/
|
||||
export function GetLanguage(path) {
|
||||
let $resultPromise = /** @type {any} */($Call.ByID(3574191687, path));
|
||||
return $resultPromise;
|
||||
return $Call.ByID(3574191687, path);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {string} path
|
||||
* @param {string} text
|
||||
* @param {string} voice
|
||||
* @returns {Promise<[boolean, string]> & { cancel(): void }}
|
||||
* @returns {$CancellablePromise<[boolean, string]>}
|
||||
*/
|
||||
export function SetLanguage(path, text, voice) {
|
||||
let $resultPromise = /** @type {any} */($Call.ByID(2768939795, path, text, voice));
|
||||
return $resultPromise;
|
||||
return $Call.ByID(2768939795, path, text, voice);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user