diff options
| author | JosJuice <josjuice@gmail.com> | 2017-12-25 13:50:29 +0100 |
|---|---|---|
| committer | mahdihijazi <mahdi.hijaz@hotmail.com> | 2017-12-27 21:53:07 +0100 |
| commit | d9dd21073926b12df1cbabc92d9db564887186a3 (patch) | |
| tree | 78ccc98110798156514ddce2ec38d17b29244f9a /Source/Android/app/src/main/java | |
| parent | 1df69c57507dbeea638eceac1c7410b737f1739c (diff) | |
MainAndroid: Allow specifying path for savestates
Diffstat (limited to 'Source/Android/app/src/main/java')
| -rw-r--r-- | Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/NativeLibrary.java | 14 |
1 files changed, 14 insertions, 0 deletions
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 @@ -298,6 +298,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. * * @param slot The slot location to load state from. @@ -305,6 +312,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 */ |
