summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
authorLéo Lam <leo@innovatetechnologi.es>2017-09-01 17:10:47 +0200
committerLéo Lam <leo@innovatetechnologi.es>2017-09-13 17:38:23 +0200
commit12da9c847304a3896fba5259ab185a401a3e79b3 (patch)
treebdecc891d8d87658c04443e888e6c2d4f79f7cb0 /Source
parentb3d12347caa3814d81c79cfd86369c4526c928b7 (diff)
DSPTool: Fix build
Stub implementations of Host functions are required, as DSPTool links against Core (which makes use of Host).
Diffstat (limited to 'Source')
-rw-r--r--Source/DSPTool/CMakeLists.txt2
-rw-r--r--Source/DSPTool/DSPTool.vcxproj3
-rw-r--r--Source/DSPTool/StubHost.cpp60
3 files changed, 63 insertions, 2 deletions
diff --git a/Source/DSPTool/CMakeLists.txt b/Source/DSPTool/CMakeLists.txt
index bb89639b6b..56fbee9e01 100644
--- a/Source/DSPTool/CMakeLists.txt
+++ b/Source/DSPTool/CMakeLists.txt
@@ -1,4 +1,4 @@
-add_executable(dsptool DSPTool.cpp)
+add_executable(dsptool DSPTool.cpp StubHost.cpp)
target_link_libraries(dsptool core)
if(NOT APPLE)
install(TARGETS dsptool RUNTIME DESTINATION ${bindir})
diff --git a/Source/DSPTool/DSPTool.vcxproj b/Source/DSPTool/DSPTool.vcxproj
index d4dda2a2f1..f7a00991e9 100644
--- a/Source/DSPTool/DSPTool.vcxproj
+++ b/Source/DSPTool/DSPTool.vcxproj
@@ -49,6 +49,7 @@
</ItemGroup>
<ItemGroup>
<ClCompile Include="DSPTool.cpp" />
+ <ClCompile Include="StubHost.cpp" />
</ItemGroup>
<ItemGroup>
<Text Include="CMakeLists.txt" />
@@ -72,4 +73,4 @@
<Message Text="Copy: @(SourceFiles) -&gt; $(BinaryOutputDir)" Importance="High" />
<Copy SourceFiles="@(SourceFiles)" DestinationFolder="$(BinaryOutputDir)" />
</Target>
-</Project> \ No newline at end of file
+</Project>
diff --git a/Source/DSPTool/StubHost.cpp b/Source/DSPTool/StubHost.cpp
new file mode 100644
index 0000000000..502e6e0c7e
--- /dev/null
+++ b/Source/DSPTool/StubHost.cpp
@@ -0,0 +1,60 @@
+// Copyright 2017 Dolphin Emulator Project
+// Licensed under GPLv2+
+// Refer to the license.txt file included.
+
+// Stub implementation of the Host_* callbacks for DSPTool. These implementations
+// do nothing except return default values when required.
+
+#include <string>
+
+#include "Core/Host.h"
+
+void Host_NotifyMapLoaded()
+{
+}
+void Host_RefreshDSPDebuggerWindow()
+{
+}
+void Host_Message(int)
+{
+}
+void* Host_GetRenderHandle()
+{
+ return nullptr;
+}
+void Host_UpdateTitle(const std::string&)
+{
+}
+void Host_UpdateDisasmDialog()
+{
+}
+void Host_UpdateMainFrame()
+{
+}
+void Host_RequestRenderWindowSize(int, int)
+{
+}
+void Host_SetStartupDebuggingParameters()
+{
+}
+bool Host_UINeedsControllerState()
+{
+ return false;
+}
+bool Host_RendererHasFocus()
+{
+ return false;
+}
+bool Host_RendererIsFullscreen()
+{
+ return false;
+}
+void Host_ShowVideoConfig(void*, const std::string&)
+{
+}
+void Host_YieldToUI()
+{
+}
+void Host_UpdateProgressDialog(const char* caption, int position, int total)
+{
+}