mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-12 14:00:27 +02:00
System: Allow GPU to have delayed loading.
This commit is contained in:
1 parent
f23c7cf93b
commit
60c4ac58f0
5 files changed
+15
-4
No files matched your search
+4
-4
@@ -436,16 +436,16 @@ bool PSP_InitUpdate(std::string *error_string) {
|
||||
|
||||
bool success = coreParameter.fileToStart != "";
|
||||
*error_string = coreParameter.errorString;
|
||||
if (success) {
|
||||
if (success && gpu == nullptr) {
|
||||
success = GPU_Init(coreParameter.graphicsContext, coreParameter.thin3d);
|
||||
if (!success) {
|
||||
PSP_Shutdown();
|
||||
*error_string = "Unable to initialize rendering engine.";
|
||||
}
|
||||
}
|
||||
pspIsInited = success;
|
||||
pspIsIniting = false;
|
||||
return true;
|
||||
pspIsInited = success && GPU_IsReady();
|
||||
pspIsIniting = success && !pspIsInited;
|
||||
return !success || pspIsInited;
|
||||
}
|
||||
|
||||
bool PSP_Init(const CoreParameter &coreParam, std::string *error_string) {
|
||||
|
||||
Reference in new issue
Block a user