reman3/game_re/gh_fix/r3_loadVignette.cxx

61 lines
1.7 KiB
C++

// AUTO-GENERATED FILE, MOVE TO 'gh_fix' FOLDER PREVENT OVERWRITING!!!!!
#include <r3/binders/auto.h>
#include <gh_global.h>
extern "C" {
void r3_beginLoadLevel(void); // 00447860 // r3_beginLoadLevel // cdecl
FIL_ConcatFile * FIL_fn_vOpenConcatFile(char * fileName); // 0055d890 // FIL_fn_vOpenConcatFile // cdecl
undefined r3_waitForDvd(const char * param_1, const char * param_2, undefined4 param_3); // 0043e540 // r3_waitForDvd // cdecl
void r3_unlockLoadLevelMutex(void); // 00447890 // r3_unlockLoadLevelMutex // cdecl
// 004fa4a0
void r3_loadVignette(char *param_1)
{
char cVar1;
int iVar2;
char *local_11c;
char *local_118;
char *local_10c;
char *local_108;
char local_104 [256];
r3_beginLoadLevel();
g_fileWrapper1 = FIL_fn_vOpenConcatFile(param_1);
if (g_fileWrapper1 == (FIL_ConcatFile *)0x0) {
local_108 = param_1;
local_10c = local_104;
do {
cVar1 = *local_108;
*local_10c = cVar1;
local_108 = local_108 + 1;
local_10c = local_10c + 1;
} while (cVar1 != '\0');
sprintf(param_1,s_percent_s_path_2,0x5d26a8,local_104);
g_fileWrapper1 = FIL_fn_vOpenConcatFile(param_1);
while (g_fileWrapper1 == (FIL_ConcatFile *)0x0) {
iVar2 = r3_waitForDvd(s_Please_insert_the_CD_005be980,s_Please_insert_the_CD_005be980,0x40035)
;
if (iVar2 == 2) {
/* WARNING: Subroutine does not return */
exit(-1);
}
g_fileWrapper1 = FIL_fn_vOpenConcatFile(param_1);
}
local_118 = local_104;
local_11c = param_1;
do {
cVar1 = *local_118;
*local_11c = cVar1;
local_118 = local_118 + 1;
local_11c = local_11c + 1;
} while (cVar1 != '\0');
}
r3_unlockLoadLevelMutex();
return;
}
}