Armageddon - a missile commad clone by Wuuff, originally for Gamebuino. Conversion by Jonne
Dependencies: PokittoLib
Fork of Asterocks by
Diff: ageddon.cpp
- Revision:
- 15:933ac6bcd8b8
- Parent:
- 14:41173f26c0ef
- Child:
- 21:153974d672f8
--- a/ageddon.cpp Mon Oct 30 07:27:43 2017 +0000 +++ b/ageddon.cpp Mon Oct 30 09:13:39 2017 +0000 @@ -3,6 +3,7 @@ /* USE AT YOUR OWN RISK - NO GUARANTEES GIVEN OF 100% CORRECTNESS */ #include "PokittoCore.h" +#include "PokittoEEPROM.h" /* Auto-generated function declarations */ void setup(); void nextStage(); @@ -841,11 +842,11 @@ for( uint8_t entry = 0; entry < NUM_HIGHSCORES; entry++ ){ for( uint8_t offset = 0; offset < ENTRY_SIZE; offset++ ){ if( offset < NAME_SIZE ){ - //names[entry][offset] = EEPROM.read( ENTRY_SIZE * entry + offset ); + names[entry][offset] = EEPROM.read( ENTRY_SIZE * entry + offset ); }else{ uint8_t* addr = (uint8_t*) &highscores[entry]; addr+=offset-NAME_SIZE; - //*addr = EEPROM.read( ENTRY_SIZE * entry + offset ); + *addr = EEPROM.read( ENTRY_SIZE * entry + offset ); } } } @@ -880,11 +881,11 @@ for( uint8_t entry = 0; entry < NUM_HIGHSCORES; entry++ ){ for( uint8_t offset = 0; offset < ENTRY_SIZE; offset++ ){ if( offset < NAME_SIZE ){ - //EEPROM.write( ENTRY_SIZE * entry + offset, names[entry][offset] ); + EEPROM.write( ENTRY_SIZE * entry + offset, names[entry][offset] ); }else{ uint8_t* addr = (uint8_t*) &highscores[entry]; addr+=offset-NAME_SIZE; - //EEPROM.write( ENTRY_SIZE * entry + offset, *addr ); + EEPROM.write( ENTRY_SIZE * entry + offset, *addr ); } } }