Rename to DuckStation

This commit is contained in:
Connor McLaughlin committed 2019-10-04 13:54:09 +10:00
1 parent 92ec5a0a14
commit bddbab9d60
61 files changed
+43 -54

No files matched your search

+4 -13
View File
@@ -1,10 +1,5 @@
cmake_minimum_required(VERSION 3.10) cmake_minimum_required(VERSION 3.10)
project(pse C CXX) project(duckstation C CXX)
# Options
option(ENABLE_OPENGL "Enables OpenGL support in renderer" ON)
option(ENABLE_SDL_FRONTEND "Compiles the SDL frontend" ON)
# Common include/library directories on Windows. # Common include/library directories on Windows.
if(WIN32) if(WIN32)
@@ -22,14 +17,10 @@ if(WIN32)
endif() endif()
endif() endif()
if(ENABLE_SDL_FRONTEND) set(SDL2_INCLUDE_DIRS "${CMAKE_CURRENT_SOURCE_DIR}/dep/msvc/include/SDL")
set(SDL2_INCLUDE_DIRS "${CMAKE_CURRENT_SOURCE_DIR}/dep/msvc/include/SDL") set(SDL2_LIBRARIES "SDL2")
set(SDL2_LIBRARIES "SDL2")
endif()
else() else()
if(ENABLE_SDL_FRONTEND) find_package(SDL2 REQUIRED)
find_package(SDL2 REQUIRED)
endif()
endif() endif()
+2 -2
View File
@@ -13,9 +13,9 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libsamplerate", "dep\libsam
EndProject EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "common", "src\common\common.vcxproj", "{EE054E08-3799-4A59-A422-18259C105FFD}" Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "common", "src\common\common.vcxproj", "{EE054E08-3799-4A59-A422-18259C105FFD}"
EndProject EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "pse", "src\pse\pse.vcxproj", "{868B98C8-65A1-494B-8346-250A73A48C0A}" Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "core", "src\core\core.vcxproj", "{868B98C8-65A1-494B-8346-250A73A48C0A}"
EndProject EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "pse-sdl", "src\pse-sdl\pse-sdl.vcxproj", "{DAA8F93D-9C17-4DE2-BD0B-57891E0FF0D9}" Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "duckstation", "src\duckstation\duckstation.vcxproj", "{DAA8F93D-9C17-4DE2-BD0B-57891E0FF0D9}"
EndProject EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "YBaseLib", "dep\YBaseLib\Source\YBaseLib.vcxproj", "{B56CE698-7300-4FA5-9609-942F1D05C5A2}" Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "YBaseLib", "dep\YBaseLib\Source\YBaseLib.vcxproj", "{B56CE698-7300-4FA5-9609-942F1D05C5A2}"
EndProject EndProject
+2 -4
View File
@@ -1,5 +1,3 @@
add_subdirectory(common) add_subdirectory(common)
add_subdirectory(pse) add_subdirectory(core)
if(ENABLE_SDL_FRONTEND) add_subdirectory(duckstation)
add_subdirectory(pse-sdl)
endif()
+16
View File
@@ -0,0 +1,16 @@
add_library(core
cpu_bus.cpp
cpu_bus.h
cpu_bus.inl
cpu_core.cpp
cpu_core.h
cpu_core.inl
system.cpp
system.h
types.h
)
target_include_directories(core PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/..")
target_include_directories(core PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/..")
target_link_libraries(core Threads::Threads YBaseLib common)
File renamed without changes.
View File
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -472,5 +472,6 @@
<!-- ================ UNDUPOBJ ================ --> <!-- ================ UNDUPOBJ ================ -->
<PropertyGroup Label="Globals"> <PropertyGroup Label="Globals">
<IgnoreWarnCompileDuplicatedFilename>true</IgnoreWarnCompileDuplicatedFilename> <IgnoreWarnCompileDuplicatedFilename>true</IgnoreWarnCompileDuplicatedFilename>
<ProjectName>core</ProjectName>
</PropertyGroup> </PropertyGroup>
</Project> </Project>
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
View File
File renamed without changes.
File renamed without changes.
View File
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
View File
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
View File
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
View File
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
View File
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
+11
View File
@@ -0,0 +1,11 @@
set(SRCS
main.cpp
sdl_audio_mixer.cpp
sdl_audio_mixer.h
sdl_interface.cpp
sdl_interface.h
)
add_executable(duckstation ${SRCS})
target_include_directories(duckstation PRIVATE "${SDL2_INCLUDE_DIRS}")
target_link_libraries(duckstation core imgui "${SDL2_LIBRARIES}")
@@ -44,7 +44,7 @@
<ProjectReference Include="..\common\common.vcxproj"> <ProjectReference Include="..\common\common.vcxproj">
<Project>{ee054e08-3799-4a59-a422-18259c105ffd}</Project> <Project>{ee054e08-3799-4a59-a422-18259c105ffd}</Project>
</ProjectReference> </ProjectReference>
<ProjectReference Include="..\pse\pse.vcxproj"> <ProjectReference Include="..\core\core.vcxproj">
<Project>{868b98c8-65a1-494b-8346-250a73a48c0a}</Project> <Project>{868b98c8-65a1-494b-8346-250a73a48c0a}</Project>
</ProjectReference> </ProjectReference>
</ItemGroup> </ItemGroup>
@@ -60,7 +60,7 @@
<PropertyGroup Label="Globals"> <PropertyGroup Label="Globals">
<ProjectGuid>{DAA8F93D-9C17-4DE2-BD0B-57891E0FF0D9}</ProjectGuid> <ProjectGuid>{DAA8F93D-9C17-4DE2-BD0B-57891E0FF0D9}</ProjectGuid>
<Keyword>Win32Proj</Keyword> <Keyword>Win32Proj</Keyword>
<RootNamespace>pse-sdl</RootNamespace> <RootNamespace>duckstation</RootNamespace>
<WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion> <WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
</PropertyGroup> </PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" /> <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
@@ -1,8 +1,7 @@
#include "YBaseLib/Assert.h" #include "YBaseLib/Assert.h"
#include "YBaseLib/Log.h" #include "YBaseLib/Log.h"
#include "YBaseLib/StringConverter.h" #include "YBaseLib/StringConverter.h"
#include "pse/system.h" #include "core/system.h"
#include "pse/types.h"
#include "sdl_interface.h" #include "sdl_interface.h"
#include <SDL.h> #include <SDL.h>
#include <cstdio> #include <cstdio>
File renamed without changes.
File renamed without changes.
@@ -5,9 +5,9 @@
#include "imgui.h" #include "imgui.h"
#include "imgui_impl_opengl3.h" #include "imgui_impl_opengl3.h"
#include "imgui_impl_sdl.h" #include "imgui_impl_sdl.h"
#include "pse/digital_controller.h" #include "core/digital_controller.h"
#include "pse/memory_card.h" #include "core/memory_card.h"
#include "pse/system.h" #include "core/system.h"
#include <cinttypes> #include <cinttypes>
#include <glad.h> #include <glad.h>
Log_SetChannel(SDLInterface); Log_SetChannel(SDLInterface);
@@ -3,7 +3,7 @@
#include "YBaseLib/Timer.h" #include "YBaseLib/Timer.h"
#include "common/gl_program.h" #include "common/gl_program.h"
#include "common/gl_texture.h" #include "common/gl_texture.h"
#include "pse/host_interface.h" #include "core/host_interface.h"
#include <SDL.h> #include <SDL.h>
#include <array> #include <array>
#include <deque> #include <deque>
-11
View File
@@ -1,11 +0,0 @@
set(SRCS
main.cpp
sdl_audio_mixer.cpp
sdl_audio_mixer.h
sdl_interface.cpp
sdl_interface.h
)
add_executable(pse-sdl ${SRCS})
target_include_directories(pse-sdl PRIVATE "${SDL2_INCLUDE_DIRS}")
target_link_libraries(pse-sdl pse imgui "${SDL2_LIBRARIES}")
-16
View File
@@ -1,16 +0,0 @@
add_library(pse
cpu_bus.cpp
cpu_bus.h
cpu_bus.inl
cpu_core.cpp
cpu_core.h
cpu_core.inl
system.cpp
system.h
types.h
)
target_include_directories(pse PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/..")
target_include_directories(pse PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/..")
target_link_libraries(pse Threads::Threads YBaseLib common)