Whoops.
This commit is contained in:
parent
db4150b651
commit
36d465f9e1
@ -529,15 +529,12 @@ bool Accelerator::SDK_OnLoad(char *error, size_t maxlength, bool late)
|
||||
char steamInfPath[512];
|
||||
g_pSM->BuildPath(Path_Game, steamInfPath, sizeof(steamInfPath), "steam.inf");
|
||||
|
||||
FILE *f = fopen(steamInfPath, "rb");
|
||||
if (!f) {
|
||||
return;
|
||||
}
|
||||
|
||||
FILE *steamInfFile = fopen(steamInfPath, "rb");
|
||||
if (steamInfFile) {
|
||||
char steamInfTemp[256] = {0};
|
||||
fread(steamInfTemp, sizeof(char), sizeof(steamInfTemp) - 1, f);
|
||||
fread(steamInfTemp, sizeof(char), sizeof(steamInfTemp) - 1, steamInfFile);
|
||||
|
||||
fclose(f);
|
||||
fclose(steamInfFile);
|
||||
|
||||
unsigned source = 0;
|
||||
strcpy(steamInf, "\nSteam_");
|
||||
@ -562,6 +559,7 @@ bool Accelerator::SDK_OnLoad(char *error, size_t maxlength, bool late)
|
||||
}
|
||||
steamInf[target++] = steamInfTemp[source++];
|
||||
}
|
||||
}
|
||||
|
||||
if (late) {
|
||||
this->OnCoreMapStart(NULL, 0, 0);
|
||||
|
Loading…
Reference in New Issue
Block a user