Persistent Coins (#1405)
On Coin Insert, a file Save/Coin.ini is created if it does not exist, which stores the number of coins currrently in m_iCoins. Whenever m_iCoins is update, the Coin.ini is updated. On boot, Coin.ini is read and m_iCoins is set to that value. If coins in coin.ini file is greater then MAX_NUM_CREDITS then reset the value to 0.
This commit is contained in:
committed by
Colby Klein
parent
4b3507f195
commit
8f332653e1
@@ -19,6 +19,8 @@ const RString SpecialFiles::TYPE_TXT_FILE = "Data/Type.txt";
|
||||
const RString SpecialFiles::SONGS_DIR = "Songs/";
|
||||
const RString SpecialFiles::COURSES_DIR = "Courses/";
|
||||
const RString SpecialFiles::NOTESKINS_DIR = "NoteSkins/";
|
||||
const RString SpecialFiles::COINS_INI = "Save/Coin.ini";
|
||||
|
||||
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user