| 201 | } |
| 202 | |
| 203 | virtual void OnSelected() |
| 204 | { |
| 205 | if(gShowDialog.Render( mpContext,"Reset HLE cache?", false) ) |
| 206 | { |
| 207 | IO::Path::DeleteRecursive("SaveGames",".hle"); |
| 208 | ThreadSleepMs(1000); //safety wait for s |
| 209 | |
| 210 | if(gShowDialog.Render( mpContext,"Reset settings?", false) ) |
| 211 | { |
| 212 | remove(DAEDALUS_PSP_PATH("preferences.ini")); |
| 213 | remove(DAEDALUS_PSP_PATH("rom.db")); |
| 214 | ThreadSleepMs(1000); //safety wait for s |
| 215 | |
| 216 | gShowDialog.Render( mpContext,"Daedalus will exit now",true); |
| 217 | |
| 218 | sceKernelExitGame(); |
| 219 | } |
| 220 | } |
| 221 | if(gShowDialog.Render( mpContext,"Reset settings?", false) ) |
| 222 | { |
| 223 | |
| 224 | remove(DAEDALUS_PSP_PATH("preferences.ini")); |
| 225 | remove(DAEDALUS_PSP_PATH("rom.db")); |
| 226 | ThreadSleepMs(1000); //safety wait for s |
| 227 | |
| 228 | gShowDialog.Render( mpContext,"Daedalus will exit now",true); |
| 229 | |
| 230 | sceKernelExitGame(); |
| 231 | } |
| 232 | } |
| 233 | |
| 234 | virtual const char * GetSettingName() const |
| 235 | { |
nothing calls this directly
no test coverage detected