Removed duplicate shutdown function
This commit is contained in:
parent
6fec7a33a8
commit
6f036e0430
4 changed files with 3 additions and 8 deletions
|
@ -24,7 +24,7 @@ extern void sleep_millis (int ms);
|
|||
|
||||
extern void uae_reset (int, int);
|
||||
extern void uae_quit (void);
|
||||
extern void host_shutdown(void);
|
||||
extern void target_shutdown(void);
|
||||
extern void uae_restart (int, const TCHAR*);
|
||||
extern void target_reset (void);
|
||||
extern void target_addtorecent (const TCHAR*, int);
|
||||
|
|
|
@ -411,11 +411,6 @@ void uae_quit(void)
|
|||
target_quit();
|
||||
}
|
||||
|
||||
void host_shutdown(void)
|
||||
{
|
||||
system("sudo poweroff");
|
||||
}
|
||||
|
||||
/* 0 = normal, 1 = nogui, -1 = disable nogui */
|
||||
void uae_restart(int opengui, const TCHAR *cfgfile)
|
||||
{
|
||||
|
|
|
@ -1043,7 +1043,7 @@ uae_u32 emulib_target_getcpurate(uae_u32 v, uae_u32 *low)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static void target_shutdown(void)
|
||||
void target_shutdown(void)
|
||||
{
|
||||
system("sudo poweroff");
|
||||
}
|
||||
|
|
|
@ -631,7 +631,7 @@ namespace widgets
|
|||
// ------------------------------------------------
|
||||
uae_quit();
|
||||
gui_running = false;
|
||||
host_shutdown();
|
||||
target_shutdown();
|
||||
}
|
||||
|
||||
if (actionEvent.getSource() == cmdQuit)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue