From 3eb6c9729f3b8e170a9bba58d77e5d18b774b114 Mon Sep 17 00:00:00 2001 From: Maschell Date: Sun, 25 Feb 2018 13:46:59 +0100 Subject: [PATCH] Using github instead of sourceforge --- .travis.yml | 2 +- source/utils/function_patcher.cpp | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 25fb81e..945f16b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -20,7 +20,7 @@ addons: before_install: - mkdir -p "${DEVKITPRO}" - - wget http://download.sourceforge.net/devkitpro/devkitPPC_r29-1-x86_64-linux.tar.bz2 -O devkitPPC-linux.tar.bz2 + - wget https://downloads.devkitpro.org/devkitPPC_r29-1-x86_64-linux.tar.bz2 -O devkitPPC-linux.tar.bz22 - wget https://github.com/Maschell/dynamic_libs/archive/lib.tar.gz -O dynamic_libs.tar.gz install: diff --git a/source/utils/function_patcher.cpp b/source/utils/function_patcher.cpp index 187e303..1fb1f35 100644 --- a/source/utils/function_patcher.cpp +++ b/source/utils/function_patcher.cpp @@ -377,8 +377,11 @@ u32 GetAddressOfFunction(const char * functionName,u32 library){ OSDynLoad_FindExport(rpl_handle, 0, functionName, &real_addr); if(!real_addr){ - DEBUG_FUNCTION_LINE("OSDynLoad_FindExport failed for %s\n", functionName); - return 0; + OSDynLoad_FindExport(rpl_handle, 1, functionName, &real_addr); + if(!real_addr){ + DEBUG_FUNCTION_LINE("OSDynLoad_FindExport failed for %s\n", functionName); + return 0; + } } if((library == LIB_NN_ACP) && (u32)(*(volatile u32*)(real_addr) & 0x48000002) == 0x48000000)