Core: Fix game arguments (#4118)

* Fix game arguments.

Tested with Crash Team Racing Nitro Fueled

* Fix the fix

This callback runs unconditionally, so only perform erase if we actually place anything in gameArgs
This commit is contained in:
Stephen Miller 2026-03-12 01:53:12 -05:00 committed by GitHub
parent ac3786f533
commit c8b3d63e7e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -99,6 +99,7 @@ int main(int argc, char* argv[]) {
const auto& extras = app.remaining();
if (!extras.empty()) {
gameArgs = extras;
gameArgs.erase(gameArgs.begin());
}
});