Skip to content

Commit

Permalink
Fix broken error dialogs
Browse files Browse the repository at this point in the history
  • Loading branch information
jchv committed Jul 23, 2024
1 parent 395970a commit 2a4650d
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions src/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ VOID FatalError(PCHAR fmt, ...) {
}

va_start(args, fmt);
SPrintfZ(buffer, fmt, args);
VSPrintfZ(buffer, fmt, args);
va_end(args);

pMessageBoxA(HWND_DESKTOP, buffer, "rugburn", MB_OK | MB_ICONERROR);
Expand All @@ -301,7 +301,7 @@ VOID Warning(PCHAR fmt, ...) {
PCHAR buffer = AllocMem(4096);

va_start(args, fmt);
SPrintfZ(buffer, fmt, args);
VSPrintfZ(buffer, fmt, args);
va_end(args);

pMessageBoxA(HWND_DESKTOP, buffer, "rugburn", MB_OK | MB_ICONWARNING);
Expand Down Expand Up @@ -425,7 +425,7 @@ PANGYAVER DetectPangyaVersion() {
return PANGYA_SEA;
} else if (FileExists("German.dat")) {
return PANGYA_EU;
}
}
return PANGYA_US;
}

Expand All @@ -440,15 +440,14 @@ PSTR GetPangyaArg(PANGYAVER pangyaVersion) {
case PANGYA_TH:
return DupStr("{E69B65A2-7A7E-4977-85E5-B19516D885CB}");

case PANGYA_EU:
{
case PANGYA_EU: {

if (FileExists("ProjectG_300eu+.pak"))
return DupStr("{98C07F18-BB68-467e-8C2C-29F63771460A}");
else if (FileExists("ProjetcG_400eu+.pak"))
return DupStr("{EE3C542D-525E-4711-BD3B-588BBAB17426}");
else
return DupStr("{E69B65A2-7A7E-4977-85E5-B19516D885CB}");
}
if (FileExists("ProjectG_300eu+.pak"))
return DupStr("{98C07F18-BB68-467e-8C2C-29F63771460A}");
else if (FileExists("ProjetcG_400eu+.pak"))
return DupStr("{EE3C542D-525E-4711-BD3B-588BBAB17426}");
else
return DupStr("{E69B65A2-7A7E-4977-85E5-B19516D885CB}");
}
}
}

0 comments on commit 2a4650d

Please sign in to comment.