From: Pokemonhacker <pok...@us...> - 2005-06-25 06:15:48
|
Update of /cvsroot/vba/VisualBoyAdvance/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8431 Modified Files: EEprom.cpp EEprom.h Log Message: - Now a newly created Eeprom is filled with 0xFFs (fixes Tetris Advance's highscores reading crash). Index: EEprom.h =================================================================== RCS file: /cvsroot/vba/VisualBoyAdvance/src/EEprom.h,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** EEprom.h 13 May 2004 15:06:43 -0000 1.2 --- EEprom.h 25 Jun 2005 06:15:34 -0000 1.3 *************** *** 2,6 **** // VisualBoyAdvance - Nintendo Gameboy/GameboyAdvance (TM) emulator. // Copyright (C) 1999-2003 Forgotten ! // Copyright (C) 2004 Forgotten and the VBA development team // This program is free software; you can redistribute it and/or modify --- 2,6 ---- // VisualBoyAdvance - Nintendo Gameboy/GameboyAdvance (TM) emulator. // Copyright (C) 1999-2003 Forgotten ! // Copyright (C) 2005 Forgotten and the VBA development team // This program is free software; you can redistribute it and/or modify *************** *** 25,28 **** --- 25,29 ---- extern int eepromRead(u32 address); extern void eepromWrite(u32 address, u8 value); + extern void eepromInit(); extern void eepromReset(); extern u8 eepromData[0x2000]; Index: EEprom.cpp =================================================================== RCS file: /cvsroot/vba/VisualBoyAdvance/src/EEprom.cpp,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** EEprom.cpp 13 May 2004 15:06:43 -0000 1.6 --- EEprom.cpp 25 Jun 2005 06:15:34 -0000 1.7 *************** *** 1,5 **** // VisualBoyAdvance - Nintendo Gameboy/GameboyAdvance (TM) emulator. // Copyright (C) 1999-2003 Forgotten ! // Copyright (C) 2004 Forgotten and the VBA development team // This program is free software; you can redistribute it and/or modify --- 1,5 ---- // VisualBoyAdvance - Nintendo Gameboy/GameboyAdvance (TM) emulator. // Copyright (C) 1999-2003 Forgotten ! // Copyright (C) 2005 Forgotten and the VBA development team // This program is free software; you can redistribute it and/or modify *************** *** 17,20 **** --- 17,21 ---- // Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + #include <memory.h> #include "GBA.h" #include "EEprom.h" *************** *** 43,46 **** --- 44,52 ---- }; + void eepromInit() + { + memset(eepromData, 255, sizeof(eepromData)); + } + void eepromReset() { |