mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-11 05:26:24 +02:00
Allow the graphicsContext to be overridden.
This is useful when coming from, for example, headless.
This commit is contained in:
1 parent
82205a4660
commit
0b7e43d05c
1 file changed
+3
-1
+3
-1
@@ -389,7 +389,9 @@ bool PSP_InitStart(const CoreParameter &coreParam, std::string *error_string) {
|
||||
|
||||
GraphicsContext *temp = coreParameter.graphicsContext;
|
||||
coreParameter = coreParam;
|
||||
coreParameter.graphicsContext = temp;
|
||||
if (coreParameter.graphicsContext == nullptr) {
|
||||
coreParameter.graphicsContext = temp;
|
||||
}
|
||||
coreParameter.errorString = "";
|
||||
pspIsIniting = true;
|
||||
|
||||
|
||||
Reference in new issue
Block a user