// @ts-check // Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL // This file is automatically generated. DO NOT EDIT // eslint-disable-next-line @typescript-eslint/ban-ts-comment // @ts-ignore: Unused imports import { Call as $Call, CancellablePromise as $CancellablePromise, Create as $Create } from "@wailsio/runtime"; /** * @param {string} path * @returns {$CancellablePromise} */ export function DirExists(path) { return $Call.ByID(4102029604, path); } /** * @param {string} path * @returns {$CancellablePromise} */ export function FileExists(path) { return $Call.ByID(865459, path); } /** * @param {string} archivePath * @param {string} fileInside * @returns {$CancellablePromise<[boolean, string]>} */ export function FileExistsInZip(archivePath, fileInside) { return $Call.ByID(3506095695, archivePath, fileInside); } /** * @param {string} path * @returns {$CancellablePromise} */ export function GetDir(path) { return $Call.ByID(1567262998, path); } /** * GetLogFilePath returns the absolute path of launcher.log * @returns {$CancellablePromise} */ export function GetLogFilePath() { return $Call.ByID(4150210098); } /** * @returns {$CancellablePromise<[string, string]>} */ export function GetSavedGameSelection() { return $Call.ByID(858061230); } /** * @param {string[]} paths * @returns {$CancellablePromise} */ export function Join(...paths) { return $Call.ByID(3036412633, paths); } /** * LogMessage receives log entries from the frontend and appends them to launcher.log * @param {string} level * @param {string} message * @returns {$CancellablePromise} */ export function LogMessage(level, message) { return $Call.ByID(4279191144, level, message); } /** * @param {string} path * @returns {$CancellablePromise<[boolean, string]>} */ export function OpenFolder(path) { return $Call.ByID(1601714793, path); } /** * OpenLogsFolder opens the folder containing launcher.log in Windows File Explorer * @returns {$CancellablePromise<[boolean, string]>} */ export function OpenLogsFolder() { return $Call.ByID(2156513786); } /** * @param {string} filter * @returns {$CancellablePromise} */ export function PickFile(filter) { return $Call.ByID(2493433102, filter); } /** * @returns {$CancellablePromise} */ export function PickFolder() { return $Call.ByID(1673632540); } /** * @param {string} gameDir * @param {string} fileName * @returns {$CancellablePromise} */ export function ReadConfigFile(gameDir, fileName) { return $Call.ByID(3834168665, gameDir, fileName); } /** * ReadLogs returns the last maxLines of the log file * @param {number} maxLines * @returns {$CancellablePromise} */ export function ReadLogs(maxLines) { return $Call.ByID(2698372806, maxLines); } /** * @param {string} path * @returns {$CancellablePromise} */ export function RemoveFile(path) { return $Call.ByID(2698409755, path); } /** * @param {string} gamePath * @param {string} gameDir * @returns {$CancellablePromise} */ export function SaveGameSelection(gamePath, gameDir) { return $Call.ByID(1414185756, gamePath, gameDir); } /** * @param {string} path * @returns {$CancellablePromise<[boolean, string]>} */ export function StartApp(path) { return $Call.ByID(2875051690, path); } /** * @param {string} path * @returns {$CancellablePromise<[boolean, string]>} */ export function StartWithConsole(path) { return $Call.ByID(3393986364, path); } /** * @param {string} gameDir * @param {string} fileName * @param {string} content * @returns {$CancellablePromise} */ export function WriteConfigFile(gameDir, fileName, content) { return $Call.ByID(1143842060, gameDir, fileName, content); }