mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-01 10:32:37 +01:00
7baabe99d1
This is something that should be the responsibility of the frontend booting the game. Making this part of the host 'interface' inherently requires frontends to leak internal details (much like the other UI-related functions in the interface). This also decouples more behavior from the debugger and the initialization process in the wx frontend. This also eliminates several usages of the parent menubar in the debugger code window.
43 lines
1.4 KiB
C++
43 lines
1.4 KiB
C++
// Copyright 2008 Dolphin Emulator Project
|
|
// Licensed under GPLv2+
|
|
// Refer to the license.txt file included.
|
|
|
|
#pragma once
|
|
|
|
#include <string>
|
|
|
|
// 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,
|
|
// INI file manipulation, memory mapping, etc.
|
|
|
|
// 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.
|
|
|
|
bool Host_UIHasFocus();
|
|
bool Host_RendererHasFocus();
|
|
bool Host_RendererIsFullscreen();
|
|
void Host_ConnectWiimote(int wm_idx, bool connect);
|
|
void Host_Message(int Id);
|
|
void Host_NotifyMapLoaded();
|
|
void Host_RefreshDSPDebuggerWindow();
|
|
void Host_RequestRenderWindowSize(int width, int height);
|
|
void Host_SetWiiMoteConnectionState(int _State);
|
|
void Host_UpdateDisasmDialog();
|
|
void Host_UpdateMainFrame();
|
|
void Host_UpdateTitle(const std::string& title);
|
|
void Host_ShowVideoConfig(void* parent, const std::string& backend_name);
|
|
void Host_YieldToUI();
|
|
|
|
// TODO (neobrain): Remove this from host!
|
|
void* Host_GetRenderHandle();
|