mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-29 17:15:40 +00:00
Fix Android build
This commit is contained in:
parent
98bad30af8
commit
85b4a02f20
|
@ -350,6 +350,13 @@ void AndroidHostInterface::RunOnEmulationThread(std::function<void()> function,
|
|||
m_mutex.unlock();
|
||||
}
|
||||
|
||||
void AndroidHostInterface::RunLater(std::function<void ()> func)
|
||||
{
|
||||
std::unique_lock<std::mutex> lock(m_mutex);
|
||||
m_callback_queue.push_back(std::move(func));
|
||||
m_callbacks_outstanding.store(true);
|
||||
}
|
||||
|
||||
void AndroidHostInterface::EmulationThreadEntryPoint(JNIEnv* env, jobject emulation_activity,
|
||||
SystemBootParameters boot_params, bool resume_state)
|
||||
{
|
||||
|
|
|
@ -31,6 +31,7 @@ public:
|
|||
|
||||
const char* GetFrontendName() const override;
|
||||
void RequestExit() override;
|
||||
void RunLater(std::function<void()> func) override;
|
||||
|
||||
void ReportError(const char* message) override;
|
||||
void ReportMessage(const char* message) override;
|
||||
|
@ -63,7 +64,7 @@ public:
|
|||
void SetFastForwardEnabled(bool enabled);
|
||||
|
||||
void RefreshGameList(bool invalidate_cache, bool invalidate_database, ProgressCallback* progress_callback);
|
||||
void ApplySettings(bool display_osd_messages);
|
||||
void ApplySettings(bool display_osd_messages) override;
|
||||
|
||||
bool ImportPatchCodesFromString(const std::string& str);
|
||||
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
add_definitions("-DWITH_IMGUI=1")
|
||||
|
||||
add_subdirectory(common)
|
||||
add_subdirectory(core)
|
||||
add_subdirectory(scmversion)
|
||||
|
|
|
@ -116,6 +116,7 @@ target_include_directories(core PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/..")
|
|||
target_include_directories(core PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/..")
|
||||
target_link_libraries(core PUBLIC Threads::Threads common zlib vulkan-loader)
|
||||
target_link_libraries(core PRIVATE glad stb xxhash imgui)
|
||||
target_compile_definitions(core PUBLIC "-DWITH_IMGUI=1")
|
||||
|
||||
if(WIN32)
|
||||
target_sources(core PRIVATE
|
||||
|
|
|
@ -290,7 +290,7 @@ protected:
|
|||
virtual void UpdateControllerInterface();
|
||||
|
||||
virtual void OnSystemCreated() override;
|
||||
virtual void OnSystemPaused(bool paused);
|
||||
virtual void OnSystemPaused(bool paused) override;
|
||||
virtual void OnSystemDestroyed() override;
|
||||
virtual void OnRunningGameChanged() override;
|
||||
virtual void OnControllerTypeChanged(u32 slot) override;
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
#include "imgui.h"
|
||||
#include <functional>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
namespace ImGuiFullscreen {
|
||||
#define HEX_TO_IMVEC4(hex, alpha) \
|
||||
|
|
Loading…
Reference in a new issue