gamesave.h
bool loadGame( unsigned int board[][4] ) {
#if enableGameSave
	if ( eeprom_read_byte( &boardsaveflag ) == 1 ) {
		unsigned char x, y;
		for ( x = 0; x <= 3; x++ )
			for ( y = 0; y <= 3; y++ )
				board[x][y] = eeprom_read_word( &boardsave[x][y] );
		score = eeprom_read_dword( &scoresave );
		return true;
	} else
		return false;
#else
	return false;
#endif
}
/* loadGame
   
   Restore the saved game from EEPROM
   
   Returns true if successful.
*/
loadGame
Restore the saved game from EEPROM

Returns true if successful.
loadGame Restore the saved game from EEPROM Returns true if successful .
bool loadGame( unsigned int board[][4] ) {
#if enableGameSave
	if ( eeprom_read_byte( &boardsaveflag ) == 1 ) {
		unsigned char x, y;
		for ( x = 0; x <= 3; x++ )
			for ( y = 0; y <= 3; y++ )
				board[x][y] = eeprom_read_word( &boardsave[x][y] );
		score = eeprom_read_dword( &scoresave );
		return true;
	} else
		return false;
#else
	return false;
#endif
}
bool loadGame ( unsigned int board [ ] [ 4 ] ) { #if enableGameSave if ( eeprom_read_byte ( & boardsaveflag ) == 1 ) { unsigned char x , y ; for ( x = 0 ; x <= 3 ; x ++ ) for ( y = 0 ; y <= 3 ; y ++ ) board [ x ] [ y ] = eeprom_read_word ( & boardsave [ x ] [ y ] ) ; score = eeprom_read_dword ( & scoresave ) ; return true ; } else return false ; #else return false ; #endif }
loadGame
Restore the saved game from EEPROM
loadGame Restore the saved game from EEPROM