mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-07-11 01:25:07 +02:00
LogManager: Fix bug where we accidentally opened a log file even if not enabled.
This commit is contained in:
@@ -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");
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user