Skip to content

Commit

Permalink
[Fix] Print sideload game install dir in logs (#3591)
Browse files Browse the repository at this point in the history
Print sideload game install dir in logs
  • Loading branch information
arielj authored Mar 16, 2024
1 parent 32e4694 commit f955f61
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/backend/logger/logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -450,11 +450,17 @@ class GameLogWriter extends LogWriter {
// init log file and then append message if any
try {
// log game title and install directory

const installPath =
this.gameInfo.runner === 'sideload'
? this.gameInfo.folder_name
: this.gameInfo.install.install_path

await writeFile(
this.filePath,
`Launching "${this.gameInfo.title}" (${runner})\n` +
`Native? ${notNative ? 'No' : 'Yes'}\n` +
`Installed in: ${this.gameInfo.install.install_path}\n\n`
`Installed in: ${installPath}\n\n`
)

try {
Expand Down

0 comments on commit f955f61

Please sign in to comment.