mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-10 12:45:46 +00:00
[Android] Add screenshot nativelibrary function.
This commit is contained in:
parent
0720026dab
commit
15bb974224
@ -111,6 +111,12 @@ public final class NativeLibrary
|
|||||||
*/
|
*/
|
||||||
public static native boolean SupportsNEON();
|
public static native boolean SupportsNEON();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Saves a screen capture of the game
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public static native void SaveScreenShot();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Saves a game state to the slot number.
|
* Saves a game state to the slot number.
|
||||||
*
|
*
|
||||||
|
@ -278,6 +278,7 @@ JNIEXPORT jstring JNICALL Java_org_dolphinemu_dolphinemu_NativeLibrary_GetTitle(
|
|||||||
env->ReleaseStringUTFChars(jFile, File);
|
env->ReleaseStringUTFChars(jFile, File);
|
||||||
return env->NewStringUTF(Name.c_str());
|
return env->NewStringUTF(Name.c_str());
|
||||||
}
|
}
|
||||||
|
|
||||||
JNIEXPORT jstring JNICALL Java_org_dolphinemu_dolphinemu_NativeLibrary_GetVersionString(JNIEnv *env, jobject obj)
|
JNIEXPORT jstring JNICALL Java_org_dolphinemu_dolphinemu_NativeLibrary_GetVersionString(JNIEnv *env, jobject obj)
|
||||||
{
|
{
|
||||||
return env->NewStringUTF(scm_rev_str);
|
return env->NewStringUTF(scm_rev_str);
|
||||||
@ -288,6 +289,11 @@ JNIEXPORT jboolean JNICALL Java_org_dolphinemu_dolphinemu_NativeLibrary_Supports
|
|||||||
return cpu_info.bNEON;
|
return cpu_info.bNEON;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
JNIEXPORT void JNICALL Java_org_dolphinemu_dolphinemu_NativeLibrary_SaveScreenShot(JNIEnv *env, jobject obj)
|
||||||
|
{
|
||||||
|
Core::SaveScreenShot();
|
||||||
|
}
|
||||||
|
|
||||||
JNIEXPORT jstring JNICALL Java_org_dolphinemu_dolphinemu_NativeLibrary_GetConfig(JNIEnv *env, jobject obj, jstring jFile, jstring jKey, jstring jValue, jstring jDefault)
|
JNIEXPORT jstring JNICALL Java_org_dolphinemu_dolphinemu_NativeLibrary_GetConfig(JNIEnv *env, jobject obj, jstring jFile, jstring jKey, jstring jValue, jstring jDefault)
|
||||||
{
|
{
|
||||||
IniFile ini;
|
IniFile ini;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user