mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-02 18:53:58 +01:00
CPU_Init: Bail out earlier if we fail to identify a file.
This commit is contained in:
1 parent
f690cb99a4
commit
e93427c433
3 files changed
+11
-4
No files matched your search
@@ -6,6 +6,7 @@
|
||||
#include "Common/TimeUtil.h"
|
||||
|
||||
#include "android/jni/app-android.h"
|
||||
#include "Common/Thread/ThreadUtil.h"
|
||||
|
||||
#if PPSSPP_PLATFORM(ANDROID) && !defined(__LIBRETRO__)
|
||||
|
||||
@@ -70,6 +71,13 @@ int Android_OpenContentUriFd(std::string_view filename, Android_OpenContentUriMo
|
||||
return -1;
|
||||
}
|
||||
|
||||
/*
|
||||
// Should breakpoint here to try to find and move as many of these off the EmuThread as possible
|
||||
if (!strcmp(GetCurrentThreadName(), "EmuThread")) {
|
||||
WARN_LOG(Log::IO, "Content URI opened on EmuThread: %.*s", (int)filename.size(), filename.data());
|
||||
}
|
||||
*/
|
||||
|
||||
std::string fname(filename);
|
||||
// PPSSPP adds an ending slash to directories before looking them up.
|
||||
// TODO: Fix that in the caller (or don't call this for directories).
|
||||
|
||||
Reference in new issue
Block a user