mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00:00
Add command line option --vsh to try to boot the VSH. Logspam reduction, improve printf logs.
This commit is contained in:
1 parent
5c1d113279
commit
4bf36fc7f8
10 files changed
+54
-31
No files matched your search
+6
-3
@@ -579,11 +579,13 @@ void NativeInit(int argc, const char *argv[], const CommandLineOptions &cmdLineO
|
||||
// Apply parsed command line options to config.
|
||||
cmdLineOptions.ApplyToConfig();
|
||||
|
||||
const char *fileToLog = nullptr;
|
||||
|
||||
bool gotBootFilename = false;
|
||||
boot_filename.clear();
|
||||
|
||||
if (boot_filename.empty() && cmdLineOptions.bootVSH.has_value() && cmdLineOptions.bootVSH.value()) {
|
||||
boot_filename = g_Config.flash0Directory / "vsh/module/vshmain.prx";
|
||||
}
|
||||
|
||||
// Parse command line
|
||||
LogLevel logLevel = LogLevel::LINFO;
|
||||
bool forceLogLevel = false;
|
||||
@@ -596,6 +598,7 @@ void NativeInit(int argc, const char *argv[], const CommandLineOptions &cmdLineO
|
||||
setLogLevel(cmdLineOptions.logLevel.value());
|
||||
}
|
||||
|
||||
std::string fileToLog;
|
||||
for (int i = 1; i < argc; i++) {
|
||||
if (argv[i][0] == '-') {
|
||||
#if defined(__APPLE__)
|
||||
@@ -672,7 +675,7 @@ void NativeInit(int argc, const char *argv[], const CommandLineOptions &cmdLineO
|
||||
}
|
||||
}
|
||||
|
||||
if (fileToLog) {
|
||||
if (!fileToLog.empty()) {
|
||||
// Start logging immediately.
|
||||
g_logManager.EnableOutput(LogOutput::File);
|
||||
g_logManager.SetFileLogPath(Path(fileToLog));
|
||||
|
||||
Reference in new issue
Block a user