2009-10-01 01:10:58 +02:00
|
|
|
#include <string.h>
|
|
|
|
#include <unistd.h>
|
2010-11-13 23:34:53 +01:00
|
|
|
#include "settings/menus/GlobalSettings.hpp"
|
|
|
|
#include "settings/menus/GameSettingsMenu.hpp"
|
2010-11-07 21:31:45 +01:00
|
|
|
|
2009-10-01 01:10:58 +02:00
|
|
|
/****************************************************************************
|
|
|
|
* MenuSettings
|
|
|
|
***************************************************************************/
|
2010-02-09 11:59:55 +01:00
|
|
|
int MenuSettings()
|
|
|
|
{
|
2010-11-13 23:34:53 +01:00
|
|
|
GlobalSettings * Menu = new GlobalSettings();
|
|
|
|
mainWindow->Append(Menu);
|
2010-09-19 01:16:05 +02:00
|
|
|
|
2010-11-13 23:34:53 +01:00
|
|
|
Menu->ShowMenu();
|
2010-09-19 01:16:05 +02:00
|
|
|
|
2010-11-13 23:34:53 +01:00
|
|
|
int returnMenu = MENU_NONE;
|
2010-09-19 01:16:05 +02:00
|
|
|
|
2010-11-13 23:34:53 +01:00
|
|
|
while((returnMenu = Menu->MainLoop()) == MENU_NONE);
|
2010-09-28 20:58:56 +02:00
|
|
|
|
2010-11-13 23:34:53 +01:00
|
|
|
delete Menu;
|
2010-09-19 01:16:05 +02:00
|
|
|
|
2010-11-13 23:34:53 +01:00
|
|
|
return returnMenu;
|
2010-09-19 01:16:05 +02:00
|
|
|
}
|
2010-05-29 09:38:54 +02:00
|
|
|
|
2009-10-01 01:10:58 +02:00
|
|
|
/********************************************************************************
|
2010-09-24 02:48:03 +02:00
|
|
|
*Game specific settings
|
|
|
|
*********************************************************************************/
|
2010-09-24 23:22:01 +02:00
|
|
|
int MenuGameSettings(struct discHdr * header)
|
2010-02-09 11:59:55 +01:00
|
|
|
{
|
2010-11-13 23:34:53 +01:00
|
|
|
GameSettingsMenu * Menu = new GameSettingsMenu(header);
|
|
|
|
mainWindow->Append(Menu);
|
2010-09-19 01:16:05 +02:00
|
|
|
|
2010-11-13 23:34:53 +01:00
|
|
|
Menu->ShowMenu();
|
2010-09-19 01:16:05 +02:00
|
|
|
|
2010-11-13 23:34:53 +01:00
|
|
|
int returnMenu = MENU_NONE;
|
2010-09-19 01:16:05 +02:00
|
|
|
|
2010-11-13 23:34:53 +01:00
|
|
|
while((returnMenu = Menu->MainLoop()) == MENU_NONE);
|
2010-09-19 01:16:05 +02:00
|
|
|
|
2010-11-13 23:34:53 +01:00
|
|
|
delete Menu;
|
2010-09-19 01:16:05 +02:00
|
|
|
|
2010-11-13 23:34:53 +01:00
|
|
|
return returnMenu;
|
2009-10-01 01:10:58 +02:00
|
|
|
}
|