From cb7cae43055fa31dac3e800847e78dec32cf8664 Mon Sep 17 00:00:00 2001 From: DarthMew Date: Wed, 2 Mar 2022 23:22:48 +0100 Subject: [PATCH] Remove unused gdb protocol & files --- CMakeLists.txt | 2 +- src/common/common.props | 14 - src/common/common.vcxproj | 179 ------ src/common/common.vcxproj.filters | 288 --------- src/core/CMakeLists.txt | 2 - src/core/core.props | 24 - src/core/core.vcxproj | 162 ----- src/core/core.vcxproj.filters | 124 ---- src/core/gdb_protocol.cpp | 319 ---------- src/core/gdb_protocol.h | 13 - src/core/settings.cpp | 2 - src/core/settings.h | 3 - src/libretro/common_host_interface.h | 588 ------------------ src/libretro/duckstation-libretro.vcxproj | 582 ----------------- .../duckstation-libretro.vcxproj.filters | 24 - src/scmversion/scmversion.vcxproj | 42 -- src/scmversion/scmversion.vcxproj.filters | 13 - 17 files changed, 1 insertion(+), 2380 deletions(-) delete mode 100644 src/common/common.props delete mode 100644 src/common/common.vcxproj delete mode 100644 src/common/common.vcxproj.filters delete mode 100644 src/core/core.props delete mode 100644 src/core/core.vcxproj delete mode 100644 src/core/core.vcxproj.filters delete mode 100644 src/core/gdb_protocol.cpp delete mode 100644 src/core/gdb_protocol.h delete mode 100644 src/libretro/common_host_interface.h delete mode 100644 src/libretro/duckstation-libretro.vcxproj delete mode 100644 src/libretro/duckstation-libretro.vcxproj.filters delete mode 100644 src/scmversion/scmversion.vcxproj delete mode 100644 src/scmversion/scmversion.vcxproj.filters diff --git a/CMakeLists.txt b/CMakeLists.txt index 4c43be40..b398bf0f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -17,7 +17,7 @@ endif() # Set minimum OS version for macOS. 10.14 should work. set(CMAKE_OSX_DEPLOYMENT_TARGET "10.14.0" CACHE STRING "") -message("Building libretro core, disabling platform integration.") +message("Building libretro core.") set(USE_EGL OFF) set(USE_X11 OFF) diff --git a/src/common/common.props b/src/common/common.props deleted file mode 100644 index de91eaf4..00000000 --- a/src/common/common.props +++ /dev/null @@ -1,14 +0,0 @@ - - - - - $(SolutionDir)dep\libsamplerate\include;$(SolutionDir)dep\glad\include;$(SolutionDir)dep\libcue\include;$(SolutionDir)dep\libchdr\include;$(SolutionDir)dep\stb\include;$(SolutionDir)dep\vulkan-loader\include;$(SolutionDir)dep\glslang;$(SolutionDir)dep\zlib\include;$(SolutionDir)dep\minizip\include;$(SolutionDir)src;%(AdditionalIncludeDirectories) - - - - - - $(RootBuildDir)glad\glad.lib;$(RootBuildDir)glslang\glslang.lib;$(RootBuildDir)libchdr\libchdr.lib;$(RootBuildDir)libFLAC\libFLAC.lib;$(RootBuildDir)zlib\zlib.lib;$(RootBuildDir)minizip\minizip.lib;$(RootBuildDir)lzma\lzma.lib;$(RootBuildDir)libsamplerate\libsamplerate.lib;d3dcompiler.lib;d3d11.lib;%(AdditionalDependencies) - - - diff --git a/src/common/common.vcxproj b/src/common/common.vcxproj deleted file mode 100644 index b27d2fc4..00000000 --- a/src/common/common.vcxproj +++ /dev/null @@ -1,179 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - true - - - - - - - - - - - - - - - - - - - - - - - - - - - - - true - - - - - - - - - - - - - - - - - - - true - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - true - - - - - - - - - - - - - - - - - - - - - - - true - - - - - - - - - - - - - - - - true - - - - - - - - {EE054E08-3799-4A59-A422-18259C105FFD} - - - - - - $(IntDir)/%(RelativeDir)/ - - - - \ No newline at end of file diff --git a/src/common/common.vcxproj.filters b/src/common/common.vcxproj.filters deleted file mode 100644 index 4195d113..00000000 --- a/src/common/common.vcxproj.filters +++ /dev/null @@ -1,288 +0,0 @@ - - - - - - - - - - - - - gl - - - gl - - - gl - - - d3d11 - - - d3d11 - - - d3d11 - - - d3d11 - - - - - - - - - - - - - - - - - - d3d11 - - - - - - gl - - - - - gl - - - gl - - - - - vulkan - - - vulkan - - - vulkan - - - vulkan - - - vulkan - - - vulkan - - - vulkan - - - - - vulkan - - - vulkan - - - vulkan - - - - - - - - - - thirdparty - - - - - - - - - - d3d12 - - - d3d12 - - - d3d12 - - - d3d12 - - - d3d12 - - - d3d12 - - - d3d12 - - - - - - - - - - - - gl - - - gl - - - gl - - - d3d11 - - - d3d11 - - - d3d11 - - - d3d11 - - - - - - - - - - - - - - - d3d11 - - - - - - gl - - - - gl - - - gl - - - - vulkan - - - vulkan - - - vulkan - - - vulkan - - - vulkan - - - vulkan - - - vulkan - - - vulkan - - - vulkan - - - vulkan - - - - - - - - - - thirdparty - - - - - - - - - - - - d3d12 - - - d3d12 - - - d3d12 - - - d3d12 - - - d3d12 - - - d3d12 - - - d3d12 - - - - - - - - - {52487c57-753d-4888-ba26-ed63ab51a234} - - - {30251086-81f3-44f5-add4-7ff9a24098ab} - - - {642ff5eb-af39-4aab-a42f-6eb8188a11d7} - - - {fd4150b0-6f82-4251-ab23-34c25fbc5b5e} - - - {358e11c4-34af-4169-9a66-ec66342a6a2f} - - - \ No newline at end of file diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt index 62387361..608e925a 100644 --- a/src/core/CMakeLists.txt +++ b/src/core/CMakeLists.txt @@ -28,8 +28,6 @@ add_library(core digital_controller.h dma.cpp dma.h - gdb_protocol.cpp - gdb_protocol.h gpu.cpp gpu.h gpu_backend.cpp diff --git a/src/core/core.props b/src/core/core.props deleted file mode 100644 index fc0f99b7..00000000 --- a/src/core/core.props +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - - WITH_IMGUI=1;%(PreprocessorDefinitions) - WITH_RECOMPILER=1;%(PreprocessorDefinitions) - WITH_MMAP_FASTMEM=1;%(PreprocessorDefinitions) - - $(SolutionDir)dep\glad\include;$(SolutionDir)dep\stb\include;$(SolutionDir)dep\imgui\include;$(SolutionDir)dep\xxhash\include;$(SolutionDir)dep\zlib\include;$(SolutionDir)dep\vulkan-loader\include;$(SolutionDir)src;%(AdditionalIncludeDirectories) - - $(SolutionDir)dep\xbyak\xbyak;%(AdditionalIncludeDirectories) - $(SolutionDir)dep\vixl\include;%(AdditionalIncludeDirectories) - - - - - - $(RootBuildDir)imgui\imgui.lib;$(RootBuildDir)stb\stb.lib;$(RootBuildDir)vulkan-loader\vulkan-loader.lib;$(RootBuildDir)xxhash\xxhash.lib;$(RootBuildDir)zlib\zlib.lib;$(RootBuildDir)common\common.lib;%(AdditionalDependencies) - $(RootBuildDir)vixl\vixl.lib;%(AdditionalDependencies) - - - \ No newline at end of file diff --git a/src/core/core.vcxproj b/src/core/core.vcxproj deleted file mode 100644 index 47a4f0f0..00000000 --- a/src/core/core.vcxproj +++ /dev/null @@ -1,162 +0,0 @@ - - - - - - - - - - - - - - - - - true - - - true - - - true - - - true - - - true - - - true - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - true - - - true - - - true - - - true - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - {868B98C8-65A1-494B-8346-250A73A48C0A} - - - - - - - - - $(IntDir)/%(RelativeDir)/ - - - - - \ No newline at end of file diff --git a/src/core/core.vcxproj.filters b/src/core/core.vcxproj.filters deleted file mode 100644 index 147d956c..00000000 --- a/src/core/core.vcxproj.filters +++ /dev/null @@ -1,124 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/core/gdb_protocol.cpp b/src/core/gdb_protocol.cpp deleted file mode 100644 index e656eecf..00000000 --- a/src/core/gdb_protocol.cpp +++ /dev/null @@ -1,319 +0,0 @@ -#include "gdb_protocol.h" -#include "bus.h" -#include "cpu_core_private.h" -#include "common/log.h" -#include "common/string_util.h" -#include "cpu_core.h" -#include "libretro/common_host_interface.h" -#include "system.h" -#include -#include -#include -#include -#include -#include -Log_SetChannel(GDBProtocol); - -namespace GDBProtocol -{ - -static u8* GetMemoryPointer(PhysicalMemoryAddress address, u32 length) -{ - auto region = Bus::GetMemoryRegionForAddress(address); - if (region) { - u8* data = GetMemoryRegionPointer(*region); - if (data && (address + length <= GetMemoryRegionEnd(*region))) { - return data + (address - GetMemoryRegionStart(*region)); - } - } - - return nullptr; -} - -static u8 ComputeChecksum(const std::string_view& str) -{ - u8 checksum = 0; - for (char c : str) { - checksum = (checksum + c) % 256; - } - return checksum; -} - -static std::optional DeserializePacket(const std::string_view& in) -{ - if ((in.size() < 4) || (in[0] != '$') || (in[in.size()-3] != '#')) { - return std::nullopt; - } - std::string_view data = in.substr(1, in.size()-4); - - u8 packetChecksum = StringUtil::FromChars(in.substr(in.size()-2, 2), 16).value_or(0); - u8 computedChecksum = ComputeChecksum(data); - - if (packetChecksum == computedChecksum) { - return { data }; - } - else { - return std::nullopt; - } -} - -static std::string SerializePacket(const std::string_view& in) -{ - std::stringstream ss; - ss << '$' << in << '#' << StringUtil::StdStringFromFormat("%02x", ComputeChecksum(in)); - return ss.str(); -} - -/// List of GDB remote protocol registers for MIPS III (excluding FP). -static const std::array REGISTERS { - &CPU::g_state.regs.r[0], - &CPU::g_state.regs.r[1], - &CPU::g_state.regs.r[2], - &CPU::g_state.regs.r[3], - &CPU::g_state.regs.r[4], - &CPU::g_state.regs.r[5], - &CPU::g_state.regs.r[6], - &CPU::g_state.regs.r[7], - &CPU::g_state.regs.r[8], - &CPU::g_state.regs.r[9], - &CPU::g_state.regs.r[10], - &CPU::g_state.regs.r[11], - &CPU::g_state.regs.r[12], - &CPU::g_state.regs.r[13], - &CPU::g_state.regs.r[14], - &CPU::g_state.regs.r[15], - &CPU::g_state.regs.r[16], - &CPU::g_state.regs.r[17], - &CPU::g_state.regs.r[18], - &CPU::g_state.regs.r[19], - &CPU::g_state.regs.r[20], - &CPU::g_state.regs.r[21], - &CPU::g_state.regs.r[22], - &CPU::g_state.regs.r[23], - &CPU::g_state.regs.r[24], - &CPU::g_state.regs.r[25], - &CPU::g_state.regs.r[26], - &CPU::g_state.regs.r[27], - &CPU::g_state.regs.r[28], - &CPU::g_state.regs.r[29], - &CPU::g_state.regs.r[30], - &CPU::g_state.regs.r[31], - - &CPU::g_state.cop0_regs.sr.bits, - &CPU::g_state.regs.lo, - &CPU::g_state.regs.hi, - &CPU::g_state.cop0_regs.BadVaddr, - &CPU::g_state.cop0_regs.cause.bits, - &CPU::g_state.regs.pc, -}; - -/// Number of registers in GDB remote protocol for MIPS III. -constexpr int NUM_GDB_REGISTERS = 73; - -/// Get stop reason. -static std::optional Cmd$_questionMark(const std::string_view& data) -{ - return { "S02" }; -} - -/// Get general registers. -static std::optional Cmd$g(const std::string_view& data) -{ - std::stringstream ss; - - for (u32* reg : REGISTERS) { - // Data is in host order (little endian). - ss << StringUtil::EncodeHex(reinterpret_cast(reg), 4); - } - - // Pad with dummy data (FP registers stuff). - for (int i = 0; i < NUM_GDB_REGISTERS - static_cast(REGISTERS.size()); i++) { - ss << "00000000"; - } - - return { ss.str() }; -} - -/// Set general registers. -static std::optional Cmd$G(const std::string_view& data) -{ - if (data.size() == NUM_GDB_REGISTERS*8) { - int offset = 0; - - for (u32* reg : REGISTERS) { - // Data is in host order (little endian). - auto value = StringUtil::DecodeHex({data.data()+offset, 8}); - if (value) { - *reg = *reinterpret_cast(&(*value)[0]); - } - offset += 8; - } - } - else { - Log_ErrorPrintf("Wrong payload size for 'G' command, expected %d got %zu", NUM_GDB_REGISTERS*8, data.size()); - } - - return { "" }; -} - -/// Get memory. -static std::optional Cmd$m(const std::string_view& data) -{ - std::stringstream ss{std::string{data}}; - std::string dataAddress, dataLength; - - std::getline(ss, dataAddress, ','); - std::getline(ss, dataLength, '\0'); - - auto address = StringUtil::FromChars(dataAddress, 16); - auto length = StringUtil::FromChars(dataLength, 16); - - if (address && length) { - PhysicalMemoryAddress phys_addr = *address & CPU::PHYSICAL_MEMORY_ADDRESS_MASK; - u32 phys_length = *length; - - u8* ptr_data = GetMemoryPointer(phys_addr, phys_length); - if (ptr_data) { - return { StringUtil::EncodeHex(ptr_data, phys_length) }; - } - } - return { "E00" }; -} - -/// Set memory. -static std::optional Cmd$M(const std::string_view& data) -{ - std::stringstream ss{std::string{data}}; - std::string dataAddress, dataLength, dataPayload; - - std::getline(ss, dataAddress, ','); - std::getline(ss, dataLength, ':'); - std::getline(ss, dataPayload, '\0'); - - auto address = StringUtil::FromChars(dataAddress, 16); - auto length = StringUtil::FromChars(dataLength, 16); - auto payload = StringUtil::DecodeHex(dataPayload); - - if (address && length && payload && (payload->size() == *length)) { - u32 phys_addr = *address & CPU::PHYSICAL_MEMORY_ADDRESS_MASK; - u32 phys_length = *length; - - u8* ptr_data = GetMemoryPointer(phys_addr, phys_length); - if (ptr_data) { - memcpy(ptr_data, payload->data(), phys_length); - return { "OK" }; - } - } - - return { "E00" }; -} - -/// Remove hardware breakpoint. -static std::optional Cmd$z1(const std::string_view& data) -{ - auto address = StringUtil::FromChars(data, 16); - if (address) { - CPU::RemoveBreakpoint(*address); - return { "OK" }; - } - else { - return std::nullopt; - } -} - -/// Insert hardware breakpoint. -static std::optional Cmd$Z1(const std::string_view& data) -{ - auto address = StringUtil::FromChars(data, 16); - if (address) { - CPU::AddBreakpoint(*address, false); - return { "OK" }; - } - else { - return std::nullopt; - } -} - -static std::optional Cmd$vMustReplyEmpty(const std::string_view& data) -{ - return { "" }; -} - -static std::optional Cmd$qSupported(const std::string_view& data) -{ - return { "" }; -} - -/// List of all GDB remote protocol packets supported by us. -static const std::map(const std::string_view&)>> COMMANDS -{ - { "?", Cmd$_questionMark }, - { "g", Cmd$g }, - { "G", Cmd$G }, - { "m", Cmd$m }, - { "M", Cmd$M }, - { "z0,", Cmd$z1 }, - { "Z0,", Cmd$Z1 }, - { "z1,", Cmd$z1 }, - { "Z1,", Cmd$Z1 }, - { "vMustReplyEmpty", Cmd$vMustReplyEmpty }, - { "qSupported", Cmd$qSupported }, -}; - -bool IsPacketInterrupt(const std::string_view& data) -{ - return (data.size() >= 1) && (data[data.size()-1] == '\003'); -} - -bool IsPacketContinue(const std::string_view& data) -{ - return (data.size() >= 5) && (data.substr(data.size()-5) == "$c#63"); -} - -bool IsPacketComplete(const std::string_view& data) -{ - return ((data.size() == 1) && (data[0] == '\003')) || - ((data.size() > 3) && (*(data.end()-3) == '#')); -} - -std::string ProcessPacket(const std::string_view& data) -{ - std::string_view trimmedData = data; - - // Eat ACKs. - while (!trimmedData.empty() && (trimmedData[0] == '+' || trimmedData[0] == '-')) { - if (trimmedData[0] == '-') { - Log_ErrorPrint("Received negative ack"); - } - trimmedData = trimmedData.substr(1); - } - - // Validate packet. - auto packet = DeserializePacket(trimmedData); - if (!packet) { - Log_ErrorPrintf("Malformed packet '%*s'", static_cast(trimmedData.size()), trimmedData.data()); - return "-"; - } - - std::optional reply = { "" }; - - // Try to invoke packet command. - bool processed = false; - for (const auto& command : COMMANDS) { - if (StringUtil::StartsWith(packet->data(), command.first)) { - Log_DebugPrintf("Processing command '%s'", command.first); - - // Invoke command, remove command name from payload. - reply = command.second(packet->substr(strlen(command.first))); - processed = true; - break; - } - } - - if (!processed) { - Log_WarningPrintf("Failed to process packet '%*s'", static_cast(trimmedData.size()), trimmedData.data()); - } - return reply ? "+"+SerializePacket(*reply) : "+"; -} - -} // namespace GDBProtocol diff --git a/src/core/gdb_protocol.h b/src/core/gdb_protocol.h deleted file mode 100644 index 25737486..00000000 --- a/src/core/gdb_protocol.h +++ /dev/null @@ -1,13 +0,0 @@ -#pragma once -#include - -namespace GDBProtocol -{ - - bool IsPacketInterrupt(const std::string_view& data); - bool IsPacketContinue(const std::string_view& data); - - bool IsPacketComplete(const std::string_view& data); - std::string ProcessPacket(const std::string_view& data); - -} // namespace GDBProtocol diff --git a/src/core/settings.cpp b/src/core/settings.cpp index 2f1816f4..39f9ab42 100644 --- a/src/core/settings.cpp +++ b/src/core/settings.cpp @@ -318,8 +318,6 @@ void Settings::Load(SettingsInterface& si) debugging.show_vram = si.GetBoolValue("Debug", "ShowVRAM"); debugging.dump_cpu_to_vram_copies = si.GetBoolValue("Debug", "DumpCPUToVRAMCopies"); debugging.dump_vram_to_cpu_copies = si.GetBoolValue("Debug", "DumpVRAMToCPUCopies"); - debugging.enable_gdb_server = si.GetBoolValue("Debug", "EnableGDBServer"); - debugging.gdb_server_port = static_cast(si.GetIntValue("Debug", "GDBServerPort")); debugging.show_gpu_state = si.GetBoolValue("Debug", "ShowGPUState"); debugging.show_cdrom_state = si.GetBoolValue("Debug", "ShowCDROMState"); debugging.show_spu_state = si.GetBoolValue("Debug", "ShowSPUState"); diff --git a/src/core/settings.h b/src/core/settings.h index 72880687..7ecbe145 100644 --- a/src/core/settings.h +++ b/src/core/settings.h @@ -185,9 +185,6 @@ struct Settings bool dump_cpu_to_vram_copies = false; bool dump_vram_to_cpu_copies = false; - bool enable_gdb_server = false; - u16 gdb_server_port = 1234; - // Mutable because the imgui window can close itself. mutable bool show_gpu_state = false; mutable bool show_cdrom_state = false; diff --git a/src/libretro/common_host_interface.h b/src/libretro/common_host_interface.h deleted file mode 100644 index 23f42df6..00000000 --- a/src/libretro/common_host_interface.h +++ /dev/null @@ -1,588 +0,0 @@ -#pragma once -#include "common/bitfield.h" -#include "common/string.h" -#include "core/controller.h" -#include "core/host_interface.h" -#include -#include -#include -#include -#include -#include -#include -#include -#include - -class HostDisplayTexture; - -class GameList; -struct GameDatabaseEntry; - -class ControllerInterface; - -namespace FrontendCommon { -class SaveStateSelectorUI; - -enum class ControllerNavigationButton : u32 -{ - Activate, // A on XBox Controller, Cross on PS Controller - Cancel, // B on XBox Controller, Circle on PS Controller - LeftShoulder, // LB on XBox Controller, L1 on PS Controller - RightShoulder, // RB on XBox Controller, R1 on PS Controller - DPadLeft, - DPadRight, - DPadUp, - DPadDown, - Count -}; - -} // namespace FrontendCommon - -class CommonHostInterface : public HostInterface -{ -public: - friend ControllerInterface; - - enum : s32 - { - PER_GAME_SAVE_STATE_SLOTS = 10, - GLOBAL_SAVE_STATE_SLOTS = 10, - NUM_CONTROLLER_AUTOFIRE_BUTTONS = 4, - DEFAULT_AUTOFIRE_FREQUENCY = 2 - }; - - using HostKeyCode = s32; - using HostMouseButton = s32; - - using InputButtonHandler = std::function; - using InputAxisHandler = std::function; - using ControllerRumbleCallback = std::function; - - struct HotkeyInfo - { - String category; - String name; - String display_name; - InputButtonHandler handler; - }; - - using HotkeyInfoList = std::vector; - - struct InputProfileEntry - { - std::string name; - std::string path; - }; - using InputProfileList = std::vector; - - struct SaveStateInfo - { - std::string path; - u64 timestamp; - s32 slot; - bool global; - }; - - struct ExtendedSaveStateInfo - { - std::string path; - std::string title; - std::string game_code; - std::string media_path; - u64 timestamp; - s32 slot; - bool global; - - u32 screenshot_width; - u32 screenshot_height; - std::vector screenshot_data; - }; - - using HostInterface::SaveState; - - /// Returns the name of the frontend. - virtual const char* GetFrontendName() const = 0; - - /// Request the frontend to exit. - virtual void RequestExit() = 0; - - /// Runs an event next frame as part of the event loop. - virtual void RunLater(std::function func) = 0; - - /// Thread-safe settings access. - std::string GetStringSettingValue(const char* section, const char* key, const char* default_value = "") override; - bool GetBoolSettingValue(const char* section, const char* key, bool default_value = false) override; - int GetIntSettingValue(const char* section, const char* key, int default_value = 0) override; - float GetFloatSettingValue(const char* section, const char* key, float default_value = 0.0f) override; - std::vector GetSettingStringList(const char* section, const char* key) override; - - /// Loads new settings and applies them. - virtual void ApplySettings(bool display_osd_messages); - - /// Reloads the input map from config. Callable from controller interface. - void UpdateInputMap(); - - virtual bool IsFullscreen() const; - virtual bool SetFullscreen(bool enabled); - - virtual bool Initialize() override; - - virtual void Shutdown() override; - - virtual bool BootSystem(std::shared_ptr parameters) override; - virtual void ResetSystem() override; - virtual void DestroySystem() override; - - /// Returns the settings interface. - ALWAYS_INLINE SettingsInterface* GetSettingsInterface() const { return m_settings_interface.get(); } - ALWAYS_INLINE std::lock_guard GetSettingsLock() - { - return std::lock_guard(m_settings_mutex); - } - - /// Returns the game list. - ALWAYS_INLINE GameList* GetGameList() const { return m_game_list.get(); } - - /// Returns a list of all available hotkeys. - ALWAYS_INLINE const HotkeyInfoList& GetHotkeyInfoList() const { return m_hotkeys; } - - /// Access to current controller interface. - ALWAYS_INLINE ControllerInterface* GetControllerInterface() const { return m_controller_interface.get(); } - - /// Returns true if running in batch mode, i.e. exit after emulation. - ALWAYS_INLINE bool InBatchMode() const { return m_flags.batch_mode; } - - /// Returns true if the fullscreen UI is enabled. - ALWAYS_INLINE bool IsFullscreenUIEnabled() const { return m_fullscreen_ui_enabled; } - - /// Returns true if an undo load state exists. - ALWAYS_INLINE bool CanUndoLoadState() const { return static_cast(m_undo_load_state); } - - /// Parses command line parameters for all frontends. - bool ParseCommandLineParameters(int argc, char* argv[], std::unique_ptr* out_boot_params); - - /// Returns a path where an input profile with the specified name would be saved. - std::string GetSavePathForInputProfile(const char* name) const; - - /// Returns a list of all input profiles. first - name, second - path - InputProfileList GetInputProfileList() const; - - /// Returns the path for an input profile. - std::string GetInputProfilePath(const char* name) const; - - /// Applies the specified input profile. - bool ApplyInputProfile(const char* profile_path); - - /// Saves the current input configuration to the specified profile name. - bool SaveInputProfile(const char* profile_path); - - /// Powers off the system, optionally saving the resume state. - void PowerOffSystem(bool save_resume_state); - - /// Undoes a load state, i.e. restores the state prior to the load. - bool UndoLoadState(); - - /// Loads state from the specified filename. - bool LoadState(const char* filename); - - /// Loads the current emulation state from file. Specifying a slot of -1 loads the "resume" game state. - bool LoadState(bool global, s32 slot); - - /// Saves the current emulation state to a file. Specifying a slot of -1 saves the "resume" save state. - bool SaveState(bool global, s32 slot); - - /// Returns true if the specified file/disc image is resumable. - bool CanResumeSystemFromFile(const char* filename); - - /// Loads the resume save state for the given game. Optionally boots the game anyway if loading fails. - bool ResumeSystemFromState(const char* filename, bool boot_on_failure); - - /// Loads the most recent resume save state. This may be global or per-game. - bool ResumeSystemFromMostRecentState(); - - /// Saves the resume save state, call when shutting down. - bool SaveResumeSaveState(); - - /// Returns a list of save states for the specified game code. - std::vector GetAvailableSaveStates(const char* game_code) const; - - /// Returns save state info if present. If game_code is null or empty, assumes global state. - std::optional GetSaveStateInfo(const char* game_code, s32 slot); - - /// Returns save state info from opened save state stream. - std::optional GetExtendedSaveStateInfo(ByteStream* stream); - - /// Returns save state info if present. If game_code is null or empty, assumes global state. - std::optional GetExtendedSaveStateInfo(const char* game_code, s32 slot); - - /// Returns save state info for the undo slot, if present. - std::optional GetUndoSaveStateInfo(); - - /// Deletes save states for the specified game code. If resume is set, the resume state is deleted too. - void DeleteSaveStates(const char* game_code, bool resume); - - /// Adds OSD messages, duration is in seconds. - void AddOSDMessage(std::string message, float duration = 2.0f) override; - void AddKeyedOSDMessage(std::string key, std::string message, float duration = 2.0f) override; - void RemoveKeyedOSDMessage(std::string key) override; - void ClearOSDMessages(); - - /// async message queue bookeeping for. Should be called on UI thread. - void AcquirePendingOSDMessages(); - - /// Displays a loading screen with the logo, rendered with ImGui. Use when executing possibly-time-consuming tasks - /// such as compiling shaders when starting up. - void DisplayLoadingScreen(const char* message, int progress_min = -1, int progress_max = -1, - int progress_value = -1) override; - - /// Retrieves information about specified game from game list. - void GetGameInfo(const char* path, CDImage* image, std::string* code, std::string* title) override; - - /// Returns true if currently dumping audio. - bool IsDumpingAudio() const; - - /// Starts dumping audio to a file. If no file name is provided, one will be generated automatically. - bool StartDumpingAudio(const char* filename = nullptr); - - /// Stops dumping audio to file if it has been started. - void StopDumpingAudio(); - - /// Saves a screenshot to the specified file. IF no file name is provided, one will be generated automatically. - bool SaveScreenshot(const char* filename = nullptr, bool full_resolution = true, bool apply_aspect_ratio = true, - bool compress_on_thread = true); - - /// Loads the cheat list from the specified file. - bool LoadCheatList(const char* filename); - - /// Loads the cheat list for the current game title from the user directory. - bool LoadCheatListFromGameTitle(); - - /// Loads the cheat list for the current game code from the built-in code database. - bool LoadCheatListFromDatabase(); - - /// Saves the current cheat list to the game title's file. - bool SaveCheatList(); - - /// Saves the current cheat list to the specified file. - bool SaveCheatList(const char* filename); - - /// Deletes the cheat list, if present. - bool DeleteCheatList(); - - /// Removes all cheats from the cheat list. - void ClearCheatList(bool save_to_file); - - /// Enables/disabled the specified cheat code. - void SetCheatCodeState(u32 index, bool enabled, bool save_to_file); - - /// Immediately applies the specified cheat code. - void ApplyCheatCode(u32 index); - - /// Temporarily toggles post-processing on/off. - void TogglePostProcessing(); - - /// Reloads post processing shaders with the current configuration. - void ReloadPostProcessingShaders(); - - /// Toggle Widescreen Hack and Aspect Ratio - void ToggleWidescreen(); - - /// Swaps memory cards in slot 1/2. - void SwapMemoryCards(); - - /// Parses a fullscreen mode into its components (width * height @ refresh hz) - static bool ParseFullscreenMode(const std::string_view& mode, u32* width, u32* height, float* refresh_rate); - - /// Converts a fullscreen mode to a string. - static std::string GetFullscreenModeString(u32 width, u32 height, float refresh_rate); - - /// Returns true if the state should be saved on shutdown. - bool ShouldSaveResumeState() const; - - /// Returns true if fast forwarding or slow motion is currently active. - bool IsRunningAtNonStandardSpeed() const; - - /// Requests the specified size for the render window. Not guaranteed to succeed (e.g. if in fullscreen). - virtual bool RequestRenderWindowSize(s32 new_window_width, s32 new_window_height); - - /// Requests a resize to a multiple of the render window size. - bool RequestRenderWindowScale(float scale); - - /// Returns a pointer to the top-level window, needed by some controller interfaces. - virtual void* GetTopLevelWindowHandle() const; - - /// Called when achievements data is loaded. - virtual void OnAchievementsRefreshed(); - - /// Opens a file in the DuckStation "package". - /// This is the APK for Android builds, or the program directory for standalone builds. - virtual std::unique_ptr OpenPackageFile(const char* path, u32 flags) override; - - /// Returns true if the fullscreen UI is intercepting controller input. - bool IsControllerNavigationActive() const; - - /// Controller navigation, used by fullscreen mode. - void SetControllerNavigationButtonState(FrontendCommon::ControllerNavigationButton button, bool pressed); - - /// Alters autofire state for controllers (activates/deactivates). - void SetControllerAutoFireSlotState(u32 controller_index, u32 slot_index, bool active); - - /// Toggles fast forward state. - bool IsFastForwardEnabled() const { return m_fast_forward_enabled; } - void SetFastForwardEnabled(bool enabled); - - /// Toggles turbo state. - bool IsTurboEnabled() const { return m_turbo_enabled; } - void SetTurboEnabled(bool enabled); - - /// Toggles rewind state. - void SetRewindState(bool enabled); - - /// ImGui window drawing. - void DrawStatsOverlay(); - void DrawEnhancementsOverlay(); - void DrawOSDMessages(); - void DrawDebugWindows(); - - /// Returns true if features such as save states should be disabled. - bool IsCheevosChallengeModeActive() const; - -protected: - enum : u32 - { - SETTINGS_VERSION = 3 - }; - - struct OSDMessage - { - std::string key; - std::string text; - Common::Timer time; - float duration; - }; - - CommonHostInterface(); - ~CommonHostInterface(); - - /// Registers frontend-specific hotkeys. - virtual void RegisterHotkeys(); - - /// Executes per-frame tasks such as controller polling. - virtual void PollAndUpdate(); - - /// Saves the undo load state, so it can be restored. - bool SaveUndoLoadState(); - - virtual std::unique_ptr CreateAudioStream(AudioBackend backend) override; - virtual s32 GetAudioOutputVolume() const override; - virtual void UpdateControllerInterface(); - - virtual void OnSystemCreated() override; - virtual void OnSystemPaused(bool paused) override; - virtual void OnSystemDestroyed() override; - virtual void OnRunningGameChanged(const std::string& path, CDImage* image, const std::string& game_code, - const std::string& game_title) override; - virtual void OnControllerTypeChanged(u32 slot) override; - - virtual std::optional GetHostKeyCode(const std::string_view key_code) const; - - virtual bool AddButtonToInputMap(const std::string& binding, const std::string_view& device, - const std::string_view& button, InputButtonHandler handler); - virtual bool AddAxisToInputMap(const std::string& binding, const std::string_view& device, - const std::string_view& axis, Controller::AxisType axis_type, - InputAxisHandler handler); - virtual bool AddRumbleToInputMap(const std::string& binding, u32 controller_index, u32 num_motors); - - void RegisterHotkey(String category, String name, String display_name, InputButtonHandler handler); - bool HandleHostKeyEvent(HostKeyCode code, HostKeyCode modifiers, bool pressed); - bool HandleHostMouseEvent(HostMouseButton button, bool pressed); - virtual void UpdateInputMap(SettingsInterface& si); - void ClearInputMap(); - - /// Updates controller metastate, including turbo and rumble. - void UpdateControllerMetaState(); - - void AddControllerRumble(u32 controller_index, u32 num_motors, ControllerRumbleCallback callback); - void UpdateControllerRumble(); - void StopControllerRumble(); - - void SetControllerAutoFireState(u32 controller_index, s32 button_code, bool active); - void StopControllerAutoFire(); - void UpdateControllerAutoFire(); - - /// Returns the path to a save state file. Specifying an index of -1 is the "resume" save state. - std::string GetGameSaveStateFileName(const char* game_code, s32 slot) const; - - /// Returns the path to a save state file. Specifying an index of -1 is the "resume" save state. - std::string GetGlobalSaveStateFileName(s32 slot) const; - - /// Moves the current save state file to a backup name, if it exists. - void RenameCurrentSaveStateToBackup(const char* filename); - - /// Sets the base path for the user directory. Can be overridden by platform/frontend/command line. - virtual void SetUserDirectory(); - - /// Updates logging settings. - virtual void UpdateLogSettings(LOGLEVEL level, const char* filter, bool log_to_console, bool log_to_debug, - bool log_to_window, bool log_to_file); - - /// Returns the path of the settings file. - std::string GetSettingsFileName() const; - - /// Returns the most recent resume save state. - std::string GetMostRecentResumeSaveStatePath() const; - - /// Returns the path to the cheat file for the specified game title. - std::string GetCheatFileName() const; - - /// Restores all settings to defaults. - virtual void SetDefaultSettings(SettingsInterface& si) override; - - /// Resets known settings to default. - virtual void SetDefaultSettings(); - - /// Loads settings to m_settings and any frontend-specific parameters. - virtual void LoadSettings(SettingsInterface& si) override; - - /// Saves current settings variables to ini. - virtual void SaveSettings(SettingsInterface& si) override; - - /// Checks and fixes up any incompatible settings. - virtual void FixIncompatibleSettings(bool display_osd_messages) override; - - /// Checks for settings changes, std::move() the old settings away for comparing beforehand. - virtual void CheckForSettingsChanges(const Settings& old_settings) override; - - /// Increases timer resolution when supported by the host OS. - void SetTimerResolutionIncreased(bool enabled); - - void UpdateSpeedLimiterState(); - - void RecreateSystem() override; - void OnHostDisplayResized() override; - - void ApplyGameSettings(bool display_osd_messages); - void ApplyRendererFromGameSettings(const std::string& boot_filename); - void ApplyControllerCompatibilitySettings(u64 controller_mask, bool display_osd_messages); - - bool CreateHostDisplayResources(); - void ReleaseHostDisplayResources(); - - virtual void DrawImGuiWindows(); - - void DoFrameStep(); - void DoToggleCheats(); - - std::unique_ptr m_settings_interface; - std::recursive_mutex m_settings_mutex; - - std::unique_ptr m_game_list; - - std::unique_ptr m_controller_interface; - - std::unique_ptr m_logo_texture; - - std::deque m_osd_active_messages; // accessed only by GUI/OSD thread (no lock reqs) - std::deque m_osd_posted_messages; // written to by multiple threads. - std::mutex m_osd_messages_lock; - - bool m_fullscreen_ui_enabled = false; - bool m_frame_step_request = false; - bool m_fast_forward_enabled = false; - bool m_turbo_enabled = false; - bool m_throttler_enabled = true; - bool m_display_all_frames = true; - - union - { - u8 bits; - - // running in batch mode? i.e. exit after stopping emulation - BitField batch_mode; - - // disable controller interface (buggy devices with SDL) - BitField disable_controller_interface; - - // starting fullscreen (outside of boot options) - BitField start_fullscreen; - - // force fullscreen UI enabled (nogui) - BitField force_fullscreen_ui; - } m_flags = {}; - -private: - void LoadSettings(); - void InitializeUserDirectory(); - void RegisterGeneralHotkeys(); - void RegisterSystemHotkeys(); - void RegisterGraphicsHotkeys(); - void RegisterSaveStateHotkeys(); - void RegisterAudioHotkeys(); - void FindInputProfiles(const std::string& base_path, InputProfileList* out_list) const; - void UpdateControllerInputMap(SettingsInterface& si); - bool UpdateControllerInputMapFromGameSettings(); - void UpdateHotkeyInputMap(SettingsInterface& si); - void ClearAllControllerBindings(); - void CreateImGuiContext(); - -#ifdef WITH_DISCORD_PRESENCE - void SetDiscordPresenceEnabled(bool enabled); - void InitializeDiscordPresence(); - void ShutdownDiscordPresence(); - void UpdateDiscordPresence(bool rich_presence_only); - void PollDiscordPresence(); -#endif - -#ifdef WITH_CHEEVOS - void UpdateCheevosActive(); -#endif - - HotkeyInfoList m_hotkeys; - - std::unique_ptr m_save_state_selector_ui; - - // input key maps - std::map m_keyboard_input_handlers; - std::map m_mouse_input_handlers; - - // controller vibration motors/rumble - struct ControllerRumbleState - { - enum : u32 - { - MAX_MOTORS = 2 - }; - - u32 controller_index; - u32 num_motors; - std::array last_strength; - u64 last_update_time; - ControllerRumbleCallback update_callback; - }; - std::vector m_controller_vibration_motors; - - // controller turbo buttons - struct ControllerAutoFireState - { - u32 controller_index; - u32 slot_index; - s32 button_code; - u8 frequency; - u8 countdown; - bool active; - bool state; - }; - std::vector m_controller_autofires; - - // temporary save state, created when loading, used to undo load state - std::unique_ptr m_undo_load_state; - -#ifdef WITH_DISCORD_PRESENCE - // discord rich presence - bool m_discord_presence_enabled = false; - bool m_discord_presence_active = false; -#ifdef WITH_CHEEVOS - std::string m_discord_presence_cheevos_string; -#endif -#endif -}; diff --git a/src/libretro/duckstation-libretro.vcxproj b/src/libretro/duckstation-libretro.vcxproj deleted file mode 100644 index ad3205ce..00000000 --- a/src/libretro/duckstation-libretro.vcxproj +++ /dev/null @@ -1,582 +0,0 @@ - - - - - DebugFast - ARM64 - - - DebugFast - Win32 - - - DebugFast - x64 - - - Debug - ARM64 - - - Debug - Win32 - - - Debug - x64 - - - ReleaseLTCG - ARM64 - - - ReleaseLTCG - Win32 - - - ReleaseLTCG - x64 - - - Release - ARM64 - - - Release - Win32 - - - Release - x64 - - - - - {9c8ddeb0-2b8f-4f5f-ba86-127cdf27f035} - - - {ee054e08-3799-4a59-a422-18259c105ffd} - - - {868b98c8-65a1-494b-8346-250a73a48c0a} - - - {6245dec8-d2da-47ee-a373-cbd6fcf3ece6} - - - {075ced82-6a20-46df-94c7-9624ac9ddbeb} - - - - - - - - - - - - - - - - - - - - - - - - - {9D206548-DE8F-4D9D-A561-C7E5CD7A20DF} - Win32Proj - duckstation-libretro - 10.0 - - - - DynamicLibrary - true - v142 - NotSet - - - DynamicLibrary - true - v142 - NotSet - - - DynamicLibrary - true - v142 - NotSet - - - DynamicLibrary - true - v142 - NotSet - - - DynamicLibrary - true - v142 - NotSet - - - DynamicLibrary - true - v142 - NotSet - - - DynamicLibrary - false - v142 - true - NotSet - false - - - DynamicLibrary - false - v142 - true - NotSet - false - - - DynamicLibrary - false - v142 - true - NotSet - false - - - DynamicLibrary - false - v142 - true - NotSet - false - - - DynamicLibrary - false - v142 - true - NotSet - false - - - DynamicLibrary - false - v142 - true - NotSet - false - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - true - $(SolutionDir)bin\$(Platform)\ - $(SolutionDir)build\$(ProjectName)-$(Platform)-$(Configuration)\ - $(ProjectName)-$(Platform)-$(Configuration) - - - $(SolutionDir)build\$(ProjectName)-$(Platform)-$(Configuration)\ - $(ProjectName)-$(Platform)-$(Configuration) - true - $(SolutionDir)bin\$(Platform)\ - - - $(SolutionDir)build\$(ProjectName)-$(Platform)-$(Configuration)\ - $(ProjectName)-$(Platform)-$(Configuration) - true - $(SolutionDir)bin\$(Platform)\ - - - true - $(SolutionDir)bin\$(Platform)\ - $(SolutionDir)build\$(ProjectName)-$(Platform)-$(Configuration)\ - $(ProjectName)-$(Platform)-$(Configuration) - - - $(SolutionDir)build\$(ProjectName)-$(Platform)-$(Configuration)\ - $(ProjectName)-$(Platform)-$(Configuration) - true - $(SolutionDir)bin\$(Platform)\ - - - $(SolutionDir)build\$(ProjectName)-$(Platform)-$(Configuration)\ - $(ProjectName)-$(Platform)-$(Configuration) - true - $(SolutionDir)bin\$(Platform)\ - - - $(SolutionDir)bin\$(Platform)\ - $(SolutionDir)build\$(ProjectName)-$(Platform)-$(Configuration)\ - $(ProjectName)-$(Platform)-$(Configuration) - - - false - $(SolutionDir)bin\$(Platform)\ - $(SolutionDir)build\$(ProjectName)-$(Platform)-$(Configuration)\ - $(ProjectName)-$(Platform)-$(Configuration) - - - $(SolutionDir)build\$(ProjectName)-$(Platform)-$(Configuration)\ - $(ProjectName)-$(Platform)-$(Configuration) - $(SolutionDir)bin\$(Platform)\ - - - $(SolutionDir)build\$(ProjectName)-$(Platform)-$(Configuration)\ - $(ProjectName)-$(Platform)-$(Configuration) - $(SolutionDir)bin\$(Platform)\ - - - $(SolutionDir)build\$(ProjectName)-$(Platform)-$(Configuration)\ - $(ProjectName)-$(Platform)-$(Configuration) - false - $(SolutionDir)bin\$(Platform)\ - - - $(SolutionDir)build\$(ProjectName)-$(Platform)-$(Configuration)\ - $(ProjectName)-$(Platform)-$(Configuration) - false - $(SolutionDir)bin\$(Platform)\ - - - - - - Level4 - Disabled - _CRT_SECURE_NO_WARNINGS;WIN32;_DEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) - true - ProgramDatabase - $(SolutionDir)dep\imgui\include;$(SolutionDir)dep\glad\include;$(SolutionDir)dep\vulkan-loader\include;$(SolutionDir)dep\libretro-common\include;$(SolutionDir)src;%(AdditionalIncludeDirectories) - true - false - stdcpp17 - true - /Zo /utf-8 %(AdditionalOptions) - - - Windows - true - d3d11.lib;dxgi.lib;%(AdditionalDependencies) - - - - - - - Level4 - Disabled - _CRT_SECURE_NO_WARNINGS;WIN32;_DEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) - true - ProgramDatabase - $(SolutionDir)dep\imgui\include;$(SolutionDir)dep\glad\include;$(SolutionDir)dep\vulkan-loader\include;$(SolutionDir)dep\libretro-common\include;$(SolutionDir)src;%(AdditionalIncludeDirectories) - true - false - stdcpp17 - true - /Zo /utf-8 %(AdditionalOptions) - - - Windows - true - d3d11.lib;dxgi.lib;%(AdditionalDependencies) - - - - - - - Level4 - Disabled - _CRT_SECURE_NO_WARNINGS;WIN32;_DEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) - true - ProgramDatabase - $(SolutionDir)dep\imgui\include;$(SolutionDir)dep\glad\include;$(SolutionDir)dep\vulkan-loader\include;$(SolutionDir)dep\libretro-common\include;$(SolutionDir)src;%(AdditionalIncludeDirectories) - true - false - stdcpp17 - true - /Zo /utf-8 %(AdditionalOptions) - - - Windows - true - d3d11.lib;dxgi.lib;%(AdditionalDependencies) - - - - - - - Level4 - Disabled - _ITERATOR_DEBUG_LEVEL=1;_CRT_SECURE_NO_WARNINGS;WIN32;_DEBUGFAST;_DEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) - true - ProgramDatabase - $(SolutionDir)dep\imgui\include;$(SolutionDir)dep\glad\include;$(SolutionDir)dep\vulkan-loader\include;$(SolutionDir)dep\libretro-common\include;$(SolutionDir)src;%(AdditionalIncludeDirectories) - Default - true - false - stdcpp17 - false - OnlyExplicitInline - true - /Zo /utf-8 %(AdditionalOptions) - - - Windows - true - d3d11.lib;dxgi.lib;%(AdditionalDependencies) - - - - - - - Level4 - Disabled - _ITERATOR_DEBUG_LEVEL=1;_CRT_SECURE_NO_WARNINGS;WIN32;_DEBUGFAST;_DEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) - true - ProgramDatabase - $(SolutionDir)dep\imgui\include;$(SolutionDir)dep\glad\include;$(SolutionDir)dep\vulkan-loader\include;$(SolutionDir)dep\libretro-common\include;$(SolutionDir)src;%(AdditionalIncludeDirectories) - Default - true - false - stdcpp17 - false - OnlyExplicitInline - true - /Zo /utf-8 %(AdditionalOptions) - - - Windows - true - d3d11.lib;dxgi.lib;%(AdditionalDependencies) - - - - - - - Level4 - Disabled - _ITERATOR_DEBUG_LEVEL=1;_CRT_SECURE_NO_WARNINGS;WIN32;_DEBUGFAST;_DEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) - true - ProgramDatabase - $(SolutionDir)dep\imgui\include;$(SolutionDir)dep\glad\include;$(SolutionDir)dep\vulkan-loader\include;$(SolutionDir)dep\libretro-common\include;$(SolutionDir)src;%(AdditionalIncludeDirectories) - Default - true - false - stdcpp17 - false - OnlyExplicitInline - true - /Zo /utf-8 %(AdditionalOptions) - - - Windows - true - d3d11.lib;dxgi.lib;%(AdditionalDependencies) - - - - - Level4 - - - MaxSpeed - true - _CRT_SECURE_NO_WARNINGS;WIN32;NDEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) - $(SolutionDir)dep\imgui\include;$(SolutionDir)dep\glad\include;$(SolutionDir)dep\vulkan-loader\include;$(SolutionDir)dep\libretro-common\include;$(SolutionDir)src;%(AdditionalIncludeDirectories) - true - false - stdcpp17 - true - /Zo /utf-8 %(AdditionalOptions) - - - Windows - true - true - true - d3d11.lib;dxgi.lib;%(AdditionalDependencies) - Default - - - - - Level4 - - - MaxSpeed - true - _CRT_SECURE_NO_WARNINGS;WIN32;NDEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) - $(SolutionDir)dep\imgui\include;$(SolutionDir)dep\glad\include;$(SolutionDir)dep\vulkan-loader\include;$(SolutionDir)dep\libretro-common\include;$(SolutionDir)src;%(AdditionalIncludeDirectories) - true - true - stdcpp17 - true - true - /Zo /utf-8 %(AdditionalOptions) - - - Windows - true - true - true - d3d11.lib;dxgi.lib;%(AdditionalDependencies) - UseLinkTimeCodeGeneration - - - - - Level4 - - - MaxSpeed - true - _CRT_SECURE_NO_WARNINGS;WIN32;NDEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) - $(SolutionDir)dep\imgui\include;$(SolutionDir)dep\glad\include;$(SolutionDir)dep\vulkan-loader\include;$(SolutionDir)dep\libretro-common\include;$(SolutionDir)src;%(AdditionalIncludeDirectories) - true - false - stdcpp17 - true - /Zo /utf-8 %(AdditionalOptions) - - - Windows - true - true - true - d3d11.lib;dxgi.lib;%(AdditionalDependencies) - Default - - - - - Level4 - - - MaxSpeed - true - _CRT_SECURE_NO_WARNINGS;WIN32;NDEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) - $(SolutionDir)dep\imgui\include;$(SolutionDir)dep\glad\include;$(SolutionDir)dep\vulkan-loader\include;$(SolutionDir)dep\libretro-common\include;$(SolutionDir)src;%(AdditionalIncludeDirectories) - true - false - stdcpp17 - true - /Zo /utf-8 %(AdditionalOptions) - - - Windows - true - true - true - d3d11.lib;dxgi.lib;%(AdditionalDependencies) - Default - - - - - Level4 - - - MaxSpeed - true - _CRT_SECURE_NO_WARNINGS;WIN32;NDEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) - $(SolutionDir)dep\imgui\include;$(SolutionDir)dep\glad\include;$(SolutionDir)dep\vulkan-loader\include;$(SolutionDir)dep\libretro-common\include;$(SolutionDir)src;%(AdditionalIncludeDirectories) - true - true - stdcpp17 - true - true - /Zo /utf-8 %(AdditionalOptions) - - - Windows - true - true - true - d3d11.lib;dxgi.lib;%(AdditionalDependencies) - UseLinkTimeCodeGeneration - - - - - Level4 - - - MaxSpeed - true - _CRT_SECURE_NO_WARNINGS;WIN32;NDEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) - $(SolutionDir)dep\imgui\include;$(SolutionDir)dep\glad\include;$(SolutionDir)dep\vulkan-loader\include;$(SolutionDir)dep\libretro-common\include;$(SolutionDir)src;%(AdditionalIncludeDirectories) - true - true - stdcpp17 - true - true - /Zo /utf-8 %(AdditionalOptions) - - - Windows - true - true - true - d3d11.lib;dxgi.lib;%(AdditionalDependencies) - UseLinkTimeCodeGeneration - - - - - - \ No newline at end of file diff --git a/src/libretro/duckstation-libretro.vcxproj.filters b/src/libretro/duckstation-libretro.vcxproj.filters deleted file mode 100644 index e1941f70..00000000 --- a/src/libretro/duckstation-libretro.vcxproj.filters +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/scmversion/scmversion.vcxproj b/src/scmversion/scmversion.vcxproj deleted file mode 100644 index f1942e47..00000000 --- a/src/scmversion/scmversion.vcxproj +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - - - - - - - - - - - - {075CED82-6A20-46DF-94C7-9624AC9DDBEB} - true - - - - - - PreBuildEvent - - - - - - - cmd /k "$(ProjectDir)gen_scmversion.bat" - - - Checking whether scmversion.cpp needs updating... - - - $(ProjectDir)scmversion.cpp - - - - - \ No newline at end of file diff --git a/src/scmversion/scmversion.vcxproj.filters b/src/scmversion/scmversion.vcxproj.filters deleted file mode 100644 index 782f726b..00000000 --- a/src/scmversion/scmversion.vcxproj.filters +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file