LogManager: Fix bug where we accidentally opened a log file even if not enabled.

This commit is contained in:
Henrik Rydgård
2025-08-31 20:53:18 +02:00
parent bc2e7b34ea
commit 8e4ae1c067
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -199,7 +199,7 @@ void LogManager::SetFileLogPath(const Path &filename) {
fclose(fp_);
}
if (!filename.empty()) {
if (!filename.empty() && (outputs_ & LogOutput::File)) {
logFilename_ = Path(filename);
File::CreateFullPath(logFilename_.NavigateUp());
fp_ = File::OpenCFile(logFilename_, "at");
+1
View File
@@ -758,6 +758,7 @@ extern "C" void Java_org_ppsspp_ppsspp_NativeApp_init
}
}
// TODO: We should be able to do the Vulkan init in parallel with NativeInit.
NativeInit((int)args.size(), &args[0], user_data_path.c_str(), externalStorageDir.c_str(), cacheDir.c_str());
bFirstResume = true;