2013-04-17 22:43:11 -04:00
|
|
|
// Copyright 2013 Dolphin Emulator Project
|
|
|
|
// Licensed under GPLv2
|
|
|
|
// Refer to the license.txt file included.
|
2008-12-08 04:46:09 +00:00
|
|
|
|
2014-02-10 13:54:46 -05:00
|
|
|
#pragma once
|
2008-12-08 04:46:09 +00:00
|
|
|
|
2014-03-12 15:33:41 -04:00
|
|
|
#include <string>
|
2008-12-08 04:46:09 +00:00
|
|
|
|
|
|
|
// Host - defines an interface for the emulator core to communicate back to the
|
|
|
|
// OS-specific layer
|
|
|
|
|
|
|
|
// The emulator core is abstracted from the OS using 2 interfaces:
|
|
|
|
// Common and Host.
|
|
|
|
|
|
|
|
// Common simply provides OS-neutral implementations of things like threads, mutexes,
|
2013-10-29 01:23:17 -04:00
|
|
|
// INI file manipulation, memory mapping, etc.
|
2008-12-08 04:46:09 +00:00
|
|
|
|
|
|
|
// Host is an abstract interface for communicating things back to the host. The emulator
|
|
|
|
// core is treated as a library, not as a main program, because it is far easier to
|
|
|
|
// write GUI interfaces that control things than to squash GUI into some model that wasn't
|
|
|
|
// designed for it.
|
|
|
|
|
|
|
|
// The host can be just a command line app that opens a window, or a full blown debugger
|
|
|
|
// interface.
|
|
|
|
|
2011-01-30 16:40:38 +00:00
|
|
|
bool Host_RendererHasFocus();
|
|
|
|
void Host_ConnectWiimote(int wm_idx, bool connect);
|
|
|
|
bool Host_GetKeyState(int keycode);
|
|
|
|
void Host_GetRenderWindowSize(int& x, int& y, int& width, int& height);
|
2009-09-07 12:40:43 +00:00
|
|
|
void Host_Message(int Id);
|
2008-12-08 04:46:09 +00:00
|
|
|
void Host_NotifyMapLoaded();
|
2011-01-31 14:25:50 +00:00
|
|
|
void Host_RefreshDSPDebuggerWindow();
|
2011-01-25 03:30:12 +00:00
|
|
|
void Host_RequestRenderWindowSize(int width, int height);
|
2011-02-12 21:25:49 +00:00
|
|
|
void Host_SetStartupDebuggingParameters();
|
2008-12-08 04:46:09 +00:00
|
|
|
void Host_SetWiiMoteConnectionState(int _State);
|
2011-01-30 16:40:38 +00:00
|
|
|
void Host_ShowJitResults(unsigned int address);
|
|
|
|
void Host_SysMessage(const char *fmt, ...);
|
|
|
|
void Host_UpdateBreakPointView();
|
|
|
|
void Host_UpdateDisasmDialog();
|
|
|
|
void Host_UpdateLogDisplay();
|
|
|
|
void Host_UpdateMainFrame();
|
2014-03-12 15:33:41 -04:00
|
|
|
void Host_UpdateStatusBar(const std::string& text, int Filed = 0);
|
|
|
|
void Host_UpdateTitle(const std::string& title);
|
2008-12-08 04:46:09 +00:00
|
|
|
|
2011-02-12 21:25:49 +00:00
|
|
|
// TODO (neobrain): Remove these from host!
|
|
|
|
void* Host_GetInstance();
|
|
|
|
void* Host_GetRenderHandle();
|