Skip to content

Commit

Permalink
fix paths (again again again)
Browse files Browse the repository at this point in the history
  • Loading branch information
computer-catt committed Jul 12, 2024
1 parent c5b9837 commit 2dc75ec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/java/pojlib/util/JREUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ public static int launchJavaVM(Activity activity, List<String> JVMArgs, String[]
*/
public static List<String> getJavaArgs(Context ctx, String gameDir) {
return new ArrayList<>(Arrays.asList(
"-Djava.home=" + new File(Constants.getFilesDir(ctx), "jdk"),
"-Djava.home=" + new File(Constants.getFilesDir(ctx), "runtimes/JDK"),
"-Djava.io.tmpdir=" + ctx.getCacheDir().getAbsolutePath(),
"-Duser.home=" + gameDir,
"-Duser.language=" + System.getProperty("user.language"),
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/pojlib/util/Logger.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public class Logger {
private WeakReference<eventLogListener> mLogListenerWeakReference = null;

private Logger(Activity activity){
mLogFile = new File(Constants.getFilesDir(activity), "latestlog.txt");
mLogFile = new File(activity.getExternalFilesDir(null), "latestlog.txt");
// Make a new instance of the log file
mLogFile.delete();
try {
Expand Down

0 comments on commit 2dc75ec

Please sign in to comment.