Add launcher logging and diagnostics export
This commit is contained in:
1 parent
6ce93ee962
commit
462b49b5c4
11 files changed
+233
-4
No files matched your search
@@ -14,6 +14,8 @@ export const APP_ERROR_CODES = [
|
||||
'internal_error',
|
||||
/** The launcher's own settings file could not be written. */
|
||||
'settings_write_failed',
|
||||
'logs_folder_open_failed',
|
||||
'diagnostics_export_failed',
|
||||
/** A folder the player chose does not exist or cannot be read (params: path). */
|
||||
'folder_unreadable',
|
||||
/** The chosen folder lacks the files of a War Thunder installation (params: path). */
|
||||
|
||||
@@ -42,6 +42,15 @@ export const ipcContract = {
|
||||
input: z.object({ path: z.string().min(1) }),
|
||||
output: z.void(),
|
||||
},
|
||||
'app:openLogsFolder': {
|
||||
input: z.void(),
|
||||
output: z.void(),
|
||||
},
|
||||
'app:exportDiagnostics': {
|
||||
input: z.void(),
|
||||
/** The saved archive, or null when the player cancelled. */
|
||||
output: z.object({ path: z.string().nullable() }),
|
||||
},
|
||||
'dialog:pickFolder': {
|
||||
/** The dialog title, already translated by the window. */
|
||||
input: z.object({ title: z.string().optional() }),
|
||||
|
||||
Reference in new issue
Block a user