Files
nunuhara_xsystem4/include
kichikuou d57c8cc9f4 Dungeons & Dolls: Call global variable destructors on exit
Early versions of System4 (Sys42VM.dll < 3.0) execute destructors for
global variables on exit.

Dungeons & Dolls saves its game state in the destructors of global
variables (~CDataDoll(), ~CDataItem(), ~CDataMain()), so the game was
not saved in xsystem4 before this.

This behavior has some quirks:
 * Destructors for variables on the call stack are not called on exit.
 * Destructors are called in the reverse order of the global variable
   declarations.
 * Inside a destructor, it is possible to access another global variable
   whose destructor has already been called (!).

Since this is a problematic behavior that was removed in later versions
of Sys42VM, let's add minimal support for it as a game-specific hack.
2025-07-21 13:32:54 +09:00
..
2023-06-11 15:06:44 +09:00
2024-08-11 07:18:19 +09:00
2023-05-26 08:44:36 -07:00
2025-03-23 08:22:16 +09:00
2024-05-31 13:36:29 +09:00
2023-05-26 08:44:36 -07:00
2024-08-11 07:18:19 +09:00
2023-04-29 10:32:50 -07:00
2019-12-31 17:50:40 -08:00
2025-06-21 16:55:24 +09:00
2023-05-26 08:44:36 -07:00
2023-07-09 17:05:25 +09:00