2009-03-28 08:57:34 +00:00
|
|
|
// Copyright (C) 2003-2009 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"
|
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
|
|
|
|
{
|
2009-05-11 13:10:19 +00:00
|
|
|
//DSP HLE Audio fix
|
|
|
|
bool m_EnableRE0Fix;
|
|
|
|
|
2008-12-08 04:46:09 +00:00
|
|
|
// hard coded default plugins ...
|
|
|
|
std::string m_DefaultGFXPlugin;
|
|
|
|
std::string m_DefaultDSPPlugin;
|
|
|
|
std::string m_DefaultPADPlugin;
|
|
|
|
std::string m_DefaultWiiMotePlugin;
|
|
|
|
|
|
|
|
// 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
|
2009-06-18 11:23:37 +00:00
|
|
|
u32 m_Framelimit;
|
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;
|
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;
|
2009-03-18 17:17:58 +00:00
|
|
|
|
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
|
|
|
|
void LoadSettingsHLE();
|
|
|
|
|
2008-12-09 14:57:55 +00:00
|
|
|
/* Return the permanent and somewhat globally used instance of this struct
|
|
|
|
there is also a Core::GetStartupParameter() instance of it with almost
|
|
|
|
the same values */
|
2008-12-08 04:46:09 +00:00
|
|
|
static SConfig& GetInstance() {return(m_Instance);}
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
|
|
|
// constructor
|
|
|
|
SConfig();
|
|
|
|
|
|
|
|
// destructor
|
|
|
|
~SConfig();
|
|
|
|
|
|
|
|
static SConfig m_Instance;
|
|
|
|
};
|
|
|
|
|
2009-03-20 11:51:22 +00:00
|
|
|
#endif // endif config manager
|
2009-04-28 02:30:50 +00:00
|
|
|
|