2014-08-02 06:23:52 +00:00
|
|
|
// Copyright 2014 Dolphin Emulator Project
|
2021-07-05 01:22:19 +00:00
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
2014-08-02 06:23:52 +00:00
|
|
|
|
|
|
|
// Stub implementation of the Host_* callbacks for tests. These implementations
|
|
|
|
// do nothing except return default values when required.
|
|
|
|
|
|
|
|
#include <string>
|
2020-12-27 22:11:22 +00:00
|
|
|
#include <vector>
|
2014-08-02 06:23:52 +00:00
|
|
|
|
|
|
|
#include "Core/Host.h"
|
|
|
|
|
2020-12-27 22:11:22 +00:00
|
|
|
std::vector<std::string> Host_GetPreferredLocales()
|
|
|
|
{
|
|
|
|
return {};
|
|
|
|
}
|
2014-08-02 06:23:52 +00:00
|
|
|
void Host_NotifyMapLoaded()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
void Host_RefreshDSPDebuggerWindow()
|
|
|
|
{
|
|
|
|
}
|
2018-05-28 17:03:29 +00:00
|
|
|
void Host_Message(HostMessageID)
|
2014-08-02 06:23:52 +00:00
|
|
|
{
|
|
|
|
}
|
|
|
|
void Host_UpdateTitle(const std::string&)
|
|
|
|
{
|
|
|
|
}
|
2022-08-03 04:46:11 +00:00
|
|
|
void Host_UpdateDiscordClientID(const std::string& client_id)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
bool Host_UpdateDiscordPresenceRaw(const std::string& details, const std::string& state,
|
|
|
|
const std::string& large_image_key,
|
|
|
|
const std::string& large_image_text,
|
|
|
|
const std::string& small_image_key,
|
|
|
|
const std::string& small_image_text,
|
|
|
|
const int64_t start_timestamp, const int64_t end_timestamp,
|
|
|
|
const int party_size, const int party_max)
|
|
|
|
{
|
|
|
|
return false;
|
|
|
|
}
|
2014-08-02 06:23:52 +00:00
|
|
|
void Host_UpdateDisasmDialog()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
void Host_UpdateMainFrame()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
void Host_RequestRenderWindowSize(int, int)
|
|
|
|
{
|
2014-08-31 12:52:21 +00:00
|
|
|
}
|
2019-03-18 16:30:33 +00:00
|
|
|
bool Host_UIBlocksControllerState()
|
|
|
|
{
|
|
|
|
return false;
|
|
|
|
}
|
2014-08-02 06:23:52 +00:00
|
|
|
bool Host_RendererHasFocus()
|
|
|
|
{
|
|
|
|
return false;
|
2015-01-04 16:09:56 +00:00
|
|
|
}
|
2021-05-09 10:28:04 +00:00
|
|
|
bool Host_RendererHasFullFocus()
|
|
|
|
{
|
|
|
|
return false;
|
|
|
|
}
|
2015-01-04 16:09:56 +00:00
|
|
|
bool Host_RendererIsFullscreen()
|
|
|
|
{
|
|
|
|
return false;
|
2014-08-02 06:23:52 +00:00
|
|
|
}
|
2016-11-10 16:55:21 +00:00
|
|
|
void Host_YieldToUI()
|
|
|
|
{
|
|
|
|
}
|
2019-02-14 02:31:31 +00:00
|
|
|
void Host_TitleChanged()
|
|
|
|
{
|
|
|
|
}
|
2021-07-04 11:09:46 +00:00
|
|
|
std::unique_ptr<GBAHostInterface> Host_CreateGBAHost(std::weak_ptr<HW::GBA::Core> core)
|
|
|
|
{
|
|
|
|
return nullptr;
|
|
|
|
}
|