SCI: Stage 1 of the game detection overhaul. The end goal is to autodetect
as much as possible. All SCI_VERSION_* information was removed from detection.cpp (much of it was incorrect anyway). svn-id: r43449
This commit is contained in:
parent
582eb13fa2
commit
00f4794c0a
22 changed files with 592 additions and 853 deletions
|
@ -88,18 +88,11 @@ opcode_format g_opcode_formats[128][4] = {
|
|||
};
|
||||
#undef END
|
||||
|
||||
void script_adjust_opcode_formats(int res_version) {
|
||||
switch (res_version) {
|
||||
case SCI_VERSION_0:
|
||||
break;
|
||||
case SCI_VERSION_01:
|
||||
case SCI_VERSION_1:
|
||||
case SCI_VERSION_1_1:
|
||||
void script_adjust_opcode_formats(SciVersion version) {
|
||||
// TODO: Check that this is correct
|
||||
if ((version >= SCI_VERSION_1_1) || ((SciEngine*)g_engine)->getKernel()->hasLofsAbsolute()) {
|
||||
g_opcode_formats[op_lofsa][0] = Script_Offset;
|
||||
g_opcode_formats[op_lofss][0] = Script_Offset;
|
||||
break;
|
||||
default:
|
||||
error("script_adjust_opcode_formats(): Unknown script version %d\n", res_version);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue