Commit Graph

7 Commits

Author SHA1 Message Date
nmlgc 84270d59d9 Merge branch 'master' into th04_noems_crash_fix 2024-07-09 09:01:21 +02:00
nmlgc fd0c95dcd1 [Decompilation] [th04/th05] MAINE.EXE: main()
So anticlimactic, again…
Also, note how renaming the `end_sequence_t` constants to better match
their usage also simplifies the explanatory comment for TH04's
not-quirk.

Part of P0265, funded by [Anonymous] and iruleatgames.
2024-02-03 08:59:48 +01:00
nmlgc a7ac71ade6 [Mod] [th04] Fix Reimu's Stage 5 pre-boss dialog crash without active EMS
Which really had nothing to do with EMS, and everything with ZUN
miscalculating the maximum amount of memory that TH04 would need at
its most asset-intensive point, by no more than 3.840 bytes; EMS only
worked around the real issue here. More information about this bug:

	https://rec98.nmlgc.net/blog/2021-11-29

This is the smallest, least-impact fix for this issue and nothing more.
Limiting the amount of memory for a DOS program is mostly pointless to
begin with, though. Check out the `mem_assign_all` branch for an
alternative fix that removes all memory limitations from all games that
have them.

Part of P0169, funded by Blue Bolt.
2021-11-29 02:56:36 +01:00
nmlgc fe33d49e0a [Decompilation] [th04/th05] EMS: Allocation + Preloading the eyecatch image
No, I'm not copying exactly what was on ZUN's monitor during the 2010
MAG・ネット documentary. Also, this one was very lucky not to receive
a stupid function name.

Part of P0168, funded by Blue Bolt and rosenrose.
2021-11-29 01:53:43 +01:00
wintiger0222 61a2df2d71 [Naming] [th04/th05] EMS area setup 2019-11-24 16:02:43 +01:00
wintiger0222 37fb6eba32 [Naming] [th02/th04/th05] Demo loading and playback 2019-11-24 14:14:13 +01:00
nmlgc 71c737c4ee [Maintenance] Move DOS memory assignment sizes to separate files
Ideally, these could be calculated from some other game-specific
parameters? Anyone else who wants to look into this?
2019-11-24 14:04:36 +01:00