Add some helper functions to GameId

This commit is contained in:
kichikuou
2024-12-24 12:22:10 +09:00
parent bb1573ec6d
commit b08b9f80f2
11 changed files with 42 additions and 39 deletions
+2 -10
View File
@@ -41,11 +41,7 @@ void AGS::load_pms(uint8* data, int page, int transparent)
tmp_palette[i * 16 + j] = SETPALETTE256(r, g, b);
}
}
if (game_id.crc32_a == CRC32_RANCE41 ||
game_id.crc32_a == CRC32_RANCE41_ENG ||
game_id.crc32_a == CRC32_RANCE42 ||
game_id.crc32_a == CRC32_RANCE42_ENG ||
game_id.crc32_a == CRC32_HASHIRIONNA2) {
if (game_id.is_rance4x() || game_id.crc32_a == CRC32_HASHIRIONNA2) {
// 上下16色は取得しない
for(int i = 1; i < 15; i++) {
for(int j = 0; j < 16; j++) {
@@ -77,11 +73,7 @@ void AGS::load_pms(uint8* data, int page, int transparent)
// パレット展開
if (game_id.sys_ver == 3) {
if ((extract_palette && extract_palette_cg[page]) || game_id.crc32_a == CRC32_FUNNYBEE_CD) {
if (game_id.crc32_a == CRC32_RANCE41 ||
game_id.crc32_a == CRC32_RANCE41_ENG ||
game_id.crc32_a == CRC32_RANCE42 ||
game_id.crc32_a == CRC32_RANCE42_ENG ||
game_id.crc32_a == CRC32_HASHIRIONNA2) {
if (game_id.is_rance4x() || game_id.crc32_a == CRC32_HASHIRIONNA2) {
// 上下16色は展開しない
for(int i = 1; i < 15; i++) {
for(int j = 0; j < 16; j++) {