mirror of
https://github.com/wiidev/usbloadergx.git
synced 2024-11-18 09:19:17 +01:00
fa11a745d6
*Rewrote the whole Settings.cpp into 11 classes. Each settings menu has it's own class now *Reworked the whole sound system. Supported formats AIF/MP3/OGG/BNS/WAV now with no file size limit (streaming). *Changed button click/over sounds to wav from raw pcm *Lot's of bug fixes
43 lines
1.0 KiB
C++
43 lines
1.0 KiB
C++
#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;
|
|
}
|
|
|
|
/********************************************************************************
|
|
*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;
|
|
}
|