2009-07-28 21:32:10 +00:00
|
|
|
// Copyright (C) 2003 Dolphin Project.
|
2008-12-08 04:46:09 +00:00
|
|
|
|
|
|
|
// This program is free software: you can redistribute it and/or modify
|
|
|
|
// it under the terms of the GNU General Public License as published by
|
|
|
|
// the Free Software Foundation, version 2.0.
|
|
|
|
|
|
|
|
// This program is distributed in the hope that it will be useful,
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
// GNU General Public License 2.0 for more details.
|
|
|
|
|
|
|
|
// A copy of the GPL 2.0 should have been included with the program.
|
|
|
|
// If not, see http://www.gnu.org/licenses/
|
|
|
|
|
|
|
|
// Official SVN repository and contact information can be found at
|
|
|
|
// http://code.google.com/p/dolphin-emu/
|
|
|
|
|
2009-03-20 11:51:22 +00:00
|
|
|
#ifndef _CONFIGMANAGER_H
|
|
|
|
#define _CONFIGMANAGER_H
|
2008-12-08 04:46:09 +00:00
|
|
|
|
|
|
|
#include <string>
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
#include "Boot/Boot.h"
|
2009-02-02 22:29:33 +00:00
|
|
|
#include "HW/EXI_Device.h"
|
|
|
|
#include "HW/SI_Device.h"
|
2009-09-14 06:26:49 +00:00
|
|
|
#include "SysConf.h"
|
2008-12-08 04:46:09 +00:00
|
|
|
|
2009-01-22 07:42:17 +00:00
|
|
|
// HyperIris: not sure but a temporary implement
|
|
|
|
enum INTERFACE_LANGUAGE
|
|
|
|
{
|
|
|
|
INTERFACE_ENGLISH = 0,
|
|
|
|
INTERFACE_GERMAN,
|
|
|
|
INTERFACE_FRENCH,
|
|
|
|
INTERFACE_SPANISH,
|
|
|
|
INTERFACE_ITALIAN,
|
|
|
|
INTERFACE_DUTCH,
|
|
|
|
|
|
|
|
INTERFACE_OTHER,
|
|
|
|
};
|
|
|
|
|
2008-12-08 04:46:09 +00:00
|
|
|
struct SConfig
|
|
|
|
{
|
2010-01-11 11:56:17 +00:00
|
|
|
// Wii Devices
|
|
|
|
bool m_WiiSDCard;
|
|
|
|
bool m_WiiKeyboard;
|
2010-03-30 11:53:41 +00:00
|
|
|
bool m_WiiAutoReconnect[4];
|
2010-06-20 02:17:53 +00:00
|
|
|
bool m_WiiAutoUnpair;
|
2010-01-11 11:56:17 +00:00
|
|
|
|
2008-12-08 04:46:09 +00:00
|
|
|
// hard coded default plugins ...
|
|
|
|
std::string m_DefaultGFXPlugin;
|
|
|
|
std::string m_DefaultDSPPlugin;
|
|
|
|
|
|
|
|
// name of the last used filename
|
|
|
|
std::string m_LastFilename;
|
|
|
|
|
|
|
|
// gcm folder
|
2009-04-08 20:26:33 +00:00
|
|
|
std::vector<std::string> m_ISOFolder;
|
|
|
|
bool m_RecursiveISOFolder;
|
2008-12-08 04:46:09 +00:00
|
|
|
|
|
|
|
SCoreStartupParameter m_LocalCoreStartupParameter;
|
|
|
|
|
2009-02-02 22:29:33 +00:00
|
|
|
std::string m_strMemoryCardA;
|
|
|
|
std::string m_strMemoryCardB;
|
|
|
|
TEXIDevices m_EXIDevice[3];
|
|
|
|
TSIDevices m_SIDevice[4];
|
|
|
|
|
2009-01-22 07:42:17 +00:00
|
|
|
// interface language
|
|
|
|
INTERFACE_LANGUAGE m_InterfaceLanguage;
|
2009-06-09 21:27:45 +00:00
|
|
|
// framelimit choose
|
2010-01-08 21:57:31 +00:00
|
|
|
int m_Framelimit;
|
2010-04-22 02:51:07 +00:00
|
|
|
bool b_UseFPS;
|
2009-03-18 17:17:58 +00:00
|
|
|
// other interface settings
|
|
|
|
bool m_InterfaceToolbar;
|
|
|
|
bool m_InterfaceStatusbar;
|
|
|
|
bool m_InterfaceLogWindow;
|
2009-03-20 18:25:36 +00:00
|
|
|
bool m_InterfaceConsole;
|
2010-01-11 05:07:56 +00:00
|
|
|
|
2009-04-28 02:30:50 +00:00
|
|
|
bool m_ListDrives;
|
2009-06-06 06:22:36 +00:00
|
|
|
bool m_ListWad;
|
2009-04-28 02:30:50 +00:00
|
|
|
bool m_ListWii;
|
|
|
|
bool m_ListGC;
|
|
|
|
bool m_ListPal;
|
|
|
|
bool m_ListUsa;
|
|
|
|
bool m_ListJap;
|
2010-01-11 05:07:56 +00:00
|
|
|
bool m_ListFrance;
|
|
|
|
bool m_ListItaly;
|
|
|
|
bool m_ListKorea;
|
|
|
|
bool m_ListTaiwan;
|
|
|
|
bool m_ListUnknown;
|
2009-03-18 17:17:58 +00:00
|
|
|
|
2009-09-14 06:26:49 +00:00
|
|
|
SysConf* m_SYSCONF;
|
|
|
|
|
2008-12-08 04:46:09 +00:00
|
|
|
// save settings
|
|
|
|
void SaveSettings();
|
|
|
|
|
|
|
|
// load settings
|
|
|
|
void LoadSettings();
|
|
|
|
|
2009-05-11 13:10:19 +00:00
|
|
|
//Special load settings
|
2010-03-30 11:53:41 +00:00
|
|
|
void LoadSettingsWii();
|
2009-05-11 13:10:19 +00:00
|
|
|
|
2010-02-06 05:22:53 +00:00
|
|
|
// Return the permanent and somewhat globally used instance of this struct
|
2010-02-19 18:50:01 +00:00
|
|
|
static SConfig& GetInstance() {return(*m_Instance);}
|
2008-12-08 04:46:09 +00:00
|
|
|
|
2010-02-16 04:34:41 +00:00
|
|
|
static void Init();
|
|
|
|
static void Shutdown();
|
|
|
|
|
2010-02-19 18:50:01 +00:00
|
|
|
private:
|
|
|
|
SConfig();
|
|
|
|
~SConfig();
|
2008-12-08 04:46:09 +00:00
|
|
|
|
2010-02-19 18:50:01 +00:00
|
|
|
static SConfig* m_Instance;
|
|
|
|
|
|
|
|
DISALLOW_COPY_AND_ASSIGN(SConfig);
|
2008-12-08 04:46:09 +00:00
|
|
|
};
|
|
|
|
|
2009-03-20 11:51:22 +00:00
|
|
|
#endif // endif config manager
|
2009-04-28 02:30:50 +00:00
|
|
|
|