Update to v093r06 release.

byuu says:

Changelog:
- Windows port should compile out-of-the-box
- InputManager::scancode[] initialized at startup
- Library menu shows item for each bootable media type (notably Game Boy
  Color)
- Display Emulation menu selection fix
- LibraryManager load button works now
- Added hotkey to show library manager (defaults to L)
- Added color emulation to video settings (missing on GBA for now)
- SFC loading SGB without GB cartridge no longer segfaults
- GB/GBC system.load() after cartridge.load()
- GB/GBC BG-over-OAM fix
- GB/GBC disallow up+down and left+right
This commit is contained in:
Tim Allen
2013-12-07 20:12:37 +11:00
parent ed4e87f65e
commit 35f1605829
51 changed files with 308 additions and 172 deletions

View File

@@ -109,8 +109,8 @@ bool Interface::unserialize(serializer& s) {
return system.unserialize(s);
}
void Interface::paletteUpdate() {
video.generate_palette();
void Interface::paletteUpdate(bool colorEmulation) {
video.generate_palette(colorEmulation);
}
Interface::Interface() {

View File

@@ -43,7 +43,7 @@ struct Interface : Emulator::Interface {
serializer serialize();
bool unserialize(serializer&);
void paletteUpdate();
void paletteUpdate(bool colorEmulation);
Interface();

View File

@@ -4,7 +4,8 @@ namespace GameBoyAdvance {
Video video;
void Video::generate_palette() {
void Video::generate_palette(bool color_emulation) {
//todo: implement LCD color emulation
for(unsigned color = 0; color < (1 << 15); color++) {
uint5 b = color >> 10;
uint5 g = color >> 5;

View File

@@ -1,6 +1,6 @@
struct Video {
unsigned* palette;
void generate_palette();
void generate_palette(bool color_emulation);
Video();
~Video();