mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2026-04-12 04:31:29 -06:00
Properly fix game flag handling (#4119)
* fix the fix for the fix * fine there's no debug info then because of Ubuntu things
This commit is contained in:
parent
c8b3d63e7e
commit
67ffd0334b
@ -99,7 +99,6 @@ int main(int argc, char* argv[]) {
|
||||
const auto& extras = app.remaining();
|
||||
if (!extras.empty()) {
|
||||
gameArgs = extras;
|
||||
gameArgs.erase(gameArgs.begin());
|
||||
}
|
||||
});
|
||||
|
||||
@ -143,6 +142,14 @@ int main(int argc, char* argv[]) {
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
if (!gameArgs.empty()) {
|
||||
if (gameArgs.front() == "--") {
|
||||
gameArgs.erase(gameArgs.begin());
|
||||
} else {
|
||||
std::cerr << "Error: unhandled flags\n";
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
||||
// ---- Apply flags ----
|
||||
if (patchFile)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user