summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authorSoren Jorvang <soren.jorvang@gmail.com>2011-01-12 19:28:47 +0000
committerSoren Jorvang <soren.jorvang@gmail.com>2011-01-12 19:28:47 +0000
commit96403e7284341db3bd0857e308d4c16d71da2c3b (patch)
tree843251ff335fb13cf04e7074809b6b0ac80c52f5 /Source/Core
parent6cc41ba96c1b3d1fa6ebf28bbfdba2378e8e323e (diff)
PanicAlert now needs a string literal as the first argument.
Some more Mac-ish hotkeys and a placeholder for da.po. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6832 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/Core/Src/ConfigManager.cpp29
-rw-r--r--Source/Core/DolphinWX/Src/BootManager.cpp3
-rw-r--r--Source/Core/DolphinWX/Src/ConfigMain.cpp2
3 files changed, 22 insertions, 12 deletions
diff --git a/Source/Core/Core/Src/ConfigManager.cpp b/Source/Core/Core/Src/ConfigManager.cpp
index c180ab4f16..b3767709e6 100644
--- a/Source/Core/Core/Src/ConfigManager.cpp
+++ b/Source/Core/Core/Src/ConfigManager.cpp
@@ -28,21 +28,28 @@ SConfig* SConfig::m_Instance;
static const struct {
const char* IniText;
- const int DefaultKey;
- const int DefaultModifier;
+ const int DefaultKey;
+ const int DefaultModifier;
} g_HKData[] = {
#ifdef __APPLE__
- { "ToggleFullscreen", 70 /* 'F' */, 0x0008 /* wxMOD_CMD */ },
+ { "ToggleFullscreen", 70 /* 'F' */, 0x08 /* wxMOD_CMD */ },
+ { "PlayPause", 80 /* 'P' */, 0x08 /* wxMOD_CMD */ },
+ { "Stop", 87 /* 'W' */, 0x08 /* wxMOD_CMD */ },
+ { "Screenshot", 83 /* 'S' */, 0x08 /* wxMOD_CMD */ },
+ { "Wiimote1Connect", 49 /* '1' */, 0x08 /* wxMOD_CMD */ },
+ { "Wiimote2Connect", 50 /* '2' */, 0x08 /* wxMOD_CMD */ },
+ { "Wiimote3Connect", 51 /* '3' */, 0x08 /* wxMOD_CMD */ },
+ { "Wiimote4Connect", 52 /* '4' */, 0x08 /* wxMOD_CMD */ },
#else
- { "ToggleFullscreen", 13 /* WXK_RETURN */, 0x0001 /* wxMOD_ALT */ },
+ { "ToggleFullscreen", 13 /* WXK_RETURN */, 0x01 /* wxMOD_ALT */ },
+ { "PlayPause", 349 /* WXK_F10 */, 0x00 /* wxMOD_NONE*/ },
+ { "Stop", 27 /* WXK_ESCAPE */, 0x00 /* wxMOD_NONE*/ },
+ { "Screenshot", 348 /* WXK_F9 */, 0x00 /* wxMOD_NONE*/ },
+ { "Wiimote1Connect", 344 /* WXK_F5 */, 0x01 /* wxMOD_ALT */ },
+ { "Wiimote2Connect", 345 /* WXK_F6 */, 0x01 /* wxMOD_ALT */ },
+ { "Wiimote3Connect", 346 /* WXK_F7 */, 0x01 /* wxMOD_ALT */ },
+ { "Wiimote4Connect", 347 /* WXK_F8 */, 0x01 /* wxMOD_ALT */ },
#endif
- { "PlayPause", 349 /* WXK_F10 */, 0x0000 /* wxMOD_NONE */ },
- { "Stop", 27 /* WXK_ESCAPE */, 0x0000 /* wxMOD_NONE */ },
- { "Screenshot", 348 /* WXK_F9 */, 0x0000 /* wxMOD_NONE */ },
- { "Wiimote1Connect", 344 /* WXK_F5 */, 0x0001 /* wxMOD_ALT */ },
- { "Wiimote2Connect", 345 /* WXK_F6 */, 0x0001 /* wxMOD_ALT */ },
- { "Wiimote3Connect", 346 /* WXK_F7 */, 0x0001 /* wxMOD_ALT */ },
- { "Wiimote4Connect", 347 /* WXK_F8 */, 0x0001 /* wxMOD_ALT */ },
};
SConfig::SConfig()
diff --git a/Source/Core/DolphinWX/Src/BootManager.cpp b/Source/Core/DolphinWX/Src/BootManager.cpp
index 76d5f23c70..cb2f24e8bf 100644
--- a/Source/Core/DolphinWX/Src/BootManager.cpp
+++ b/Source/Core/DolphinWX/Src/BootManager.cpp
@@ -151,7 +151,8 @@ bool BootCore(const std::string& _rFilename)
// Init the core
if (!Core::Init())
{
- PanicAlert(_wxt("Couldn't init the core.\nCheck your configuration."));
+ PanicAlert("%s", _wxt("Couldn't init the core.\n"
+ "Check your configuration."));
return false;
}
diff --git a/Source/Core/DolphinWX/Src/ConfigMain.cpp b/Source/Core/DolphinWX/Src/ConfigMain.cpp
index 010477ca02..9d92b6eef3 100644
--- a/Source/Core/DolphinWX/Src/ConfigMain.cpp
+++ b/Source/Core/DolphinWX/Src/ConfigMain.cpp
@@ -45,6 +45,7 @@ static const wxLanguage langIds[] =
{
wxLANGUAGE_DEFAULT,
wxLANGUAGE_CHINESE_SIMPLIFIED,
+ wxLANGUAGE_DANISH,
wxLANGUAGE_DUTCH,
wxLANGUAGE_ENGLISH,
wxLANGUAGE_FRENCH,
@@ -284,6 +285,7 @@ void CConfigMain::InitializeGUILists()
// keep these in sync with the langIds array at the beginning of this file
arrayStringFor_InterfaceLang.Add(_("<System>"));
arrayStringFor_InterfaceLang.Add(_("Chinese (Simplified)"));
+ arrayStringFor_InterfaceLang.Add(_("Danish"));
arrayStringFor_InterfaceLang.Add(_("Dutch"));
arrayStringFor_InterfaceLang.Add(_("English"));
arrayStringFor_InterfaceLang.Add(_("French"));