Edited [ExtraPatches] description in ddraw.ini

This commit is contained in:
NovaRain
2022-09-22 10:49:16 +08:00
parent ec5874a3c4
commit ea2a4bfdfa
4 changed files with 18 additions and 24 deletions
+9 -10
View File
@@ -16,18 +16,17 @@ UseCommandLine=0
;XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX ;XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
[ExtraPatches] [ExtraPatches]
;This section allows you to set multiple paths to folders containing mods or patches that will be loaded by the game ;This section allows you to set multiple paths to folders containing mods or patches
;If DataLoadOrderPatch is enabled, the data load order is:
;master_patches > critter_patches > [extra patches] > patchXXX.dat > sfall.dat > critter_dat > f2_res_patches > f2_res_dat > master_dat
;Paths to folders and Fallout .dat files are supported ;Paths to folders and Fallout .dat files are supported
;The PatchFile## options are available from 0 to 99. Larger numbers take precedence over smaller numbers (same as patchXXX.dat) ;The PatchFileXX options are available from 0 to 99. Larger numbers take precedence over smaller numbers (same as patchXXX.dat)
;PatchFile0=mods\RP_data ;PatchFile0=mods\RP_data
;PatchFile1=
;Path to the folder in which the game will automatically search and load custom files (by *.dat mask, including folders) ;Starting from 4.2.6, the game will automatically search and load custom .dat files (or folders named as .dat files) from <GameRoot>\mods\
;The data load order of the files in the folder will be in reverse alphabetical order of the filenames ;The load order of files in the folder will be in reverse alphabetical order of the filenames
;The files placed in this folder will have higher priority than the PatchFile## options ;Autoloaded files will have a higher priority than the files specified in the PatchFileXX options
;This option has no effect in 4.2.6 or later. The path is fixed to <GameRoot>\mods\ ;The complete data load order is:
;AutoSearchPath=mods ;master_patches > critter_patches > mods > PatchFile99..PatchFile0 > patchXXX.dat > sfall.dat > critter_dat > f2_res_patches > f2_res_dat > master_dat
;XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX ;XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
[Speed] [Speed]
@@ -281,7 +280,7 @@ UseFileSystemOverride=0
;Set to 1 to use the modified data load order for the engine to find game data ;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 ;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 ;Modified: master_patches > critter_patches > extra_patches > patchXXX.dat > sfall.dat > critter_dat > f2_res_patches > f2_res_dat > master_dat
;This option is always enabled in 4.3/3.8.30 or later. The information is left for reference only ;This option is always enabled in 4.3/3.8.30 or later. The information is left for reference only
DataLoadOrderPatch=1 DataLoadOrderPatch=1
+4 -10
View File
@@ -14,7 +14,7 @@ GEM
execjs execjs
coffee-script-source (1.11.1) coffee-script-source (1.11.1)
colorator (1.1.0) colorator (1.1.0)
commonmarker (0.23.4) commonmarker (0.23.6)
concurrent-ruby (1.1.9) concurrent-ruby (1.1.9)
dnsruby (1.61.9) dnsruby (1.61.9)
simpleidn (~> 0.1) simpleidn (~> 0.1)
@@ -121,6 +121,7 @@ GEM
pathutil (~> 0.9) pathutil (~> 0.9)
rouge (>= 1.7, < 4) rouge (>= 1.7, < 4)
safe_yaml (~> 1.0) safe_yaml (~> 1.0)
jekyll-analytics (0.1.14)
jekyll-avatar (0.7.0) jekyll-avatar (0.7.0)
jekyll (>= 3.0, < 5.0) jekyll (>= 3.0, < 5.0)
jekyll-coffeescript (1.1.1) jekyll-coffeescript (1.1.1)
@@ -232,7 +233,7 @@ GEM
jekyll-seo-tag (~> 2.1) jekyll-seo-tag (~> 2.1)
minitest (5.15.0) minitest (5.15.0)
multipart-post (2.1.1) multipart-post (2.1.1)
nokogiri (1.13.3) nokogiri (1.13.6)
mini_portile2 (~> 2.8.0) mini_portile2 (~> 2.8.0)
racc (~> 1.4) racc (~> 1.4)
octokit (4.22.0) octokit (4.22.0)
@@ -267,14 +268,10 @@ GEM
ethon (>= 0.9.0) ethon (>= 0.9.0)
tzinfo (1.2.10) tzinfo (1.2.10)
thread_safe (~> 0.1) thread_safe (~> 0.1)
tzinfo-data (1.2021.1)
tzinfo (>= 1.0.0)
unf (0.1.4) unf (0.1.4)
unf_ext unf_ext
unf_ext (0.0.8) unf_ext (0.0.8)
unicode-display_width (1.8.0) unicode-display_width (1.8.0)
wdm (0.1.1)
webrick (1.7.0)
zeitwerk (2.5.4) zeitwerk (2.5.4)
PLATFORMS PLATFORMS
@@ -284,11 +281,8 @@ DEPENDENCIES
github-pages (~> 225) github-pages (~> 225)
jekyll-analytics jekyll-analytics
jekyll-feed (~> 0.6) jekyll-feed (~> 0.6)
kramdown-parser-gfm jekyll-remote-theme
tzinfo (~> 1.2)
tzinfo-data tzinfo-data
wdm (~> 0.1.0)
webrick (~> 1.7)
BUNDLED WITH BUNDLED WITH
2.1.4 2.1.4
+3 -2
View File
@@ -256,6 +256,7 @@ static void __fastcall game_init_databases_hook1() {
} }
fo::var::master_db_handle = node; // set pointer to master_patches node fo::var::master_db_handle = node; // set pointer to master_patches node
InitSystemPatches();
InitExtraPatches(); InitExtraPatches();
} }
*/ */
@@ -263,7 +264,7 @@ static bool NormalizePath(std::string &path) {
if (path.find(':') != std::string::npos) return false; if (path.find(':') != std::string::npos) return false;
int pos = 0; int pos = 0;
do { // replace all '/' char to '\' do { // replace all '/' char with '\'
pos = path.find('/', pos); pos = path.find('/', pos);
if (pos != std::string::npos) path[pos] = '\\'; if (pos != std::string::npos) path[pos] = '\\';
} while (pos != std::string::npos); } while (pos != std::string::npos);
@@ -303,7 +304,7 @@ static void GetExtraPatches() {
// Remove first duplicates // Remove first duplicates
size_t size = patchFiles.size(); size_t size = patchFiles.size();
for (size_t i = 1; i < size; ++i) { for (size_t i = 1; i < size; ++i) {
for(size_t j = size - 1; j > i; --j) { for (size_t j = size - 1; j > i; --j) {
if (patchFiles[j] == patchFiles[i]) { if (patchFiles[j] == patchFiles[i]) {
patchFiles[i].clear(); patchFiles[i].clear();
} }
+2 -2
View File
@@ -31,8 +31,8 @@ public:
static Delegate<>& OnWorldmapLoop(); static Delegate<>& OnWorldmapLoop();
static void Worldmap::SaveData(HANDLE); static void SaveData(HANDLE);
static bool Worldmap::LoadData(HANDLE); static bool LoadData(HANDLE);
static void SetCarInterfaceArt(DWORD artIndex); static void SetCarInterfaceArt(DWORD artIndex);
static void SetRestHealTime(DWORD minutes); static void SetRestHealTime(DWORD minutes);