2015-05-24 06:55:12 +02:00
|
|
|
// Copyright 2008 Dolphin Emulator Project
|
2015-05-18 01:08:10 +02:00
|
|
|
// Licensed under GPLv2+
|
2013-04-17 22:43:11 -04:00
|
|
|
// 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.
|
|
|
|
|
2014-07-16 10:24:40 -04:00
|
|
|
bool Host_UIHasFocus();
|
2011-01-30 16:40:38 +00:00
|
|
|
bool Host_RendererHasFocus();
|
2015-01-04 17:09:56 +01:00
|
|
|
bool Host_RendererIsFullscreen();
|
2011-01-30 16:40:38 +00:00
|
|
|
void Host_ConnectWiimote(int wm_idx, bool connect);
|
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);
|
2008-12-08 04:46:09 +00:00
|
|
|
void Host_SetWiiMoteConnectionState(int _State);
|
2011-01-30 16:40:38 +00:00
|
|
|
void Host_UpdateDisasmDialog();
|
|
|
|
void Host_UpdateMainFrame();
|
2014-03-12 15:33:41 -04:00
|
|
|
void Host_UpdateTitle(const std::string& title);
|
2016-06-26 08:06:23 +02:00
|
|
|
void Host_ShowVideoConfig(void* parent, const std::string& backend_name);
|
2016-11-10 17:55:21 +01:00
|
|
|
void Host_YieldToUI();
|
2008-12-08 04:46:09 +00:00
|
|
|
|
2014-08-03 23:44:37 -04:00
|
|
|
// TODO (neobrain): Remove this from host!
|
2011-02-12 21:25:49 +00:00
|
|
|
void* Host_GetRenderHandle();
|