mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -06:00
[Android] Add save state native functions.
This commit is contained in:
@ -11,12 +11,11 @@ import android.content.Intent;
|
||||
import android.os.Bundle;
|
||||
import android.os.Environment;
|
||||
import android.util.Log;
|
||||
|
||||
import java.io.*;
|
||||
|
||||
import org.dolphinemu.dolphinemu.gamelist.GameListActivity;
|
||||
import org.dolphinemu.dolphinemu.settings.UserPreferences;
|
||||
|
||||
import java.io.*;
|
||||
|
||||
/**
|
||||
* The main activity of this emulator.
|
||||
*
|
||||
|
@ -104,6 +104,22 @@ public final class NativeLibrary
|
||||
*/
|
||||
public static native String GetVersionString();
|
||||
|
||||
/**
|
||||
* Saves a game state to the slot number.
|
||||
*
|
||||
* @param slot The slot location to save state to.
|
||||
*/
|
||||
public static native void SaveState(int slot);
|
||||
|
||||
/**
|
||||
* Loads a game state from the slot number.
|
||||
*
|
||||
* @param slot The slot location to load state from.
|
||||
*/
|
||||
public static native void LoadState(int slot);
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Begins emulation.
|
||||
*
|
||||
|
Reference in New Issue
Block a user