mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-05 06:21:26 +12:00
Fatal errors: concatenate multiple args after --error
It should fix error dialogs on Windows since it decomposes the arg string.
This commit is contained in:
parent
7989de9d16
commit
656db6c668
1 changed files with 10 additions and 1 deletions
|
@ -271,7 +271,16 @@ int main(int argc, char** argv)
|
||||||
// Only run RPCS3 to display an error
|
// Only run RPCS3 to display an error
|
||||||
if (int err_pos = find_arg(arg_error, argc, argv))
|
if (int err_pos = find_arg(arg_error, argc, argv))
|
||||||
{
|
{
|
||||||
report_fatal_error(argv[err_pos + 1]);
|
// Reconstruction of the error from multiple args
|
||||||
|
std::string error;
|
||||||
|
for (int i = err_pos + 1; i < argc; i++)
|
||||||
|
{
|
||||||
|
if (i > err_pos + 1)
|
||||||
|
error += ' ';
|
||||||
|
error += argv[i];
|
||||||
|
}
|
||||||
|
|
||||||
|
report_fatal_error(error);
|
||||||
}
|
}
|
||||||
|
|
||||||
const std::string lock_name = fs::get_cache_dir() + "RPCS3.buf";
|
const std::string lock_name = fs::get_cache_dir() + "RPCS3.buf";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue