mirror of
https://github.com/cemu-project/Cemu.git
synced 2024-11-23 03:19:48 +00:00
Linux: Fix crash on invalid command-line arguments
use std::cout instead of wxMessageBox which does not work when wxWidgets has not been initialised yet
This commit is contained in:
parent
3acd0c4f2c
commit
d6575455ee
@ -199,7 +199,11 @@ bool LaunchSettings::HandleCommandline(const std::vector<std::wstring>& args)
|
||||
std::string errorMsg;
|
||||
errorMsg.append("Error while trying to parse command line parameter:\n");
|
||||
errorMsg.append(ex.what());
|
||||
#if BOOST_OS_WINDOWS
|
||||
wxMessageBox(errorMsg, "Parameter error", wxICON_ERROR);
|
||||
#else
|
||||
std::cout << errorMsg << std::endl;
|
||||
#endif
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user