Print the performance status in exactly one place.
Placing the render window at position 0,0 makes it unmovable on OS X. Use the conventional r1234 format for SVN revision numbers. Delete mis-copied .svn directories from the application bundle. Only warn about a failed low-memory allocation if one was requested. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6811 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
9bbed569d9
commit
d78be40be9
|
@ -48,7 +48,7 @@ void* AllocateExecutableMemory(size_t size, bool low)
|
|||
|
||||
if (ptr == NULL)
|
||||
PanicAlert("Failed to allocate executable memory");
|
||||
if ((u64)ptr >= 0x80000000)
|
||||
if ((u64)ptr >= 0x80000000 && low == true)
|
||||
PanicAlert("Executable memory ended up above 2GB!");
|
||||
|
||||
return ptr;
|
||||
|
|
|
@ -19,11 +19,11 @@
|
|||
#include "svnrev.h"
|
||||
|
||||
#ifdef _DEBUG
|
||||
const char *svn_rev_str = "Dolphin Debug SVN R " SVN_REV_STR;
|
||||
const char *svn_rev_str = "Dolphin Debug SVN r" SVN_REV_STR;
|
||||
#elif defined DEBUGFAST
|
||||
const char *svn_rev_str = "Dolphin Debugfast SVN R " SVN_REV_STR;
|
||||
const char *svn_rev_str = "Dolphin Debugfast SVN r" SVN_REV_STR;
|
||||
#else
|
||||
const char *svn_rev_str = "Dolphin SVN R " SVN_REV_STR;
|
||||
const char *svn_rev_str = "Dolphin SVN r" SVN_REV_STR;
|
||||
#endif
|
||||
|
||||
#ifdef _M_X64
|
||||
|
|
|
@ -241,8 +241,8 @@ void SConfig::LoadSettings()
|
|||
ini.Get("Display", "Fullscreen", &m_LocalCoreStartupParameter.bFullscreen, false);
|
||||
ini.Get("Display", "FullscreenResolution", &m_LocalCoreStartupParameter.strFullscreenResolution, "640x480");
|
||||
ini.Get("Display", "RenderToMain", &m_LocalCoreStartupParameter.bRenderToMain, false);
|
||||
ini.Get("Display", "RenderWindowXPos", &m_LocalCoreStartupParameter.iRenderWindowXPos, 0);
|
||||
ini.Get("Display", "RenderWindowYPos", &m_LocalCoreStartupParameter.iRenderWindowYPos, 0);
|
||||
ini.Get("Display", "RenderWindowXPos", &m_LocalCoreStartupParameter.iRenderWindowXPos, -1);
|
||||
ini.Get("Display", "RenderWindowYPos", &m_LocalCoreStartupParameter.iRenderWindowYPos, -1);
|
||||
ini.Get("Display", "RenderWindowWidth", &m_LocalCoreStartupParameter.iRenderWindowWidth, 640);
|
||||
ini.Get("Display", "RenderWindowHeight", &m_LocalCoreStartupParameter.iRenderWindowHeight, 480);
|
||||
ini.Get("Display", "ProgressiveScan", &m_LocalCoreStartupParameter.bProgressive, false);
|
||||
|
|
|
@ -671,14 +671,20 @@ void VideoThrottle()
|
|||
#endif
|
||||
|
||||
// This is our final "frame counter" string
|
||||
std::string SMessage = StringFromFormat("%s | %s", SSettings.c_str(), SFPS.c_str());
|
||||
std::string SMessage = StringFromFormat("%s | %s | %s",
|
||||
svn_rev_str, SSettings.c_str(), SFPS.c_str());
|
||||
|
||||
// Show message
|
||||
if (g_pUpdateFPSDisplay != NULL)
|
||||
g_pUpdateFPSDisplay(SMessage.c_str());
|
||||
|
||||
if (_CoreParameter.bRenderToMain &&
|
||||
SConfig::GetInstance().m_InterfaceStatusbar) {
|
||||
Host_UpdateStatusBar(SMessage.c_str());
|
||||
Host_UpdateTitle(svn_rev_str);
|
||||
} else
|
||||
Host_UpdateTitle(SMessage.c_str());
|
||||
|
||||
Host_UpdateStatusBar(SMessage.c_str());
|
||||
|
||||
// Reset counter
|
||||
Timer.Update();
|
||||
|
|
|
@ -54,7 +54,7 @@ SCoreStartupParameter::SCoreStartupParameter()
|
|||
SelectedLanguage(0), bWii(false),
|
||||
bConfirmStop(false), bHideCursor(false),
|
||||
bAutoHideCursor(false), bUsePanicHandlers(true),
|
||||
iRenderWindowXPos(0), iRenderWindowYPos(0),
|
||||
iRenderWindowXPos(-1), iRenderWindowYPos(-1),
|
||||
iRenderWindowWidth(640), iRenderWindowHeight(480),
|
||||
bFullscreen(false), bRenderToMain(false),
|
||||
bProgressive(false),
|
||||
|
|
|
@ -645,7 +645,7 @@ void CFrame::OnHostMessage(wxCommandEvent& event)
|
|||
break;
|
||||
|
||||
case IDM_UPDATETITLE:
|
||||
if (!SConfig::GetInstance().m_LocalCoreStartupParameter.bRenderToMain && m_RenderFrame)
|
||||
if (m_RenderFrame != NULL)
|
||||
m_RenderFrame->SetTitle(event.GetString());
|
||||
break;
|
||||
|
||||
|
|
|
@ -785,9 +785,17 @@ void CFrame::StartGame(const std::string& filename)
|
|||
{
|
||||
wxPoint position(SConfig::GetInstance().m_LocalCoreStartupParameter.iRenderWindowXPos,
|
||||
SConfig::GetInstance().m_LocalCoreStartupParameter.iRenderWindowYPos);
|
||||
#ifdef __APPLE__
|
||||
// On OS X, the render window's title bar is not visible,
|
||||
// and the window therefore not easily moved, when the
|
||||
// position is 0,0. Weed out the 0's from existing configs.
|
||||
if (position == wxPoint(0, 0))
|
||||
position = wxDefaultPosition;
|
||||
#endif
|
||||
|
||||
m_RenderFrame = new CRenderFrame((wxFrame*)this, wxID_ANY, _("Dolphin"), position);
|
||||
wxSize size(SConfig::GetInstance().m_LocalCoreStartupParameter.iRenderWindowWidth,
|
||||
SConfig::GetInstance().m_LocalCoreStartupParameter.iRenderWindowHeight);
|
||||
m_RenderFrame = new CRenderFrame((wxFrame*)this, wxID_ANY, _("Dolphin"), position);
|
||||
m_RenderFrame->SetClientSize(size.GetWidth(), size.GetHeight());
|
||||
m_RenderFrame->Connect(wxID_ANY, wxEVT_CLOSE_WINDOW,
|
||||
wxCloseEventHandler(CFrame::OnRenderParentClose),
|
||||
|
|
|
@ -69,9 +69,10 @@ elif sys.platform == 'darwin' and env['HAVE_WX']:
|
|||
exeGUI = '#' + env['prefix'] + '/Dolphin.app/Contents/MacOS/Dolphin'
|
||||
|
||||
env.Install('#' + env['prefix'] + '/Dolphin.app/Contents/' +
|
||||
'Library/Frameworks/Cg.framework',
|
||||
source = [ '#Externals/Cg/Cg.framework/Cg',
|
||||
'#Externals/Cg/Cg.framework/Resources' ])
|
||||
'Library/Frameworks/Cg.framework', source = [
|
||||
'#Externals/Cg/Cg.framework/Cg',
|
||||
'#Externals/Cg/Cg.framework/Resources'
|
||||
])
|
||||
|
||||
env.Install(env['data_dir'], '#Data/Sys')
|
||||
env.Install(env['data_dir'], '#Data/User')
|
||||
|
@ -108,6 +109,9 @@ elif sys.platform == 'darwin' and env['HAVE_WX']:
|
|||
LSMinimumSystemVersion = '10.5.4',
|
||||
LSRequiresCarbon = True,
|
||||
)))
|
||||
|
||||
env.Command('dummy', '#' + env['prefix'],
|
||||
"find $SOURCES -name .svn -exec rm -rf {} +")
|
||||
else:
|
||||
files += [ 'X11Utils.cpp' ]
|
||||
libs += [ 'SDL' ]
|
||||
|
|
|
@ -122,8 +122,8 @@ unsigned int Callback_PeekMessages()
|
|||
|
||||
void UpdateFPSDisplay(const char *text)
|
||||
{
|
||||
char temp[512];
|
||||
sprintf_s(temp, 512, "SVN R%s: DX11: %s", svn_rev_str, text);
|
||||
char temp[100];
|
||||
sprintf_s(temp, sizeof temp, "%s | DX11 | %s", svn_rev_str, text);
|
||||
SetWindowTextA(EmuWindow::GetWnd(), temp);
|
||||
}
|
||||
|
||||
|
|
|
@ -120,8 +120,8 @@ unsigned int Callback_PeekMessages()
|
|||
|
||||
void UpdateFPSDisplay(const char *text)
|
||||
{
|
||||
TCHAR temp[512];
|
||||
swprintf_s(temp, 512, _T("SVN R%s: DX9: %hs"), svn_rev_str, text);
|
||||
TCHAR temp[100];
|
||||
swprintf_s(temp, sizeof temp, _T("%s | DX9 | %s"), svn_rev_str, text);
|
||||
SetWindowText(EmuWindow::GetWnd(), temp);
|
||||
}
|
||||
|
||||
|
|
|
@ -66,7 +66,7 @@ u32 OpenGL_GetBackbufferHeight()
|
|||
void OpenGL_SetWindowText(const char *text)
|
||||
{
|
||||
#if defined(USE_WX) && USE_WX
|
||||
// GLWin.frame->SetTitle(wxString::FromAscii(text));
|
||||
// Handled by Host_UpdateTitle()
|
||||
#elif defined(__APPLE__)
|
||||
[GLWin.cocoaWin setTitle: [[[NSString alloc]
|
||||
initWithCString: text] autorelease]];
|
||||
|
|
|
@ -61,7 +61,7 @@ u32 OpenGL_GetBackbufferHeight()
|
|||
void OpenGL_SetWindowText(const char *text)
|
||||
{
|
||||
#if defined(USE_WX) && USE_WX
|
||||
// GLWin.frame->SetTitle(wxString::FromAscii(text));
|
||||
// Handled by Host_UpdateTitle()
|
||||
#elif defined(_WIN32)
|
||||
// TODO convert text to unicode and change SetWindowTextA to SetWindowText
|
||||
SetWindowTextA(EmuWindow::GetWnd(), text);
|
||||
|
|
Loading…
Reference in New Issue