fix 隐藏失败的问题,并且处理了原来riru内存泄漏的问题

This commit is contained in:
jiqiu2021
2024-11-16 21:56:05 +08:00
parent b50d500319
commit 8e715b8148
3 changed files with 8 additions and 8 deletions

View File

@@ -77,9 +77,7 @@ void load_so(const char *game_data_dir, JavaVM *vm, const char *soname) {
if (handle) {
LOGI("Successfully loaded %s", new_so_path);
load = true;
std::set<std::string_view> sonames;
sonames.insert(soname);
riru_hide(sonames);
riru_hide(soname);
break;
} else {
LOGE("Failed to load %s: %s", new_so_path, dlerror());