Skip to content

Commit

Permalink
test if actually running DC installation on the updater
Browse files Browse the repository at this point in the history
  • Loading branch information
JoseAaronLopezGarcia committed Oct 7, 2023
1 parent 9dafded commit 4c456a7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions extras/updater/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -210,8 +210,7 @@ int main(int argc, char * argv[])
const int N_DC_FILES = (sizeof(dc_files)/sizeof(dc_files[0]));

// test for dc installation
res = sceIoGetstat(dc_files[0].path, &stat);
if (res >= 0){
if (strncmp(ark_config->arkpath, ARK_DC_PATH, sizeof(ARK_DC_PATH)) == 0){
for (int i=0; i<N_DC_FILES; i++){
pspDebugScreenPrintf("Installing %s\n", dc_files[i].path);
int fdw = sceIoOpen(dc_files[i].path, PSP_O_WRONLY|PSP_O_CREAT|PSP_O_TRUNC, 0777);
Expand Down

0 comments on commit 4c456a7

Please sign in to comment.