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
+17 -2
View File
@@ -159,8 +159,7 @@ AGS::AGS(NACT* parent, const Config& config) : nact(parent), dirty(false)
// SYSTEM3 初期化
// ACG.DAT
strcpy_s(acg, 16, "ACG.DAT");
acg.open("ACG.DAT");
// パレット
memset(program_palette, 0, sizeof(program_palette));
@@ -429,6 +428,22 @@ AGS::~AGS()
SDL_DestroyTexture(sdlTexture);
}
void AGS::set_cg_file(const char *file_name)
{
bmp_prefix = NULL;
if (nact->sys_ver == 3) {
// あゆみちゃん物語 フルカラー実写版
if (!strcmp(file_name, "CGA000.BMP")) {
bmp_prefix = "CGA";
return;
} else if (!strcmp(file_name, "CGB000.BMP")) {
bmp_prefix = "CGB";
return;
}
}
acg.open(file_name);
}
void AGS::set_palette(int index, int r, int g, int b)
{
if(index < 16) {