Skip to content

Commit

Permalink
Fix detecting package on NativeBridge
Browse files Browse the repository at this point in the history
  • Loading branch information
Kimjio committed Jun 20, 2022
1 parent 14f2b4a commit b7158aa
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 16 deletions.
4 changes: 2 additions & 2 deletions module.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ ext {
moduleName = "UmamusumeLocalify"
moduleAuthor = "Kimjio"
moduleDescription = "umamusume-localify"
moduleVersion = "2.1.2"
moduleVersionCode = 5
moduleVersion = "2.1.3"
moduleVersionCode = 6
moduleUpdateJson = "https://raw.githubusercontent.com/Kimjio/umamusume-localify-android/main/update"

// Riru
Expand Down
7 changes: 3 additions & 4 deletions module/src/main/cpp/main_riru.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,12 @@ void hook() {
if (IsRunningOnNativeBridge()) {
if (access(
string("/data/data/")
.append(GamePackageName).data(),
.append(GamePackageName).append("/cache").data(),
F_OK) == 0) {
gameRegion = GameRegion::JAP;
}
if (access(
} else if (access(
string("/data/data/")
.append(GamePackageNameKor).data(),
.append(GamePackageNameKor).append("/cache").data(),
F_OK) == 0) {
gameRegion = GameRegion::KOR;
}
Expand Down
7 changes: 3 additions & 4 deletions module/src/main/cpp/main_zygisk.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,12 @@ void hook() {
if (IsRunningOnNativeBridge()) {
if (access(
string("/data/data/")
.append(GamePackageName).data(),
.append(GamePackageName).append("/cache").data(),
F_OK) == 0) {
gameRegion = GameRegion::JAP;
}
if (access(
} else if (access(
string("/data/data/")
.append(GamePackageNameKor).data(),
.append(GamePackageNameKor).append("/cache").data(),
F_OK) == 0) {
gameRegion = GameRegion::KOR;
}
Expand Down
6 changes: 3 additions & 3 deletions update-riru.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"version": "2.1.2",
"versionCode": 5,
"zipUrl": "https://github.com/Kimjio/umamusume-localify-android/releases/latest/download/riru-umamusume-localify-2.1.2-release.zip",
"version": "2.1.3",
"versionCode": 6,
"zipUrl": "https://github.com/Kimjio/umamusume-localify-android/releases/latest/download/riru-umamusume-localify-2.1.3-release.zip",
"changelog": "https://raw.githubusercontent.com/Kimjio/umamusume-localify-android/CHANGELOG.md"
}
6 changes: 3 additions & 3 deletions update-zygisk.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"version": "2.1.2",
"versionCode": 5,
"zipUrl": "https://github.com/Kimjio/umamusume-localify-android/releases/latest/download/zygisk-umamusume-localify-2.1.2-release.zip",
"version": "2.1.3",
"versionCode": 6,
"zipUrl": "https://github.com/Kimjio/umamusume-localify-android/releases/latest/download/zygisk-umamusume-localify-2.1.3-release.zip",
"changelog": "https://raw.githubusercontent.com/Kimjio/umamusume-localify-android/CHANGELOG.md"
}

0 comments on commit b7158aa

Please sign in to comment.