GRIM: Rename engine data patches

This commit is contained in:
Paweł Kołodziejski 2020-11-01 14:10:09 +01:00
parent 5135f1f4b9
commit d44f1f77ed
12 changed files with 21 additions and 21 deletions

View file

@ -425,10 +425,10 @@ DIST_FILES_ENGINEDATA+=fonts.dat
endif endif
DIST_FILES_ENGINEDATA+=macgui.dat DIST_FILES_ENGINEDATA+=macgui.dat
ifdef ENABLE_GRIM ifdef ENABLE_GRIM
DIST_FILES_ENGINEDATA+=residualvm-grim-patch.lab DIST_FILES_ENGINEDATA+=grim-patch.lab
endif endif
ifdef ENABLE_MONKEY4 ifdef ENABLE_MONKEY4
DIST_FILES_ENGINEDATA+=residualvm-emi-patch.m4b DIST_FILES_ENGINEDATA+=monkey4-patch.m4b
endif endif
ifdef ENABLE_MYST3 ifdef ENABLE_MYST3
DIST_FILES_ENGINEDATA+=myst3.dat DIST_FILES_ENGINEDATA+=myst3.dat

View file

@ -828,8 +828,8 @@ XcodeProvider::ValueList& XcodeProvider::getResourceFiles() const {
files.push_back("dists/engine-data/lure.dat"); files.push_back("dists/engine-data/lure.dat");
files.push_back("dists/engine-data/macgui.dat"); files.push_back("dists/engine-data/macgui.dat");
files.push_back("dists/engine-data/myst3.dat"); files.push_back("dists/engine-data/myst3.dat");
files.push_back("dists/engine-data/residualvm-emi-patch.m4b"); files.push_back("dists/engine-data/monkey4-patch.m4b");
files.push_back("dists/engine-data/residualvm-grim-patch.lab"); files.push_back("dists/engine-data/grim-patch.lab");
files.push_back("dists/engine-data/macventure.dat"); files.push_back("dists/engine-data/macventure.dat");
files.push_back("dists/engine-data/mort.dat"); files.push_back("dists/engine-data/mort.dat");
files.push_back("dists/engine-data/neverhood.dat"); files.push_back("dists/engine-data/neverhood.dat");

View file

@ -3,7 +3,7 @@ List of fixed bugs in EMI scripts:
+Others modifications: +Others modifications:
-Differently from Grim Fandango, global preferences (such as volume, subtitles, ...) -Differently from Grim Fandango, global preferences (such as volume, subtitles, ...)
in EMI are saved in a text file (at least in Windows reatil version and demo). in EMI are saved in a text file (at least in Windows reatil version and demo).
Patches to _options.lua modifies this behaviour and hooks directly into ResidualVM Patches to _options.lua modifies this behaviour and hooks directly into ScummVM
configuration manager through GetResidualVMPreference and SetResidualVMPreference configuration manager through GetResidualVMPreference and SetResidualVMPreference
opcodes. For simplicity, these patches patches only load the file residualvm-prefs.lua, opcodes. For simplicity, these patches patches only load the file residualvm-prefs.lua,
(they add a 'dofile("residualvm-prefs.lua")' at the end of _options.lua) see it for (they add a 'dofile("residualvm-prefs.lua")' at the end of _options.lua) see it for
@ -14,17 +14,17 @@ List of fixed bugs in EMI scripts:
There is a varible that is never declared in mot.lua which positions Guybrush on There is a varible that is never declared in mot.lua which positions Guybrush on
the raft. Instead of using that one, just use the other variable they probably meant to use. the raft. Instead of using that one, just use the other variable they probably meant to use.
Contents of residualvm-emi-patch.m4b and its rebuild: Contents of monkey4-patch.m4b and its rebuild:
residualvm-emi-patch.m4b contains all .patchr files in the monkey4-patch.m4b contains all .patchr files in the
dists/engine-data/patches/emi/ directory. dists/engine-data/patches/monkey4/ directory.
If you add a new patch in that directory, you have to update this file If you add a new patch in that directory, you have to update this file
with a detailed description of what that patch does. with a detailed description of what that patch does.
Then you have to rebuild residualvm-emi-patch.m4b with mklab from the Then you have to rebuild monkey4-patch.m4b with mklab from the
residualvm-tools repo. The rebuild command is (assuming that you are residualvm-tools repo. The rebuild command is (assuming that you are
launching it in dists/engine-data/): launching it in dists/engine-data/):
$ mklab --emi patches/emi residualvm-emi-patch.m4b $ mklab --emi patches/monkey4 monkey4-patch.m4b
Please check that there aren't any files different from .patchr inside Please check that there aren't any files different from .patchr inside
that directory before the rebuild, so delete all junk, backup and system that directory before the rebuild, so delete all junk, backup and system

View file

@ -208,7 +208,7 @@ List of fixed bugs in GF scripts:
-Fix the missing dialogue with Domino at third year -Fix the missing dialogue with Domino at third year
In dlg_dom2.lua, the argument of CheckFirstTime is wrong; this In dlg_dom2.lua, the argument of CheckFirstTime is wrong; this
prevents the correct load of this script. prevents the correct load of this script.
See https://forums.residualvm.org/viewtopic.php?t=108 See https://forums.scummvm.org/viewtopic.php?t=108
+Others modifications: +Others modifications:
-The function si.set_up_actors (si.lua), calls "start_script(si.naranja_drinking)", -The function si.set_up_actors (si.lua), calls "start_script(si.naranja_drinking)",
@ -217,17 +217,17 @@ List of fixed bugs in GF scripts:
with "start_script(si.naranja_drink)", which does exists, but which can cause Naranja to stutter with "start_script(si.naranja_drink)", which does exists, but which can cause Naranja to stutter
when entering the set. when entering the set.
Contents of residualvm-grim-patches.lab and its rebuild: Contents of grim-patches.lab and its rebuild:
residualvm-grim-patches.lab contains all .patchr files in the grim-patches.lab contains all .patchr files in the
dists/engine-data/patches/grim/ directory. dists/engine-data/patches/grim/ directory.
If you add a new patch in that directory, you have to update this file If you add a new patch in that directory, you have to update this file
with a detailed description of what that patch does. with a detailed description of what that patch does.
Then you have to rebuild residualvm-grim-patches.lab with mklab from the Then you have to rebuild residualvm-grim-patches.lab with mklab from the
residualvm-tools repo. The rebuild command is (assuming that you are scummvm-tools repo. The rebuild command is (assuming that you are
launching it in dists/engine-data/): launching it in dists/engine-data/):
$ mklab --grim patches/grim residualvm-grim-patch.lab $ mklab --grim patches/grim grim-patch.lab
Please check that there aren't any files different from .patchr inside Please check that there aren't any files different from .patchr inside
that directory before the rebuild, so delete all junk, backup and system that directory before the rebuild, so delete all junk, backup and system

View file

@ -25,8 +25,8 @@ residualvm.zip FILE "gui/themes/residualvm.zip"
#ifdef BUILTIN_RESOURCES #ifdef BUILTIN_RESOURCES
#if PLUGIN_ENABLED_STATIC(GRIM) #if PLUGIN_ENABLED_STATIC(GRIM)
residualvm-grim-patch.lab FILE "dists/engine-data/residualvm-grim-patch.lab" grim-patch.lab FILE "dists/engine-data/grim-patch.lab"
residualvm-emi-patch.m4b FILE "dists/engine-data/residualvm-emi-patch.m4b" monkey4-patch.m4b FILE "dists/engine-data/monkey4-patch.m4b"
#endif #endif
#if PLUGIN_ENABLED_STATIC(MYST3) #if PLUGIN_ENABLED_STATIC(MYST3)
myst3.dat FILE "dists/engine-data/myst3.dat" myst3.dat FILE "dists/engine-data/myst3.dat"

View file

@ -121,10 +121,10 @@ ResourceLoader::ResourceLoader() {
SearchMan.listMatchingMembers(files, "sound001.lab"); SearchMan.listMatchingMembers(files, "sound001.lab");
SearchMan.listMatchingMembers(files, "voice001.lab"); SearchMan.listMatchingMembers(files, "voice001.lab");
} else { } else {
if (!SearchMan.hasFile("residualvm-grim-patch.lab")) if (!SearchMan.hasFile("grim-patch.lab"))
error("%s", "residualvm-grim-patch.lab not found"); error("%s", "grim-patch.lab not found");
SearchMan.listMatchingMembers(files, "residualvm-grim-patch.lab"); SearchMan.listMatchingMembers(files, "grim-patch.lab");
SearchMan.listMatchingMembers(files, "data005.lab"); SearchMan.listMatchingMembers(files, "data005.lab");
SearchMan.listMatchingMembers(files, "data004.lab"); SearchMan.listMatchingMembers(files, "data004.lab");
SearchMan.listMatchingMembers(files, "data003.lab"); SearchMan.listMatchingMembers(files, "data003.lab");
@ -153,7 +153,7 @@ ResourceLoader::ResourceLoader() {
} }
} }
} else if (g_grim->getGameType() == GType_MONKEY4) { } else if (g_grim->getGameType() == GType_MONKEY4) {
const char *emi_patches_filename = "residualvm-emi-patch.m4b"; const char *emi_patches_filename = "monkey4-patch.m4b";
if (!SearchMan.hasFile(emi_patches_filename)) if (!SearchMan.hasFile(emi_patches_filename))
error("%s not found", emi_patches_filename); error("%s not found", emi_patches_filename);