feat: add comprehensive diagnostic logging subsystem and UI controls

This commit is contained in:
CAtlas0784 committed 2026-10-30 23:08:23 +07:00
1 parent 517436321b
commit 5f45841936
15 files changed
+495 -23

No files matched your search

@@ -39,6 +39,14 @@ export function GetDir(path) {
return $Call.ByID(1567262998, path);
}
/**
* GetLogFilePath returns the absolute path of launcher.log
* @returns {$CancellablePromise<string>}
*/
export function GetLogFilePath() {
return $Call.ByID(4150210098);
}
/**
* @returns {$CancellablePromise<[string, string]>}
*/
@@ -54,6 +62,16 @@ 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<void>}
*/
export function LogMessage(level, message) {
return $Call.ByID(4279191144, level, message);
}
/**
* @param {string} path
* @returns {$CancellablePromise<[boolean, string]>}
@@ -62,6 +80,14 @@ 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<string>}
@@ -86,6 +112,15 @@ 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<string>}
*/
export function ReadLogs(maxLines) {
return $Call.ByID(2698372806, maxLines);
}
/**
* @param {string} path
* @returns {$CancellablePromise<void>}