Bad idea: build a captcha library that embeds DOSBox so it can make you beat levels/puzzles from DOS games to continue.
-
a linked list of fonts, indexed by number.
that's an interesting approach to font storage
-
found another byte-level patch:
there's a debug-printf function which has a hack at the top to set the first character of the printf template to \0 -
the game's EnsureFontLoaded function seems to be called with 2 font numbers:
15000 and 200I'm sure that makes sense to someone
-
okay and I can spot a chunk index I sorta understand inside FONTS.DAT which specifies 3 fonts: 200, 300, and 15000
-
so it seems to identify chunks by a 4-digit character string (like NFNT) and a 16bit integer.
Very similar to what 3d Movie Maker does
-
so I think what's going on is these weirdos abused the 16bit linker to build their DAT files
that's why they're all DLL/EXE files
-
so it seems the NE files have multiple resource sections, and the first one has an index to get to the sub-chunk, and the rest are just in that order.
-
I don't know if they wrote their own NE executable header parser or there's some weird API for it that they're using
-
oh goody it emulates file numbers on top of the whole windows Handle thing.
so it's limited to 127 files open at once
-
correction: 30 files
-
okay yeah they're parsing their own EXE Files.
absolutely wild.
-
Borland Turbo C++: I know compilers who merge constant strings and they're all cowards
-
I think I found the "load this resource by type+ID" function.
I had temporarily named it "something_resource_something"