mirror of
https://github.com/chocolate-doom/research.git
synced 2025-02-16 09:01:58 +00:00
Split out version-dependent definitions into separate files.
Subversion-branch: /research Subversion-revision: 1886
This commit is contained in:
parent
f3ce33db78
commit
bc3814b018
5 changed files with 10 additions and 1 deletions
|
@ -83,6 +83,9 @@ def set_config(name)
|
|||
for config in configs
|
||||
if name == config::NAME
|
||||
include config
|
||||
return
|
||||
end
|
||||
end
|
||||
|
||||
raise "Unknown configuration: #{name}"
|
||||
end
|
||||
|
|
|
@ -1,6 +1,9 @@
|
|||
#!/usr/bin/env ruby
|
||||
|
||||
require "json"
|
||||
require "common"
|
||||
|
||||
set_config(ARGV[1])
|
||||
|
||||
def read_block(file)
|
||||
result = ""
|
||||
|
@ -34,7 +37,7 @@ end
|
|||
File.open(ARGV[0]) do |file|
|
||||
current_str = ""
|
||||
|
||||
file.seek(554068 )
|
||||
file.seek(STRINGS_OFFSET)
|
||||
|
||||
offset = 0
|
||||
start_offset = nil
|
||||
|
|
|
@ -8,6 +8,7 @@ NUM_MOBJS=161
|
|||
|
||||
STATE_OFFSET=0x8bf04
|
||||
MOBJINFO_OFFSET=606956
|
||||
STRINGS_OFFSET=554068
|
||||
|
||||
# Locations of action pointer functions for Heretic 1.0. Hand-constructed.
|
||||
|
||||
|
|
|
@ -8,6 +8,7 @@ NUM_MOBJS=160
|
|||
|
||||
STATE_OFFSET=0x8e8b4
|
||||
MOBJINFO_OFFSET=617600
|
||||
STRINGS_OFFSET=563284
|
||||
|
||||
# Locations of action pointer functions for Heretic 1.2. Hand-constructed.
|
||||
|
||||
|
|
|
@ -8,6 +8,7 @@ NUM_MOBJS=160
|
|||
|
||||
STATE_OFFSET=0x8e8b4
|
||||
MOBJINFO_OFFSET=617600
|
||||
STRINGS_OFFSET=563284
|
||||
|
||||
# Action pointers for Heretic 1.3.
|
||||
|
||||
|
|
Loading…
Reference in a new issue