MainAndroid: Allow specifying path for savestates

This commit is contained in:
JosJuice 2017-12-25 13:50:29 +01:00 committed by mahdihijazi
parent 1df69c5750
commit d9dd210739
2 changed files with 36 additions and 0 deletions

View file

@ -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