diff --git a/app/src/main/java/com/eltechs/ed/guestContainers/GuestContainerConfig.java b/app/src/main/java/com/eltechs/ed/guestContainers/GuestContainerConfig.java index 57dae343..f0aa6103 100644 --- a/app/src/main/java/com/eltechs/ed/guestContainers/GuestContainerConfig.java +++ b/app/src/main/java/com/eltechs/ed/guestContainers/GuestContainerConfig.java @@ -77,9 +77,15 @@ void loadDefaults() { setStartupActions(""); setRunGuide(""); setRunGuideShown(false); +// setRendererDefault(); MutiWine.writeWineVerToContainerConfig(mCont.mId); } + //原exa不存在的方法。可以用这个来设置默认渲染方式 + public void setRendererDefault(){ + this.mSp.edit().putString("RENDERER","Turnip_DXVK").apply(); + } + public String getName() { SharedPreferences sharedPreferences = this.mSp; return sharedPreferences.getString(KEY_NAME, "Container_" + this.mCont.mId); @@ -112,7 +118,7 @@ public ScreenInfo getScreenInfo() { public void setScreenInfo(ScreenInfo screenInfo) { SharedPreferences.Editor edit = this.mSp.edit(); - String str = Integer.toString(screenInfo.widthInPixels) + "," + screenInfo.heightInPixels; + String str = screenInfo.widthInPixels + "," + screenInfo.heightInPixels; String[] strArr = SUPPORTED_RESOLUTIONS; boolean z = false; int length = strArr.length; diff --git a/patchapp/src/main/java/com/ewt45/patchapp/patching/PatcherFile.java b/patchapp/src/main/java/com/ewt45/patchapp/patching/PatcherFile.java index dcab37fd..8cec5568 100644 --- a/patchapp/src/main/java/com/ewt45/patchapp/patching/PatcherFile.java +++ b/patchapp/src/main/java/com/ewt45/patchapp/patching/PatcherFile.java @@ -242,7 +242,7 @@ private static void parsePkgNameInFile(File dstFile) { public static String[] getSmaliMethod(String smaliLocation, String methodName) throws IOException { //定位smali文件 - File oneFile = new File(PatchUtils.getPatchTmpDir().getAbsolutePath() + "/patcher/smali/ " + smaliLocation); + File oneFile = new File(PatchUtils.getPatchTmpDir().getAbsolutePath() + "/patcher/smali/" + smaliLocation); List fileLines = FileUtils.readLines(oneFile, StandardCharsets.UTF_8); int start = -1, end = -1; diff --git a/patchapp/src/main/java/com/ewt45/patchapp/thread/FuncMultiWine.java b/patchapp/src/main/java/com/ewt45/patchapp/thread/FuncMultiWine.java index c04157ec..229388ed 100644 --- a/patchapp/src/main/java/com/ewt45/patchapp/thread/FuncMultiWine.java +++ b/patchapp/src/main/java/com/ewt45/patchapp/thread/FuncMultiWine.java @@ -58,7 +58,6 @@ public Integer call() throws Exception { "/com/google/gson", //json依赖 "/org/tukaani/xz", //xz解压依赖 "/com/example/datainsert/exagear/mutiWine", - "/com/example/datainsert/exagear/shortcut", "/com/example/datainsert/exagear/RR.smali", "/com/example/datainsert/exagear/QH.smali", });