Skip to content

Commit

Permalink
内存读写修复
Browse files Browse the repository at this point in the history
  • Loading branch information
StArrayJaN committed Oct 16, 2023
1 parent d60fe70 commit 3887b98
Show file tree
Hide file tree
Showing 24 changed files with 659 additions and 1,140 deletions.
Binary file modified app/libs/arm64-v8a/libmui.so
Binary file not shown.
3 changes: 2 additions & 1 deletion app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<?xml version='1.0' encoding='utf-8'?>
<manifest
xmlns:android="http://schemas.android.com/apk/res/android"

package="thercn.wmw">

<!-- 完全的网络访问权限 -->
Expand Down Expand Up @@ -109,4 +110,4 @@

</application>

</manifest>
</manifest>
3 changes: 1 addition & 2 deletions app/src/main/java/thercn/wmw/GlobalApplication.java
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,6 @@ public void run() {
try {
Looper.loop();
} catch (final Throwable e) {
e.printStackTrace();
if (isRunning.get()) {
MAIN_HANDLER.post(new Runnable(){

Expand Down Expand Up @@ -331,4 +330,4 @@ public void onBackPressed() {
restart();
}
}
}
}
9 changes: 0 additions & 9 deletions app/src/main/java/thercn/wmw/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,6 @@ public class MainActivity extends Activity {

public static String appDataDir = Environment.getExternalStorageDirectory().toString() + "/WMW";
public static boolean isIPadScreen = false;
public static String loadLibrary;

static
{
System.loadLibrary("wmw");
}

@Override
protected void onCreate(Bundle savedInstanceState) {
Expand All @@ -40,7 +34,6 @@ protected void onCreate(Bundle savedInstanceState) {
Permission.申请(this);
Log.e("WMW","安装包目录:" + getPackageResourcePath());
File obbdir = getObbDir();

File dataDir = new File(appDataDir);
File extraDataFile = new File(appDataDir + "/wmw-extra.zip");
if (!obbdir.exists() || !dataDir.exists()) {
Expand Down Expand Up @@ -134,6 +127,4 @@ public void onClick(View view) {
}
});
}
private void setupLibrary(){}

}
6 changes: 2 additions & 4 deletions app/src/main/jn/Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,8 @@ LOCAL_SRC_FILES:= Source/Imgui/imgui.cpp \
Source/EGL.cpp \
Source/MyFile.cpp \
native-lib.cpp \
KittyMemory/KittyMemory.cpp \
KittyMemory/MemoryPatch.cpp \
KittyMemory/MemoryBackup.cpp \
KittyMemory/KittyUtils.cpp
Platinmods/PlatinmodsMemoryPatch.cpp \
Platinmods/PlatinmodsUtils.cpp

LOCAL_LDLIBS := -ldl -llog -lEGL -lGLESv3 -landroid
include $(BUILD_SHARED_LIBRARY)
Expand Down
3 changes: 2 additions & 1 deletion app/src/main/jn/Application.mk
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
APP_ABI := arm64-v8a
APP_STL := c++_static
APP_STL := c++_static
APP_PLATFORM := android-24
4 changes: 2 additions & 2 deletions app/src/main/jn/Include/EGL.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class EGL { ;

void imguiMainWinEnd();


bool patch(char offset[],char hex[]);
ImFont *imFont;
string SaveDir;
public:
Expand Down Expand Up @@ -86,4 +86,4 @@ class EGL { ;
}

};
#endif
#endif
37 changes: 0 additions & 37 deletions app/src/main/jn/Include/patch.h

This file was deleted.

148 changes: 0 additions & 148 deletions app/src/main/jn/KittyMemory/KittyMemory.cpp

This file was deleted.

Loading

0 comments on commit 3887b98

Please sign in to comment.