(3DS) On error, only init gfx on salamander build

This prevents graphical issues if the gfx is already initialized.
Which should always be the case if called from a running core.
This commit is contained in:
MrHuu 2021-01-17 15:44:35 +01:00 committed by GitHub
parent 6ac08ec123
commit 2633b3e310
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -325,9 +325,9 @@ void wait_for_input(void)
void error_and_quit(const char* errorStr)
{
errorConf error;
#ifdef IS_SALAMANDER
gfxInitDefault();
#endif
errorInit(&error, ERROR_TEXT, CFG_LANGUAGE_EN);
errorText(&error, errorStr);
errorDisp(&error);