usbloadergx/source/settings/Settings.cpp

43 lines
1.0 KiB
C++
Raw Normal View History

#include <string.h>
#include <unistd.h>
#include "settings/menus/GlobalSettings.hpp"
#include "settings/menus/GameSettingsMenu.hpp"
/****************************************************************************
* MenuSettings
***************************************************************************/
int MenuSettings()
{
GlobalSettings * Menu = new GlobalSettings();
mainWindow->Append(Menu);
Menu->ShowMenu();
int returnMenu = MENU_NONE;
while((returnMenu = Menu->MainLoop()) == MENU_NONE);
delete Menu;
return returnMenu;
}
/********************************************************************************
2010-09-24 02:48:03 +02:00
*Game specific settings
*********************************************************************************/
int MenuGameSettings(struct discHdr * header)
{
GameSettingsMenu * Menu = new GameSettingsMenu(header);
mainWindow->Append(Menu);
Menu->ShowMenu();
int returnMenu = MENU_NONE;
while((returnMenu = Menu->MainLoop()) == MENU_NONE);
delete Menu;
return returnMenu;
}