From 1395fd49391839986e985f16d569b604744ed388 Mon Sep 17 00:00:00 2001 From: georgemoralis Date: Fri, 29 Sep 2023 08:40:30 +0300 Subject: [PATCH] v0.0.1 release files --- CMakeLists.txt | 2 +- documents/changelog.txt | 3 +++ documents/readme.txt | 38 ++++++++++++++++++++++++++++++++++++++ src/emulator.cpp | 5 +++-- src/version.h | 7 +++++++ 5 files changed, 52 insertions(+), 3 deletions(-) create mode 100644 documents/changelog.txt create mode 100644 documents/readme.txt create mode 100644 src/version.h diff --git a/CMakeLists.txt b/CMakeLists.txt index f036be06..b07d8996 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -55,7 +55,7 @@ add_executable(shadps4 src/Core/PS4/HLE/Kernel/cpu_management.cpp src/Core/PS4/HLE/Kernel/cpu_management.h - "src/Util/Singleton.h" "src/Util/Disassembler.cpp" "src/Util/Disassembler.h" "src/Core/PS4/Util/aerolib.h" "src/Core/PS4/Loader/SymbolsResolver.h" "src/Core/PS4/Loader/SymbolsResolver.cpp" "src/Core/PS4/HLE/Libs.cpp" "src/Core/PS4/HLE/Libs.h" "src/Core/PS4/HLE/LibC.cpp" "src/Core/PS4/HLE/LibC.h" "src/Lib/Timer.cpp" "src/Lib/Timer.h" "src/Core/PS4/HLE/LibKernel.cpp" "src/Core/PS4/HLE/LibKernel.h" "src/Core/PS4/HLE/LibSceGnmDriver.cpp" "src/Core/PS4/HLE/LibSceGnmDriver.h" "src/Core/PS4/HLE/Kernel/ThreadManagement.cpp" "src/Core/PS4/HLE/Kernel/ThreadManagement.h" "src/Core/PS4/HLE/ErrorCodes.h" "src/debug.h" "src/Core/PS4/HLE/Kernel/memory_management.cpp" "src/Core/PS4/HLE/Kernel/memory_management.h" "src/Core/PS4/GPU/gpu_memory.cpp" "src/Core/PS4/GPU/gpu_memory.h" "src/emulator.cpp" "src/emulator.h" "src/Core/PS4/HLE/Kernel/Objects/event_queue.h" "src/Core/PS4/HLE/Kernel/Objects/event_queue.cpp" "src/Core/PS4/HLE/Graphics/Objects/video_out_ctx.cpp" "src/Core/PS4/HLE/Graphics/Objects/video_out_ctx.h" "src/Core/PS4/HLE/Graphics/graphics_ctx.h" "src/vulkan_util.cpp" "src/vulkan_util.h" "src/Core/PS4/GPU/video_out_buffer.cpp" "src/Core/PS4/GPU/video_out_buffer.h" "src/Core/PS4/HLE/Graphics/graphics_render.cpp" "src/Core/PS4/HLE/Graphics/graphics_render.h" "src/Core/PS4/GPU/tile_manager.cpp" "src/Core/PS4/GPU/tile_manager.h") + "src/Util/Singleton.h" "src/Util/Disassembler.cpp" "src/Util/Disassembler.h" "src/Core/PS4/Util/aerolib.h" "src/Core/PS4/Loader/SymbolsResolver.h" "src/Core/PS4/Loader/SymbolsResolver.cpp" "src/Core/PS4/HLE/Libs.cpp" "src/Core/PS4/HLE/Libs.h" "src/Core/PS4/HLE/LibC.cpp" "src/Core/PS4/HLE/LibC.h" "src/Lib/Timer.cpp" "src/Lib/Timer.h" "src/Core/PS4/HLE/LibKernel.cpp" "src/Core/PS4/HLE/LibKernel.h" "src/Core/PS4/HLE/LibSceGnmDriver.cpp" "src/Core/PS4/HLE/LibSceGnmDriver.h" "src/Core/PS4/HLE/Kernel/ThreadManagement.cpp" "src/Core/PS4/HLE/Kernel/ThreadManagement.h" "src/Core/PS4/HLE/ErrorCodes.h" "src/debug.h" "src/Core/PS4/HLE/Kernel/memory_management.cpp" "src/Core/PS4/HLE/Kernel/memory_management.h" "src/Core/PS4/GPU/gpu_memory.cpp" "src/Core/PS4/GPU/gpu_memory.h" "src/emulator.cpp" "src/emulator.h" "src/Core/PS4/HLE/Kernel/Objects/event_queue.h" "src/Core/PS4/HLE/Kernel/Objects/event_queue.cpp" "src/Core/PS4/HLE/Graphics/Objects/video_out_ctx.cpp" "src/Core/PS4/HLE/Graphics/Objects/video_out_ctx.h" "src/Core/PS4/HLE/Graphics/graphics_ctx.h" "src/vulkan_util.cpp" "src/vulkan_util.h" "src/Core/PS4/GPU/video_out_buffer.cpp" "src/Core/PS4/GPU/video_out_buffer.h" "src/Core/PS4/HLE/Graphics/graphics_render.cpp" "src/Core/PS4/HLE/Graphics/graphics_render.h" "src/Core/PS4/GPU/tile_manager.cpp" "src/Core/PS4/GPU/tile_manager.h" "src/version.h") find_package(OpenGL REQUIRED) target_link_libraries(shadps4 PUBLIC fmt mincore spdlog IMGUI SDL3-shared ${OPENGL_LIBRARY} vulkan-1 spirv-tools-opt spirv-tools) diff --git a/documents/changelog.txt b/documents/changelog.txt new file mode 100644 index 00000000..57ee6d59 --- /dev/null +++ b/documents/changelog.txt @@ -0,0 +1,3 @@ +v0.0.1 29/09/2023 +================= +First public release . Everything is new \ No newline at end of file diff --git a/documents/readme.txt b/documents/readme.txt new file mode 100644 index 00000000..2f853010 --- /dev/null +++ b/documents/readme.txt @@ -0,0 +1,38 @@ +shadps4 - An ps4 emulator +========================= + +1. Intro +2. Current status +3. Contributors +4. Greetings + +1.Intro +======= +shadPS4 is a ps4 emulator for windows. Although atm it can't run a lot of stuff , it can emulate perfectly videoout_basic demo from ps4 sdk. Since developing focused on that , don't expect to run anything else atm (ok maybe if you are extreme lucky , you might find something else that works) + +2.Current status +================ +shadps4 is a HLE emulator . Currently on a small amount of functions is emulated , which is one of the reasons compatibility is low. + + +3.Contributors +============== +Although atm project is mostly 1 man's work there are several commits from other devs (ironically there are all greeks) + +- wheremyfoodat - (pcsx-redux dev and Panda3DS founder and dev) +- skmp - (nulldc , reincast and some many others emus founder and dev) +- OFFTKP - (paris... what to tell about paris , ok hydra is one of his best effords :) ) + +4.Greetings +=========== +I would like to thank the following people for helping me so far , with coding or moral support. + +- wheremyfoodat - or @rodakinos for believed me. +- paris - or OFFTKP for not believing me and that made me a better coder :D +- skmp - or kornilios for being good old friend +- PandaBad - our beloved stalker +- emufan4568 - for advices +- velocity - for talking 1-2 times per year on discord server . We miss you velocity + +- probably more , will include in the next readme :D + diff --git a/src/emulator.cpp b/src/emulator.cpp index 74bd15ff..5c7fd71c 100644 --- a/src/emulator.cpp +++ b/src/emulator.cpp @@ -5,6 +5,7 @@ #include #include "Core/PS4/HLE/Graphics/video_out.h" +#include "version.h" namespace Emulator { @@ -33,8 +34,8 @@ static void CreateSdlWindow(WindowCtx* ctx) { printf("%s\n", SDL_GetError()); std::exit(0); } - - ctx->m_window = SDL_CreateWindowWithPosition("shadps4", SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED, width, height, + std::string title = "shadps4 v" + std::string(Emulator::VERSION); + ctx->m_window = SDL_CreateWindowWithPosition(title.c_str(), SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED, width, height, (static_cast(SDL_WINDOW_HIDDEN) | static_cast(SDL_WINDOW_VULKAN))); ctx->is_window_hidden = true; // hide window until we need to show something (should draw something in buffers) diff --git a/src/version.h b/src/version.h new file mode 100644 index 00000000..34070f89 --- /dev/null +++ b/src/version.h @@ -0,0 +1,7 @@ +#pragma once +#include +#include + +namespace Emulator { +constexpr char VERSION[] = "0.0.1"; +} \ No newline at end of file