Skip to content

Commit

Permalink
添加退出按钮
Browse files Browse the repository at this point in the history
  • Loading branch information
StArrayJaN committed Oct 27, 2023
1 parent 02c5c32 commit 5b41a09
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 298 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# Where's My Water Decompile Project (WMWD or WMWDP)

You can download the built APK from the [Actions](https://github.com/TherCN/Where-is-My-Water/actions) tab, and you can also use [AIDE](https://android-ide.com) to clone this repository and manually compile it

-----

If you have any features you would like to add, please explain them in the [Issues](https://github.com/TherCN/Where-is-My-Water/issues) section or submit the code in the [Pull Request](https://github.com/TherCN/Where-is-My-Water/pulls) section and explain the specific purpose of the code
4 changes: 3 additions & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ android {
buildToolsVersion '30.0.2'
ndkVersion '23.0.7599858'
namespace "thercn.wmw"

signingConfigs {
release {
storeFile file('thercn.jks')
Expand All @@ -13,6 +14,7 @@ android {
keyPassword 'thercn'
}
}

defaultConfig {
applicationId "thercn.wmw"
minSdkVersion 24
Expand All @@ -34,7 +36,7 @@ android {

buildTypes {
release {
signingConfig signingConfigs.release
signingConfig signingConfigs.release
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
Expand Down
23 changes: 14 additions & 9 deletions app/src/main/jni/Source/EGL.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -197,27 +197,32 @@ void EGL::EglThread() {
}

ImGui::Begin("Where's My Water?Mod Tool");
input->g_window = g_window = ImGui::GetCurrentWindow();
ImGui::SetWindowSize({500, 500}, ImGuiCond_FirstUseEver);
ImGui::SetWindowPos({0, 200}, ImGuiCond_FirstUseEver);
ImGui::Text("libwmw.so Mod Tool");
input->g_window = g_window = ImGui::GetCurrentWindow();
ImGui::SetWindowSize({500, 500}, ImGuiCond_FirstUseEver);
ImGui::SetWindowPos({0, 200}, ImGuiCond_FirstUseEver);
ImGui::Text("libwmw.so Mod Tool");

ImGui::InputTextWithHint("##偏移", "请输入偏移(input offset)", offset, IM_ARRAYSIZE(offset),
ImGui::InputTextWithHint("##偏移", "请输入偏移(input offset)", offset, IM_ARRAYSIZE(offset),
ImGuiInputTextFlags_CallbackAlways,
ImguiAndroidInput::inputCallback);

ImGui::InputTextWithHint("##字节", "请输入hex(input hex)", str, IM_ARRAYSIZE(str),
ImGui::InputTextWithHint("##字节", "请输入hex(input hex)", str, IM_ARRAYSIZE(str),
ImGuiInputTextFlags_CallbackAlways,
ImguiAndroidInput::inputCallback);

if (ImGui::Button("修改(modify)")){
if (patch(offset,str)) LOGE("成功为%d打上%s",offset,str);
}

if (ImGui::Button("退出游戏(exit)")){
exit(0);
}

ImGui::End();

imguiMainWinEnd();
this->swapBuffers();
input->fps = this->FPS;
imguiMainWinEnd();
this->swapBuffers();
input->fps = this->FPS;
}
}

Expand Down
288 changes: 0 additions & 288 deletions app/src/main/jni/Source/EGL.cpp.bak

This file was deleted.

0 comments on commit 5b41a09

Please sign in to comment.