Skip to content

Commit

Permalink
Roll back Pandroid/Hydra split
Browse files Browse the repository at this point in the history
  • Loading branch information
wheremyfoodat committed Dec 26, 2023
1 parent dc32e9a commit 0525d96
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -388,10 +388,9 @@ if(ENABLE_VULKAN)
set(ALL_SOURCES ${ALL_SOURCES} ${RENDERER_VK_SOURCE_FILES})
endif()

if(ANDROID AND NOT BUILD_HYDRA_CORE)
if(ANDROID)
set(HEADER_FILES ${HEADER_FILES} include/jni_driver.hpp)
set(ALL_SOURCES ${ALL_SOURCES} src/jni_driver.cpp)
target_compile_definitions(Alber PRIVATE PANDA3DS_FRONTEND_PANDROID=1)
endif()

if(BUILD_HYDRA_CORE)
Expand Down
4 changes: 2 additions & 2 deletions src/core/loader/ncch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#include "loader/ncch.hpp"
#include "memory.hpp"

#ifdef PANDA3DS_FRONTEND_PANDROID
#ifdef __ANDROID__
#include "jni_driver.hpp"
#endif

Expand Down Expand Up @@ -260,7 +260,7 @@ bool NCCH::parseSMDH(const std::vector<u8>& smdh) {
}

// In the Android version, notify the application that we're loading an SMDH file, to extract data for the title list
#ifdef PANDA3DS_FRONTEND_PANDROID
#ifdef __ANDROID__
Pandroid::onSmdhLoaded(smdh);
#endif

Expand Down

0 comments on commit 0525d96

Please sign in to comment.