Files
G-Launcher/frontend/bindings/g-launcher/internal/fs-service/fsservice.js
T

131 lines
2.9 KiB
JavaScript

// @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<boolean>}
*/
export function DirExists(path) {
return $Call.ByID(4102029604, path);
}
/**
* @param {string} path
* @returns {$CancellablePromise<boolean>}
*/
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<string>}
*/
export function GetDir(path) {
return $Call.ByID(1567262998, path);
}
/**
* @returns {$CancellablePromise<[string, string]>}
*/
export function GetSavedGameSelection() {
return $Call.ByID(858061230);
}
/**
* @param {string[]} paths
* @returns {$CancellablePromise<string>}
*/
export function Join(...paths) {
return $Call.ByID(3036412633, paths);
}
/**
* @param {string} path
* @returns {$CancellablePromise<[boolean, string]>}
*/
export function OpenFolder(path) {
return $Call.ByID(1601714793, path);
}
/**
* @param {string} filter
* @returns {$CancellablePromise<string>}
*/
export function PickFile(filter) {
return $Call.ByID(2493433102, filter);
}
/**
* @returns {$CancellablePromise<string>}
*/
export function PickFolder() {
return $Call.ByID(1673632540);
}
/**
* @param {string} gameDir
* @param {string} fileName
* @returns {$CancellablePromise<string>}
*/
export function ReadConfigFile(gameDir, fileName) {
return $Call.ByID(3834168665, gameDir, fileName);
}
/**
* @param {string} path
* @returns {$CancellablePromise<void>}
*/
export function RemoveFile(path) {
return $Call.ByID(2698409755, path);
}
/**
* @param {string} gamePath
* @param {string} gameDir
* @returns {$CancellablePromise<void>}
*/
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<void>}
*/
export function WriteConfigFile(gameDir, fileName, content) {
return $Call.ByID(1143842060, gameDir, fileName, content);
}