diff options
author | Iru Cai <mytbk920423@gmail.com> | 2021-05-10 20:37:57 +0800 |
---|---|---|
committer | Iru Cai <mytbk920423@gmail.com> | 2021-05-10 20:39:53 +0800 |
commit | 03be543d2e4ed7c9da5b63b74625d4b802bd9316 (patch) | |
tree | 23f84dc08617706703964f6f0dd3903b7cf44d6e /asm/Makefile | |
parent | d7620b8069cc098e317f6bdaa2d05b8a36db4c61 (diff) | |
download | rich4-03be543d2e4ed7c9da5b63b74625d4b802bd9316.tar.xz |
replace card strings
I generate a script with the following program to replace the refs in
card_strings.
int main()
{
const unsigned addr = 0x48123a;
for (int i = 0; i < 12 * 3 * 30; i++) {
unsigned offset = i * 4;
printf("sed -i 's/ref_%08x/(card_strings+%d)/g' rich4.asm\n",
addr + offset, offset);
}
}
Diffstat (limited to 'asm/Makefile')
-rw-r--r-- | asm/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/asm/Makefile b/asm/Makefile index f4e1bd9..5ce40a5 100644 --- a/asm/Makefile +++ b/asm/Makefile @@ -5,7 +5,7 @@ LDFLAGS=-e fcn_0045709c LIBS=-lgdi32 -luser32 -lkernel32 -lwinmm -ldsound -lddraw LIBS+=-lmsvcrt -OBJS = rich4.obj rich4_time.obj +OBJS = rich4.obj rich4_time.obj card_strings.obj rich4.exe: $(OBJS) $(LD) -o $@ $(OBJS) $(LDFLAGS) $(LIBS) |