From 07fd2932d52b3d54033285c2ff8f236871997bee Mon Sep 17 00:00:00 2001 From: Andrea Date: Sun, 6 Jan 2013 22:00:55 +0100 Subject: [PATCH] Update libgambatte/libretro/libretro.cpp --- libgambatte/libretro/libretro.cpp | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/libgambatte/libretro/libretro.cpp b/libgambatte/libretro/libretro.cpp index 8397413..2feede7 100644 --- a/libgambatte/libretro/libretro.cpp +++ b/libgambatte/libretro/libretro.cpp @@ -181,10 +181,16 @@ bool retro_load_game(const struct retro_game_info *info) gb.setDmgPaletteColor(1, 2, rgb32); else if(line.startswith("Sprite%2013=")) gb.setDmgPaletteColor(1, 3, rgb32); - ///... - - } -} + else if(line.startswith("Sprite%2020=")) + gb.setDmgPaletteColor(2, 0, rgb32); + else if(line.startswith("Sprite%2021=")) + gb.setDmgPaletteColor(2, 1, rgb32); + else if(line.startswith("Sprite%2022=")) + gb.setDmgPaletteColor(2, 2, rgb32); + else if(line.startswith("Sprite%2023=")) + gb.setDmgPaletteColor(2, 3, rgb32); + } // endfor + palette_file.close(); return(false); }