Removed DataLoadOrderPatch from ddraw.ini (always enabled)

This commit is contained in:
NovaRain
2021-03-26 12:29:18 +08:00
parent e90a805c95
commit 9d2c10aae6
2 changed files with 8 additions and 7 deletions
+2 -1
View File
@@ -266,7 +266,8 @@ UseFileSystemOverride=0
;Set to 1 to use the modified data load order for the engine to find game data
;Original: patchXXX.dat > critter_patches > critter_dat > f2_res_patches > f2_res_dat > master_patches > master_dat
;Modified: master_patches > critter_patches > patchXXX.dat > critter_dat > f2_res_patches > f2_res_dat > master_dat
DataLoadOrderPatch=1
;This option is always enabled in 4.3/3.8.30 or later. The information is left for reference only
;DataLoadOrderPatch=1
;To change the default and starting player models, uncomment the next four lines.
;The default models can also be changed ingame via script
+6 -6
View File
@@ -84,7 +84,7 @@ static void __fastcall game_init_databases_hook() { // eax = _master_db_handle
master_patches->next = paths; // master_patches.next -> paths
*ptr_paths = master_patches; // set master_patches node at the beginning of the chain of paths
}
/*
static void __fastcall game_init_databases_hook1() {
char masterPatch[MAX_PATH];
iniGetString("system", "master_patches", "", masterPatch, MAX_PATH - 1, (const char*)FO_VAR_gconfig_file_name);
@@ -96,7 +96,7 @@ static void __fastcall game_init_databases_hook1() {
}
*ptr_master_db_handle = node; // set pointer to master_patches node
}
*/
static void MultiPatchesPatch() {
//if (GetConfigInt("Misc", "MultiPatches", 0)) {
dlog("Applying load multiple patches patch.", DL_INIT);
@@ -291,16 +291,16 @@ void LoadOrder_OnGameLoad() {
void LoadOrder_Init() {
MultiPatchesPatch();
if (GetConfigInt("Misc", "DataLoadOrderPatch", 1)) {
//if (GetConfigInt("Misc", "DataLoadOrderPatch", 1)) {
dlog("Applying data load order patch.", DL_INIT);
MakeCall(0x444259, game_init_databases_hack1);
MakeCall(0x4442F1, game_init_databases_hack2);
HookCall(0x44436D, game_init_databases_hook);
SafeWrite8(0x4DFAEC, 0x1D); // error correction (ecx > ebx)
dlogr(" Done", DL_INIT);
} else {
HookCall(0x44436D, game_init_databases_hook1);
}
//} else {
// HookCall(0x44436D, game_init_databases_hook1);
//}
// Redefined behavior for replacing art aliases for critters
// first check the existence of the art file of the current critter and then replace the art alias if file not found