Introduce Dri class

It caches the link table.
This commit is contained in:
kichikuou
2024-12-08 13:39:23 +09:00
parent f26ce11fd9
commit 48d780add6
14 changed files with 121 additions and 110 deletions
+3 -3
View File
@@ -54,9 +54,9 @@ NACT::NACT(int sys_ver, uint32 crc32_a, uint32 crc32_b, const Config& config)
// ADISK.DAT
if (crc32_a == CRC32_PROG_OMAKE)
strcpy_s(adisk, 16, "AGAME.DAT");
adisk.open("AGAME.DAT");
else
strcpy_s(adisk, 16, "ADISK.DAT");
adisk.open("ADISK.DAT");
// シナリオ管理
load_scenario(0);
@@ -387,7 +387,7 @@ void NACT::text_wait()
void NACT::load_scenario(int page)
{
scenario_data = dri_load(adisk, page + 1);
scenario_data = adisk.load(page + 1);
if (scenario_data.empty()) {
fatal("Cannot load scenario %d", page);
}