MCPcopy Create free account
hub / github.com/DaedalusX64/daedalus / OnSelected

Method OnSelected

Source/SysPSP/UI/GlobalSettingsComponent.cpp:203–232  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 3

DeleteRecursiveFunction · 0.85
ThreadSleepMsFunction · 0.50
RenderMethod · 0.45

Tested by

no test coverage detected