aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReiko Asakura2021-02-24 00:00:46 -0500
committerReiko Asakura2021-02-24 00:00:46 -0500
commit6b7d8733e4871903a37659901dcd645bf7e87808 (patch)
tree0589a2b71141972deec05c82d191bd8b6c393621
parentUse TAI_NEXT in is_cex_patched (diff)
downloadtaihen-6b7d8733e4871903a37659901dcd645bf7e87808.tar.gz
Wait for controller input only when using Enso
-rw-r--r--CMakeLists.txt1
-rw-r--r--taihen.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 77aa36f..5d336d1 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -81,6 +81,7 @@ target_link_libraries(taihen
SceSysmemForDriver_stub
SceSysclibForDriver_stub
SceCpuForDriver_stub
+ SceSysrootForDriver_stub
SceSysrootForKernel_stub
SceThreadmgrForDriver_stub
SceModulemgrForDriver_stub
diff --git a/taihen.c b/taihen.c
index 650662a..fa2df58 100644
--- a/taihen.c
+++ b/taihen.c
@@ -349,7 +349,7 @@ int module_start(SceSize argc, const void *args) {
LOG("HEN patches failed: %x", ret);
return SCE_KERNEL_START_FAILED;
}
- if (sceSblAimgrIsGenuineDolce()) {
+ if (sceSblAimgrIsGenuineDolce() && sceKernelSysrootGetShellPid() < 0) {
kbl_param = sceKernelGetSysrootBuffer();
if (*(uint32_t*)(kbl_param + 0xC4) == 0xFF1C && *(uint32_t*)(kbl_param + 0xD8) == 0x8) {
sceSysconCtrlDolceLED(1);