summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinWX/src
diff options
context:
space:
mode:
authorSonicadvance1 <sonicadvance1@gmail.com>2008-07-21 01:27:13 +0000
committerSonicadvance1 <sonicadvance1@gmail.com>2008-07-21 01:27:13 +0000
commitc33cf08a2f059069c08fc02bc41fa57a2bea942f (patch)
tree2115da671c23acdd769f5220102ddac28fba1dbc /Source/Core/DolphinWX/src
parent36f8b9751a5de8548e6ed1f0d62035dd5f54a761 (diff)
Linux: Fixes a few things, Should Compile in Linux. Ran Crazy Taxi horribly
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@38 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/DolphinWX/src')
-rw-r--r--Source/Core/DolphinWX/src/BootManager.cpp4
-rw-r--r--Source/Core/DolphinWX/src/Frame.cpp2
-rw-r--r--Source/Core/DolphinWX/src/GameListCtrl.cpp4
-rw-r--r--Source/Core/DolphinWX/src/Main.cpp21
4 files changed, 21 insertions, 10 deletions
diff --git a/Source/Core/DolphinWX/src/BootManager.cpp b/Source/Core/DolphinWX/src/BootManager.cpp
index 201c52094e..60a4f435a3 100644
--- a/Source/Core/DolphinWX/src/BootManager.cpp
+++ b/Source/Core/DolphinWX/src/BootManager.cpp
@@ -56,7 +56,9 @@ bool BootCore(const std::string& _rFilename)
// StartUp.bUseDualCore = false;
StartUp.bUseDynarec = true;
}
-
+ #ifndef _WIN32
+ StartUp.bUseDynarec = false;//Never use Dynarec in Linux, crashes
+ #endif
StartUp.m_BootType = SCoreStartupParameter::BOOT_ISO;
StartUp.m_strFilename = _rFilename;
StartUp.bHLEBios = true;
diff --git a/Source/Core/DolphinWX/src/Frame.cpp b/Source/Core/DolphinWX/src/Frame.cpp
index 230675e15d..b932c8e594 100644
--- a/Source/Core/DolphinWX/src/Frame.cpp
+++ b/Source/Core/DolphinWX/src/Frame.cpp
@@ -191,7 +191,7 @@ CFrame::CreateMenu()
{
wxMenu* pGameMenu = new wxMenu;
{
- wxMenuItem *pItem = new wxMenuItem(pGameMenu, IDM_EDITPATCHFILE, "Edit patch file");
+ wxMenuItem *pItem = new wxMenuItem(pGameMenu, IDM_EDITPATCHFILE, wxString::FromAscii("Edit patch file"));
pGameMenu->Append(pItem);
}
}
diff --git a/Source/Core/DolphinWX/src/GameListCtrl.cpp b/Source/Core/DolphinWX/src/GameListCtrl.cpp
index 513e7a95a2..17391926a4 100644
--- a/Source/Core/DolphinWX/src/GameListCtrl.cpp
+++ b/Source/Core/DolphinWX/src/GameListCtrl.cpp
@@ -338,8 +338,8 @@ CGameListCtrl::OnRightClick(wxMouseEvent& event)
std::string unique_id = selected_iso->GetUniqueID();
wxMenu popupMenu;
std::string menu_text = StringFromFormat("Edit &patch file: %s.ini", unique_id.c_str());
- popupMenu.Append(IDM_EDITPATCHFILE, menu_text);
- popupMenu.Append(IDM_OPENCONTAININGFOLDER, "Open &containing folder");
+ popupMenu.Append(IDM_EDITPATCHFILE, wxString::FromAscii(menu_text.c_str())); //Pretty much everything in wxwidgets is a wxString, try to convert to those first!
+ popupMenu.Append(IDM_OPENCONTAININGFOLDER, wxString::FromAscii("Open &containing folder"));
PopupMenu(&popupMenu);
}
}
diff --git a/Source/Core/DolphinWX/src/Main.cpp b/Source/Core/DolphinWX/src/Main.cpp
index ed90697efe..612614e72e 100644
--- a/Source/Core/DolphinWX/src/Main.cpp
+++ b/Source/Core/DolphinWX/src/Main.cpp
@@ -17,8 +17,9 @@
#include <vector>
#include <string>
-
-#include "svnrev.h"
+#ifdef WIN32
+ #include "svnrev.h"
+#endif
#include "CPUDetect.h"
#include "Globals.h"
#include "Common.h"
@@ -94,12 +95,20 @@ bool DolphinApp::OnInit()
SConfig::GetInstance().LoadSettings();
wxInitAllImageHandlers();
// Create the main frame window
-#ifdef _DEBUG
- const char *title = "Dolphin Debug SVN R " SVN_REV_STR;
+#ifdef _WIN32
+ #ifdef _DEBUG
+ const char *title = "Dolphin Debug SVN R " SVN_REV_STR;
+ #else
+ const char *title = "Dolphin SVN R " SVN_REV_STR;
+ #endif
#else
- const char *title = "Dolphin SVN R " SVN_REV_STR;
+ #ifdef _DEBUG
+ const char *title = "Dolphin Debug SVN Linux Build"; // Do this for now
+ #else
+ const char *title = "Dolphin SVN Linux Build";
+ #endif
#endif
- main_frame = new CFrame((wxFrame*) NULL, wxID_ANY, title,
+ main_frame = new CFrame((wxFrame*) NULL, wxID_ANY, wxString::FromAscii(title),
wxPoint(100, 100), wxSize(800, 600));
// create debugger