Skip to content

Commit 848a15a

Browse files
committed
2 parents 5078a8d + dcc662f commit 848a15a

File tree

109 files changed

+2338
-1981
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

109 files changed

+2338
-1981
lines changed

.github/ISSUE_TEMPLATE/app-bug-report.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ body:
1010
value: |
1111
## Important: Read First
1212
13-
Please do not make support requests on GitHub. Our issue tracker is for tracking bugs and feature requests only
14-
If you need help using the emulator or unsure about your issue please contact us on [discord](https://discord.gg/bFJxfftGW6).
13+
**Please do not make support requests on GitHub. Our issue tracker is for tracking bugs and feature requests only.
14+
If you have a support request or are unsure about the nature of your issue please contact us on [discord](https://discord.gg/bFJxfftGW6).**
1515
1616
Please make an effort to make sure your issue isn't already reported.
1717

.github/ISSUE_TEMPLATE/game-bug-report.yaml

+10-6
Original file line numberDiff line numberDiff line change
@@ -10,26 +10,30 @@ body:
1010
value: |
1111
## Important: Read First
1212
13-
Please do not make support requests on GitHub. Our issue tracker is for tracking bugs and feature requests only
14-
If you need help using the emulator or unsure about your issue please contact us on [discord](https://discord.gg/bFJxfftGW6).
13+
**Please do not make support requests on GitHub. Our issue tracker is for tracking bugs and feature requests only.
14+
If you have a support request or are unsure about the nature of your issue please contact us on [discord](https://discord.gg/bFJxfftGW6).**
1515
16-
You can also check the [Game Compatibility Repository](https://github.com/shadps4-emu/shadps4-game-compatibility) for the information about the status of the game.
16+
This repository does not provide support for modded games. You should perform and test a clean game installation before submitting an issue.
17+
18+
This repository does not provide support for game patches. If you are having issues with patches please refer to [Cheats and Patches Repository](https://github.com/shadps4-emu/ps4_cheats).
19+
20+
Before submitting an issue please check [Game Compatibility Repository](https://github.com/shadps4-emu/shadps4-game-compatibility) for the information about the status of the game.
1721
1822
Please make an effort to make sure your issue isn't already reported.
1923
2024
Do not create issues involving software piracy, our rules specifically prohibit this. Otherwise your issue will be closed and you will be banned in this repository.
2125
- type: checkboxes
2226
id: checklist
2327
attributes:
24-
label: Checklist
28+
label: Checklist (we expect you to perform these steps before opening the issue)
2529
options:
2630
- label: I have searched for a similar issue in this repository and did not find one.
2731
required: true
2832
- label: I am using an official build obtained from [releases](https://github.com/shadps4-emu/shadPS4/releases) or updated one of those builds using its in-app updater.
2933
required: true
30-
- label: I have re-dumped the game and performed a clean install without mods.
34+
- label: I have re-dumped the game and performed a clean install without mods and the issue is still present.
3135
required: true
32-
- label: I have disabled all patches and cheats.
36+
- label: I have disabled all patches and cheats and the issue is still present.
3337
required: true
3438
- label: I have all the required [system modules](https://github.com/shadps4-emu/shadps4-game-compatibility?tab=readme-ov-file#informations) installed.
3539
required: true

.gitmodules

-4
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,3 @@
119119
path = externals/MoltenVK/cereal
120120
url = https://github.com/USCiLab/cereal
121121
shallow = true
122-
[submodule "externals/cubeb"]
123-
path = externals/cubeb
124-
url = https://github.com/mozilla/cubeb
125-
shallow = true

CMakeLists.txt

+2-4
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,6 @@ find_package(xxHash 0.8.2 MODULE)
127127
find_package(ZLIB 1.3 MODULE)
128128
find_package(Zydis 5.0.0 CONFIG)
129129
find_package(pugixml 1.14 CONFIG)
130-
find_package(cubeb CONFIG)
131130

132131
if (NOT CMAKE_CXX_COMPILER_ID STREQUAL "Clang" OR NOT MSVC)
133132
find_package(cryptopp 8.9.0 MODULE)
@@ -203,7 +202,6 @@ set(AUDIO_LIB src/core/libraries/audio/audioin.cpp
203202
src/core/libraries/audio/audioout.h
204203
src/core/libraries/audio/audioout_backend.h
205204
src/core/libraries/audio/audioout_error.h
206-
src/core/libraries/audio/cubeb_audio.cpp
207205
src/core/libraries/audio/sdl_audio.cpp
208206
src/core/libraries/ngs2/ngs2.cpp
209207
src/core/libraries/ngs2/ngs2.h
@@ -499,7 +497,6 @@ set(COMMON src/common/logging/backend.cpp
499497
src/common/polyfill_thread.h
500498
src/common/rdtsc.cpp
501499
src/common/rdtsc.h
502-
src/common/ringbuffer.h
503500
src/common/signal_context.h
504501
src/common/signal_context.cpp
505502
src/common/singleton.h
@@ -701,6 +698,7 @@ set(SHADER_RECOMPILER src/shader_recompiler/exception.h
701698
src/shader_recompiler/ir/post_order.h
702699
src/shader_recompiler/ir/program.cpp
703700
src/shader_recompiler/ir/program.h
701+
src/shader_recompiler/ir/reinterpret.h
704702
src/shader_recompiler/ir/reg.h
705703
src/shader_recompiler/ir/type.cpp
706704
src/shader_recompiler/ir/type.h
@@ -891,7 +889,7 @@ endif()
891889
create_target_directory_groups(shadps4)
892890

893891
target_link_libraries(shadps4 PRIVATE magic_enum::magic_enum fmt::fmt toml11::toml11 tsl::robin_map xbyak::xbyak Tracy::TracyClient RenderDoc::API FFmpeg::ffmpeg Dear_ImGui gcn half::half ZLIB::ZLIB PNG::PNG)
894-
target_link_libraries(shadps4 PRIVATE Boost::headers GPUOpen::VulkanMemoryAllocator LibAtrac9 sirit Vulkan::Headers xxHash::xxhash Zydis::Zydis glslang::glslang SDL3::SDL3 pugixml::pugixml stb::headers cubeb::cubeb)
892+
target_link_libraries(shadps4 PRIVATE Boost::headers GPUOpen::VulkanMemoryAllocator LibAtrac9 sirit Vulkan::Headers xxHash::xxhash Zydis::Zydis glslang::glslang SDL3::SDL3 pugixml::pugixml stb::headers)
895893

896894
target_compile_definitions(shadps4 PRIVATE IMGUI_USER_CONFIG="imgui/imgui_config.h")
897895
target_compile_definitions(Dear_ImGui PRIVATE IMGUI_USER_CONFIG="${PROJECT_SOURCE_DIR}/src/imgui/imgui_config.h")

LICENSES/ISC.txt

-7
This file was deleted.

externals/CMakeLists.txt

-10
Original file line numberDiff line numberDiff line change
@@ -228,16 +228,6 @@ if (NOT TARGET stb::headers)
228228
add_library(stb::headers ALIAS stb)
229229
endif()
230230

231-
# cubeb
232-
if (NOT TARGET cubeb::cubeb)
233-
option(BUILD_TESTS "" OFF)
234-
option(BUILD_TOOLS "" OFF)
235-
option(BUNDLE_SPEEX "" ON)
236-
option(USE_SANITIZERS "" OFF)
237-
add_subdirectory(cubeb)
238-
add_library(cubeb::cubeb ALIAS cubeb)
239-
endif()
240-
241231
# Apple-only dependencies
242232
if (APPLE)
243233
# date

externals/cubeb

-1
This file was deleted.

src/common/config.cpp

+16-17
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ static int cursorHideTimeout = 5; // 5 seconds (default)
6767
static bool separateupdatefolder = false;
6868
static bool compatibilityData = false;
6969
static bool checkCompatibilityOnStartup = false;
70-
static std::string audioBackend = "cubeb";
70+
static std::string trophyKey;
7171

7272
// Gui
7373
std::vector<std::filesystem::path> settings_install_dirs = {};
@@ -92,6 +92,14 @@ std::string emulator_language = "en";
9292
// Language
9393
u32 m_language = 1; // english
9494

95+
std::string getTrophyKey() {
96+
return trophyKey;
97+
}
98+
99+
void setTrophyKey(std::string key) {
100+
trophyKey = key;
101+
}
102+
95103
bool isNeoMode() {
96104
return isNeo;
97105
}
@@ -240,10 +248,6 @@ bool getCheckCompatibilityOnStartup() {
240248
return checkCompatibilityOnStartup;
241249
}
242250

243-
std::string getAudioBackend() {
244-
return audioBackend;
245-
}
246-
247251
void setGpuId(s32 selectedGpuId) {
248252
gpuId = selectedGpuId;
249253
}
@@ -376,10 +380,6 @@ void setCheckCompatibilityOnStartup(bool use) {
376380
checkCompatibilityOnStartup = use;
377381
}
378382

379-
void setAudioBackend(std::string backend) {
380-
audioBackend = backend;
381-
}
382-
383383
void setMainWindowGeometry(u32 x, u32 y, u32 w, u32 h) {
384384
main_window_geometry_x = x;
385385
main_window_geometry_y = y;
@@ -620,12 +620,6 @@ void load(const std::filesystem::path& path) {
620620
vkCrashDiagnostic = toml::find_or<bool>(vk, "crashDiagnostic", false);
621621
}
622622

623-
if (data.contains("Audio")) {
624-
const toml::value& audio = data.at("Audio");
625-
626-
audioBackend = toml::find_or<std::string>(audio, "backend", "cubeb");
627-
}
628-
629623
if (data.contains("Debug")) {
630624
const toml::value& debug = data.at("Debug");
631625

@@ -667,6 +661,11 @@ void load(const std::filesystem::path& path) {
667661

668662
m_language = toml::find_or<int>(settings, "consoleLanguage", 1);
669663
}
664+
665+
if (data.contains("Keys")) {
666+
const toml::value& keys = data.at("Keys");
667+
trophyKey = toml::find_or<std::string>(keys, "TrophyKey", "");
668+
}
670669
}
671670

672671
void save(const std::filesystem::path& path) {
@@ -724,10 +723,11 @@ void save(const std::filesystem::path& path) {
724723
data["Vulkan"]["rdocEnable"] = rdocEnable;
725724
data["Vulkan"]["rdocMarkersEnable"] = vkMarkers;
726725
data["Vulkan"]["crashDiagnostic"] = vkCrashDiagnostic;
727-
data["Audio"]["backend"] = audioBackend;
728726
data["Debug"]["DebugDump"] = isDebugDump;
729727
data["Debug"]["CollectShader"] = isShaderDebug;
730728

729+
data["Keys"]["TrophyKey"] = trophyKey;
730+
731731
std::vector<std::string> install_dirs;
732732
for (const auto& dirString : settings_install_dirs) {
733733
install_dirs.emplace_back(std::string{fmt::UTF(dirString.u8string()).data});
@@ -828,7 +828,6 @@ void setDefaultValues() {
828828
separateupdatefolder = false;
829829
compatibilityData = false;
830830
checkCompatibilityOnStartup = false;
831-
audioBackend = "cubeb";
832831
}
833832

834833
} // namespace Config

src/common/config.h

+3-2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ void load(const std::filesystem::path& path);
1515
void save(const std::filesystem::path& path);
1616
void saveMainWindow(const std::filesystem::path& path);
1717

18+
std::string getTrophyKey();
19+
void setTrophyKey(std::string key);
20+
1821
bool isNeoMode();
1922
bool isFullscreenMode();
2023
bool getPlayBGM();
@@ -24,7 +27,6 @@ bool getEnableDiscordRPC();
2427
bool getSeparateUpdateEnabled();
2528
bool getCompatibilityEnabled();
2629
bool getCheckCompatibilityOnStartup();
27-
std::string getAudioBackend();
2830

2931
std::string getLogFilter();
3032
std::string getLogType();
@@ -76,7 +78,6 @@ void setSeparateUpdateEnabled(bool use);
7678
void setGameInstallDirs(const std::vector<std::filesystem::path>& settings_install_dirs_config);
7779
void setCompatibilityEnabled(bool use);
7880
void setCheckCompatibilityOnStartup(bool use);
79-
void setAudioBackend(std::string backend);
8081

8182
void setCursorState(s16 cursorState);
8283
void setCursorHideTimeout(int newcursorHideTimeout);

src/common/native_clock.cpp

-11
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,6 @@
44
#include "common/native_clock.h"
55
#include "common/rdtsc.h"
66
#include "common/uint128.h"
7-
#ifdef _WIN64
8-
#include <pthread_time.h>
9-
#else
10-
#include <time.h>
11-
#endif
127

138
namespace Common {
149

@@ -34,10 +29,4 @@ u64 NativeClock::GetUptime() const {
3429
return FencedRDTSC();
3530
}
3631

37-
u64 NativeClock::GetProcessTimeUS() const {
38-
timespec ret;
39-
clock_gettime(CLOCK_PROCESS_CPUTIME_ID, &ret);
40-
return ret.tv_nsec / 1000 + ret.tv_sec * 1000000;
41-
}
42-
4332
} // namespace Common

src/common/native_clock.h

-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ class NativeClock final {
2020
u64 GetTimeUS(u64 base_ptc = 0) const;
2121
u64 GetTimeMS(u64 base_ptc = 0) const;
2222
u64 GetUptime() const;
23-
u64 GetProcessTimeUS() const;
2423

2524
private:
2625
u64 rdtsc_frequency;

0 commit comments

Comments
 (0)