|
23 | 23 | import com.mio.manager.RendererManager; |
24 | 24 | import com.tungsten.fcl.R; |
25 | 25 | import com.tungsten.fcl.util.RuntimeUtils; |
26 | | -import com.tungsten.fclauncher.FCLConfig; |
27 | | -import com.tungsten.fclauncher.utils.FCLPath; |
28 | 26 | import com.tungsten.fclauncher.bridge.FCLBridge; |
| 27 | +import com.tungsten.fclauncher.utils.FCLPath; |
29 | 28 | import com.tungsten.fclcore.auth.AuthInfo; |
30 | 29 | import com.tungsten.fclcore.game.GameRepository; |
31 | 30 | import com.tungsten.fclcore.game.LaunchOptions; |
32 | 31 | import com.tungsten.fclcore.game.Version; |
33 | 32 | import com.tungsten.fclcore.launch.DefaultLauncher; |
34 | 33 | import com.tungsten.fclcore.util.Logging; |
35 | 34 | import com.tungsten.fclcore.util.io.FileUtils; |
| 35 | +import com.tungsten.fclcore.util.versioning.GameVersionNumber; |
36 | 36 | import com.tungsten.fclcore.util.versioning.VersionNumber; |
37 | 37 | import com.tungsten.fcllibrary.util.LocaleUtils; |
38 | 38 |
|
@@ -76,6 +76,10 @@ private void generateOptionsTxt() { |
76 | 76 | modifyOptions(optionsFile, false); |
77 | 77 | return; |
78 | 78 | } |
| 79 | + String v = repository.getGameVersion(version).orElse(""); |
| 80 | + if (v.startsWith("2.0")) v = "1.5.1"; |
| 81 | + if (GameVersionNumber.compare(v, "1.5.2") <= 0) |
| 82 | + return; |
79 | 83 | try { |
80 | 84 | RuntimeUtils.copyAssets(context, "options.txt", optionsFile.getAbsolutePath()); |
81 | 85 | } catch (IOException e) { |
|
0 commit comments