parent
1b18c2baa3
commit
8e1e8d483c
|
@ -64,9 +64,9 @@ int dbOpen(const char* filePath1, int a2, const char* filePath2, int a4)
|
|||
}
|
||||
|
||||
// 0x4C5D58
|
||||
int _db_total()
|
||||
int db_total()
|
||||
{
|
||||
return 0;
|
||||
return 1;
|
||||
}
|
||||
|
||||
// 0x4C5D60
|
||||
|
|
2
src/db.h
2
src/db.h
|
@ -12,7 +12,7 @@ typedef void FileReadProgressHandler();
|
|||
typedef char* StrdupProc(const char* string);
|
||||
|
||||
int dbOpen(const char* filePath1, int a2, const char* filePath2, int a4);
|
||||
int _db_total();
|
||||
int db_total();
|
||||
void dbExit();
|
||||
int dbGetFileSize(const char* filePath, int* sizePtr);
|
||||
int dbGetFileContents(const char* filePath, void* ptr);
|
||||
|
|
|
@ -140,7 +140,7 @@ int windowManagerInit(VideoSystemInitProc* videoSystemInitProc, VideoSystemExitP
|
|||
gWindowIndexes[index] = -1;
|
||||
}
|
||||
|
||||
if (_db_total() == 0) {
|
||||
if (db_total() == 0) {
|
||||
if (dbOpen(nullptr, 0, _path_patches, 1) == -1) {
|
||||
return WINDOW_MANAGER_ERR_INITIALIZING_DEFAULT_DATABASE;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue