Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[Android] Add screenshot nativelibrary function.
  • Loading branch information
Sonicadvance1 committed Nov 15, 2013
1 parent 0720026 commit 15bb974
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
Expand Up @@ -111,6 +111,12 @@
*/
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.
*
Expand Down
6 changes: 6 additions & 0 deletions Source/Core/DolphinWX/Src/MainAndroid.cpp
Expand Up @@ -278,6 +278,7 @@ JNIEXPORT jstring JNICALL Java_org_dolphinemu_dolphinemu_NativeLibrary_GetTitle(
env->ReleaseStringUTFChars(jFile, File);
return env->NewStringUTF(Name.c_str());
}

JNIEXPORT jstring JNICALL Java_org_dolphinemu_dolphinemu_NativeLibrary_GetVersionString(JNIEnv *env, jobject obj)
{
return env->NewStringUTF(scm_rev_str);
Expand All @@ -288,6 +289,11 @@ JNIEXPORT jboolean JNICALL Java_org_dolphinemu_dolphinemu_NativeLibrary_Supports
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)
{
IniFile ini;
Expand Down

0 comments on commit 15bb974

Please sign in to comment.