Skip to content

Commit

Permalink
Fixed handling of certain relative paths of LaunchBox
Browse files Browse the repository at this point in the history
  • Loading branch information
mmatyas committed Oct 20, 2020
1 parent 1207934 commit 49dd98b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/backend/providers/launchbox/LaunchBoxGamelistXml.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ void store_game_fields(

if (emu_id.isEmpty()) {
game.setLaunchCmd(QStringLiteral("{file.path}"));
game.setLaunchWorkdir(QFileInfo(fields.at(GameField::PATH)).absolutePath());
game.setLaunchWorkdir(QFileInfo(lb_dir, fields.at(GameField::PATH)).absolutePath());
return;
}

Expand All @@ -218,7 +218,7 @@ void store_game_fields(
}
}
game.setLaunchCmd(QStringLiteral("\"%1\" %2 {file.path}").arg(emu.app_path, emu_params));
game.setLaunchWorkdir(QFileInfo(emu.app_path).absolutePath());
game.setLaunchWorkdir(QFileInfo(lb_dir, emu.app_path).absolutePath());
}

PendingGame& store_game(
Expand Down

0 comments on commit 49dd98b

Please sign in to comment.