Make dump-mobjinfo use modular config. Add dumps of v1.2 and v1.3

mobjinfo tables.

Subversion-branch: /research
Subversion-revision: 1885
This commit is contained in:
Simon Howard 2010-04-17 22:46:31 +00:00
parent 5cfc8901d4
commit f3ce33db78
7 changed files with 8661 additions and 3 deletions

View File

@ -4,9 +4,8 @@ require "scanf"
require "common.rb"
filename = ARGV[0]
offset = ARGV[1].scanf("%x")[0]
NUM_MOBJS=161
set_config(ARGV[1])
def read_int(file)
c1 = file.getc
@ -82,7 +81,7 @@ end
states = []
File.open(filename) do |file|
file.seek(offset)
file.seek(MOBJINFO_OFFSET)
NUM_MOBJS.times do
states.push(read_mobj(file))
@ -101,3 +100,6 @@ for state in states
puts
end
puts "};"
puts

View File

@ -4,8 +4,10 @@ module Heretic_1_0
NAME="v1.0"
NUM_STATES=1206
NUM_MOBJS=161
STATE_OFFSET=0x8bf04
MOBJINFO_OFFSET=606956
# Locations of action pointer functions for Heretic 1.0. Hand-constructed.

View File

@ -4347,3 +4347,5 @@ mobjinfo_t mobjinfo[] = {
0, // flags2
},
};

View File

@ -4,8 +4,10 @@ module Heretic_1_2
NAME="v1.2"
NUM_STATES=1206
NUM_MOBJS=160
STATE_OFFSET=0x8e8b4
MOBJINFO_OFFSET=617600
# Locations of action pointer functions for Heretic 1.2. Hand-constructed.

4324
hhe/v1.2/mobjinfo.c Normal file

File diff suppressed because it is too large Load Diff

View File

@ -4,8 +4,10 @@ module Heretic_1_3
NAME="v1.3"
NUM_STATES=1206
NUM_MOBJS=160
STATE_OFFSET=0x8e8b4
MOBJINFO_OFFSET=617600
# Action pointers for Heretic 1.3.

4324
hhe/v1.3/mobjinfo.c Normal file

File diff suppressed because it is too large Load Diff