mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-28 19:58:53 +00:00
DolphinQt: adapt so that it can boot games.
This commit is contained in:
parent
29593d403b
commit
3d63d22e53
11 changed files with 395 additions and 63 deletions
|
@ -5,9 +5,14 @@
|
|||
#include <cstdarg>
|
||||
#include <cstring>
|
||||
|
||||
#include <QApplication>
|
||||
#include <QResizeEvent>
|
||||
|
||||
#include "Common/MsgHandler.h"
|
||||
#include "Core/Host.h"
|
||||
|
||||
#include "DolphinQt/MainWindow.h"
|
||||
|
||||
void Host_SysMessage(const char *fmt, ...)
|
||||
{
|
||||
va_list list;
|
||||
|
@ -27,9 +32,48 @@ void Host_Message(int id)
|
|||
// TODO
|
||||
}
|
||||
|
||||
void Host_UpdateMainFrame()
|
||||
{
|
||||
// TODO
|
||||
}
|
||||
|
||||
void Host_UpdateTitle(const std::string& title)
|
||||
{
|
||||
// TODO
|
||||
}
|
||||
|
||||
void* Host_GetRenderHandle()
|
||||
{
|
||||
return nullptr;
|
||||
return (void*)(g_main_window->GetRenderWidget()->winId());
|
||||
}
|
||||
|
||||
void Host_GetRenderWindowSize(int& x, int& y, int& w, int& h)
|
||||
{
|
||||
// TODO: Make it more clear what this is supposed to return.. i.e. WX always sets x=y=0
|
||||
g_main_window->RenderWidgetSize(x, y, w, h);
|
||||
x = 0;
|
||||
y = 0;
|
||||
}
|
||||
|
||||
void Host_RequestRenderWindowSize(int w, int h)
|
||||
{
|
||||
DRenderWidget* render_widget = g_main_window->GetRenderWidget();
|
||||
qApp->postEvent(render_widget, new QResizeEvent(QSize(w, h), render_widget->size()));
|
||||
}
|
||||
|
||||
bool Host_RendererHasFocus()
|
||||
{
|
||||
return g_main_window->RenderWidgetHasFocus();
|
||||
}
|
||||
|
||||
bool Host_UIHasFocus()
|
||||
{
|
||||
return g_main_window->isActiveWindow();
|
||||
}
|
||||
|
||||
void Host_RequestFullscreen(bool enable)
|
||||
{
|
||||
// TODO
|
||||
}
|
||||
|
||||
void Host_NotifyMapLoaded()
|
||||
|
@ -42,31 +86,6 @@ void Host_UpdateDisasmDialog()
|
|||
// TODO
|
||||
}
|
||||
|
||||
void Host_UpdateMainFrame()
|
||||
{
|
||||
// TODO
|
||||
}
|
||||
|
||||
void Host_UpdateTitle(const std::string& title)
|
||||
{
|
||||
// TODO
|
||||
}
|
||||
|
||||
void Host_GetRenderWindowSize(int& x, int& y, int& width, int& height)
|
||||
{
|
||||
// TODO
|
||||
}
|
||||
|
||||
void Host_RequestRenderWindowSize(int width, int height)
|
||||
{
|
||||
// TODO
|
||||
}
|
||||
|
||||
void Host_RequestFullscreen(bool enable_fullscreen)
|
||||
{
|
||||
// TODO
|
||||
}
|
||||
|
||||
void Host_SetStartupDebuggingParameters()
|
||||
{
|
||||
// TODO
|
||||
|
@ -77,18 +96,6 @@ void Host_SetWiiMoteConnectionState(int state)
|
|||
// TODO
|
||||
}
|
||||
|
||||
bool Host_UIHasFocus()
|
||||
{
|
||||
// TODO
|
||||
return false;
|
||||
}
|
||||
|
||||
bool Host_RendererHasFocus()
|
||||
{
|
||||
// TODO
|
||||
return false;
|
||||
}
|
||||
|
||||
void Host_ConnectWiimote(int wm_idx, bool connect)
|
||||
{
|
||||
// TODO
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue