Skip to content

Commit

Permalink
externals: update SDL
Browse files Browse the repository at this point in the history
  • Loading branch information
Gamer64ytb committed Sep 9, 2024
1 parent 2a195e6 commit df439ae
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 5 deletions.
7 changes: 6 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,14 @@ cmake_policy(SET CMP0069 NEW)
# Honor visibility properties for all targets
# Set the default so subdirectory cmake_minimum_required calls won't unset the policy.
cmake_policy(SET CMP0063 NEW)
set(CMAKE_POLICY_DEFAULT_CMP0063 NEW)
# Needed to compile sdl2 2.30.5+ on MSVC
set(CMAKE_POLICY_DEFAULT_CMP0077 NEW)
# Allow use with targets in other directories
cmake_policy(SET CMP0079 NEW)
set(CMAKE_POLICY_DEFAULT_CMP0079 NEW)
# Allow conditions to be used in cmake_dependent_option
cmake_policy(SET CMP0127 NEW)
set(CMAKE_POLICY_DEFAULT_CMP0063 NEW)

list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/CMakeModules")
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/externals/cmake-modules")
Expand Down
3 changes: 3 additions & 0 deletions externals/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,9 @@ add_subdirectory(teakra EXCLUDE_FROM_ALL)

# SDL2
if (ENABLE_SDL2 AND NOT USE_SYSTEM_SDL2)
if (MSVC)
set (SDL_LIBC ON)
endif()
add_subdirectory(sdl2)
endif()

Expand Down
2 changes: 1 addition & 1 deletion externals/sdl2/SDL
Submodule SDL updated 1328 files
4 changes: 2 additions & 2 deletions src/core/core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ static void LoadOverrides(u64 title_id) {
}

// Fully tested games that runs better and without issues with this tweak.
const std::array<u64, 8> force_hw_vertex_shaders_ids = {
const std::array<u64, 8> force_hw_vs_ids = {
0x0004000000068B00, // Tales of the Abyss / Pac Man Party 3D
0x0004000000061300, // Tales of the Abyss / Pac Man Party 3D
0x000400000004A700, // Tales of the Abyss / Pac Man Party 3D
Expand All @@ -272,7 +272,7 @@ static void LoadOverrides(u64 title_id) {
0x000400000016AD00, // Dragon Quest Monsters Joker 3
0x00040000001ACB00 // Dragon Quest Monsters Joker 3 Professional
};
for (auto id : force_hw_vertex_shaders_ids) {
for (auto id : force_hw_vs_ids) {
if (title_id == id) {
Settings::values.force_hw_vertex_shaders = true;
break;
Expand Down

0 comments on commit df439ae

Please sign in to comment.