From d9dd21073926b12df1cbabc92d9db564887186a3 Mon Sep 17 00:00:00 2001 From: JosJuice Date: Mon, 25 Dec 2017 13:50:29 +0100 Subject: MainAndroid: Allow specifying path for savestates --- .../main/java/org/dolphinemu/dolphinemu/NativeLibrary.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'Source/Android/app/src/main/java') diff --git a/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/NativeLibrary.java b/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/NativeLibrary.java index 8d193e75ec..d4f6d4cdf6 100644 --- a/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/NativeLibrary.java +++ b/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/NativeLibrary.java @@ -297,6 +297,13 @@ public final class NativeLibrary */ public static native void SaveState(int slot); + /** + * Saves a game state to the specified path. + * + * @param path The path to save state to. + */ + public static native void SaveStateAs(String path); + /** * Loads a game state from the slot number. * @@ -304,6 +311,13 @@ public final class NativeLibrary */ public static native void LoadState(int slot); + /** + * Loads a game state from the specified path. + * + * @param path The path to load state from. + */ + public static native void LoadStateAs(String path); + /** * Sets the current working user directory * If not set, it auto-detects a location -- cgit v1.2.3