mirror of
https://github.com/kichikuou/system3-sdl2.git
synced 2026-10-08 06:48:05 +03:00
Add some helper functions to GameId
This commit is contained in:
+2
-10
@@ -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++) {
|
||||
|
||||
Reference in New Issue
Block a user