Skip to content

Commit 74e8f7d

Browse files
Merge pull request wheremyfoodat#355 from wheremyfoodat/helpme
Rollback Pandroid/Hydra split
2 parents dc32e9a + 0525d96 commit 74e8f7d

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

CMakeLists.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -388,10 +388,9 @@ if(ENABLE_VULKAN)
388388
set(ALL_SOURCES ${ALL_SOURCES} ${RENDERER_VK_SOURCE_FILES})
389389
endif()
390390

391-
if(ANDROID AND NOT BUILD_HYDRA_CORE)
391+
if(ANDROID)
392392
set(HEADER_FILES ${HEADER_FILES} include/jni_driver.hpp)
393393
set(ALL_SOURCES ${ALL_SOURCES} src/jni_driver.cpp)
394-
target_compile_definitions(Alber PRIVATE PANDA3DS_FRONTEND_PANDROID=1)
395394
endif()
396395

397396
if(BUILD_HYDRA_CORE)

src/core/loader/ncch.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#include "loader/ncch.hpp"
77
#include "memory.hpp"
88

9-
#ifdef PANDA3DS_FRONTEND_PANDROID
9+
#ifdef __ANDROID__
1010
#include "jni_driver.hpp"
1111
#endif
1212

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

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

0 commit comments

Comments
 (0)