summaryrefslogtreecommitdiff
path: root/Source/Android/jni/NetPlay/Netplay.cpp
diff options
context:
space:
mode:
authorTom Pratt <tom.pratt@outlook.com>2026-05-12 12:58:44 -0700
committerTom Pratt <tompratt@squareup.com>2026-05-19 12:03:01 +0200
commit4c0bf2944bedb428dd46db4cb39ea5dd9d5d8c98 (patch)
tree22a255e9112e8b9b5d69ef281456a4b08f83fc00 /Source/Android/jni/NetPlay/Netplay.cpp
parent76ae44569415c0ffb674d184312ea898aab92a18 (diff)
Implement DoAllPlayersHaveGame() check
Diffstat (limited to 'Source/Android/jni/NetPlay/Netplay.cpp')
-rw-r--r--Source/Android/jni/NetPlay/Netplay.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/Source/Android/jni/NetPlay/Netplay.cpp b/Source/Android/jni/NetPlay/Netplay.cpp
index b19e1a3c9d..736f4e0109 100644
--- a/Source/Android/jni/NetPlay/Netplay.cpp
+++ b/Source/Android/jni/NetPlay/Netplay.cpp
@@ -181,6 +181,15 @@ Java_org_dolphinemu_dolphinemu_features_netplay_NetplaySession_nativeChangeGame(
server->ChangeGame(game_file->GetSyncIdentifier(), game_file->GetLongName());
}
+JNIEXPORT jboolean JNICALL
+Java_org_dolphinemu_dolphinemu_features_netplay_NetplaySession_nativeDoAllPlayersHaveGame(
+ JNIEnv* env, jobject obj)
+{
+ if (auto* client = GetClientPointer(env, obj))
+ return static_cast<jboolean>(client->DoAllPlayersHaveGame());
+ return JNI_TRUE;
+}
+
JNIEXPORT void JNICALL
Java_org_dolphinemu_dolphinemu_features_netplay_NetplaySession_nativeStartGame(JNIEnv* env,
jobject obj)