mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-14 21:37:52 -07:00
GL plugin now Updates it's title bar in Linux. No gui also works, change it in SConscript in Linux if you want to use that one instead
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@148 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
b370386983
commit
e34d4abfee
@ -47,8 +47,10 @@ else:
|
|||||||
"Source/Core/DebuggerWX/src",
|
"Source/Core/DebuggerWX/src",
|
||||||
"Source/Core/VideoCommon/Src",
|
"Source/Core/VideoCommon/Src",
|
||||||
"Source/Plugins/Plugin_VideoOGL/Src",
|
"Source/Plugins/Plugin_VideoOGL/Src",
|
||||||
|
# "Source/Plugins/Plugin_VideoDX9/Src",
|
||||||
"Source/Plugins/Plugin_DSP_NULL/Src",
|
"Source/Plugins/Plugin_DSP_NULL/Src",
|
||||||
# "Source/Plugins/Plugin_DSP_LLE/Src",
|
# "Source/Plugins/Plugin_DSP_LLE/Src",
|
||||||
|
"Source/Plugins/PluginDiscIO_ZIP/Src",
|
||||||
"Source/Plugins/Plugin_PadSimple/Src",
|
"Source/Plugins/Plugin_PadSimple/Src",
|
||||||
"Source/Plugins/Plugin_nJoy_SDL/Src",
|
"Source/Plugins/Plugin_nJoy_SDL/Src",
|
||||||
"Source/Core/DolphinWX/src",
|
"Source/Core/DolphinWX/src",
|
||||||
|
@ -77,7 +77,7 @@ bool BootCore(const std::string& _rFilename)
|
|||||||
ini.Get("Core", "UseDualCore", &StartUp.bUseDualCore, StartUp.bUseDualCore);
|
ini.Get("Core", "UseDualCore", &StartUp.bUseDualCore, StartUp.bUseDualCore);
|
||||||
ini.Get("Core", "OptimizeQuantizers", &StartUp.bOptimizeQuantizers, StartUp.bOptimizeQuantizers);
|
ini.Get("Core", "OptimizeQuantizers", &StartUp.bOptimizeQuantizers, StartUp.bOptimizeQuantizers);
|
||||||
}
|
}
|
||||||
|
if(main_frame)
|
||||||
StartUp.hMainWindow = main_frame->GetRenderHandle();
|
StartUp.hMainWindow = main_frame->GetRenderHandle();
|
||||||
|
|
||||||
// init the core
|
// init the core
|
||||||
|
@ -10,6 +10,51 @@
|
|||||||
#include "ISOFile.h"
|
#include "ISOFile.h"
|
||||||
|
|
||||||
#include "BootManager.h"
|
#include "BootManager.h"
|
||||||
|
void* g_pCodeWindow = NULL;
|
||||||
|
void* main_frame = NULL;
|
||||||
|
bool wxPanicAlert(const char* text, bool /*yes_no*/)
|
||||||
|
{
|
||||||
|
return(true);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void Host_BootingStarted(){}
|
||||||
|
|
||||||
|
|
||||||
|
void Host_BootingEnded(){}
|
||||||
|
|
||||||
|
|
||||||
|
// OK, this thread boundary is DANGEROUS on linux
|
||||||
|
// wxPostEvent / wxAddPendingEvent is the solution.
|
||||||
|
void Host_NotifyMapLoaded(){}
|
||||||
|
|
||||||
|
|
||||||
|
void Host_UpdateLogDisplay(){}
|
||||||
|
|
||||||
|
|
||||||
|
void Host_UpdateDisasmDialog(){}
|
||||||
|
|
||||||
|
|
||||||
|
void Host_UpdateMainFrame(){}
|
||||||
|
|
||||||
|
void Host_UpdateBreakPointView(){}
|
||||||
|
|
||||||
|
|
||||||
|
void Host_UpdateMemoryView(){}
|
||||||
|
|
||||||
|
|
||||||
|
void Host_SetDebugMode(bool){}
|
||||||
|
|
||||||
|
|
||||||
|
void Host_SetWaitCursor(bool enable){}
|
||||||
|
|
||||||
|
|
||||||
|
void Host_CreateDisplay(){}
|
||||||
|
|
||||||
|
|
||||||
|
void Host_CloseDisplay(){}
|
||||||
|
|
||||||
|
void Host_UpdateStatusBar(const char* _pText){}
|
||||||
|
|
||||||
int main(int argc, const char* argv[])
|
int main(int argc, const char* argv[])
|
||||||
{
|
{
|
||||||
@ -18,16 +63,10 @@ int main(int argc, const char* argv[])
|
|||||||
puts("Please supply at least one argument - the ISO to boot.\n");
|
puts("Please supply at least one argument - the ISO to boot.\n");
|
||||||
return(1);
|
return(1);
|
||||||
}
|
}
|
||||||
|
std::string temp;
|
||||||
|
temp.insert(0, argv[1]); //Need to convert to C++ style string first
|
||||||
|
|
||||||
CISOFile iso(argv[1]);
|
BootManager::BootCore(temp);
|
||||||
|
|
||||||
if (!iso.IsValid())
|
|
||||||
{
|
|
||||||
printf("The ISO %s is not a valid Gamecube or Wii ISO.", argv[1]);
|
|
||||||
return(1);
|
|
||||||
}
|
|
||||||
|
|
||||||
BootManager::BootCore(iso);
|
|
||||||
usleep(2000 * 1000 * 1000);
|
usleep(2000 * 1000 * 1000);
|
||||||
// while (!getch()) {
|
// while (!getch()) {
|
||||||
// usleep(20);
|
// usleep(20);
|
||||||
|
@ -55,7 +55,11 @@ void OpenGL_SetWindowText(const char *text)
|
|||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
SetWindowText(EmuWindow::GetWnd(), text);
|
SetWindowText(EmuWindow::GetWnd(), text);
|
||||||
#else
|
#else
|
||||||
// TODO
|
/**
|
||||||
|
* Tell X to ask the window manager to set the window title. (X
|
||||||
|
* itself doesn't provide window title functionality.)
|
||||||
|
*/
|
||||||
|
XStoreName(GLWin.dpy, GLWin.win, text);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -89,7 +93,9 @@ void UpdateFPSDisplay(const char *text)
|
|||||||
SetWindowText(EmuWindow::GetWnd(), temp);
|
SetWindowText(EmuWindow::GetWnd(), temp);
|
||||||
OpenGL_SetWindowText(temp);
|
OpenGL_SetWindowText(temp);
|
||||||
#else
|
#else
|
||||||
//TODO
|
char temp[512];
|
||||||
|
sprintf(temp, "SVN %s: %s", "Linux", text); //TODO: Set to svn rev //
|
||||||
|
OpenGL_SetWindowText(temp);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user