* Loads the game options. * * @return True if loading is successful. */
| 110 | * @return True if loading is successful. |
| 111 | */ |
| 112 | bool GameOptions_Load(void) |
| 113 | { |
| 114 | uint8 index; |
| 115 | |
| 116 | index = File_Open_Personal("OPTIONS.CFG", FILE_MODE_READ); |
| 117 | |
| 118 | if (index == FILE_INVALID) return false; |
| 119 | |
| 120 | g_gameConfig.music = File_Read_LE16(index); |
| 121 | g_gameConfig.sounds = File_Read_LE16(index); |
| 122 | g_gameConfig.gameSpeed = File_Read_LE16(index); |
| 123 | g_gameConfig.hints = File_Read_LE16(index); |
| 124 | g_gameConfig.autoScroll = File_Read_LE16(index); |
| 125 | |
| 126 | File_Close(index); |
| 127 | |
| 128 | return true; |
| 129 | } |
| 130 | |
| 131 | /** |
| 132 | * Saves the game options. |
no test coverage detected