Skip to content

Commit

Permalink
Added a check for libshacccg.suprx existence at boot.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rinnegatamante committed Jul 8, 2021
1 parent 30983a1 commit c6c96f0
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions Source/SysVita/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -894,6 +894,25 @@ int callbacks_thread(unsigned int args, void* arg) {
int main(int argc, char* argv[]) {
char *rom;

// Checking for libshacccg.suprx existence
SceIoStat st1, st2;
if (!(sceIoGetstat("ur0:/data/libshacccg.suprx", &st1) >= 0 || sceIoGetstat("ur0:/data/external/libshacccg.suprx", &st2) >= 0)) {
vglInit(0);
SceMsgDialogUserMessageParam msg_param;
sceClibMemset(&msg_param, 0, sizeof(SceMsgDialogUserMessageParam));
msg_param.buttonType = SCE_MSG_DIALOG_BUTTON_TYPE_OK;
msg_param.msg = (const SceChar8*)"Error: Runtime shader compiler (libshacccg.suprx) is not installed.";
SceMsgDialogParam param;
sceMsgDialogParamInit(&param);
param.mode = SCE_MSG_DIALOG_MODE_USER_MSG;
param.userMsgParam = &msg_param;
sceMsgDialogInit(&param);
while (sceMsgDialogGetStatus() != SCE_COMMON_DIALOG_STATUS_FINISHED) {
vglSwapBuffers(GL_TRUE);
}
sceKernelExitProcess(0);
}

// Initializing sceAppUtil
SceAppUtilInitParam appUtilParam;
SceAppUtilBootParam appUtilBootParam;
Expand Down

0 comments on commit c6c96f0

Please sign in to comment.