summaryrefslogtreecommitdiff
path: root/Source/Android/app/src/main/java/org
diff options
context:
space:
mode:
authorTom Pratt <tom.pratt@outlook.com>2026-05-19 10:26:16 +0200
committerTom Pratt <tompratt@squareup.com>2026-05-19 12:03:02 +0200
commit06cc09cf09d27de28715a68e58fe8731bc311603 (patch)
treec5d35889016057ec34a3b67eff36ca1e68a5b19c /Source/Android/app/src/main/java/org
parentf63b81dd3963b3e25be707c4e1df7fdb24f220ed (diff)
Pass immutable games list to NetplayUICallbacks
Remove corresponding jni config. Rename Netplay to NetplaySession in jni config to match new kotlin name.
Diffstat (limited to 'Source/Android/app/src/main/java/org')
-rw-r--r--Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/features/netplay/NetplaySession.kt10
1 files changed, 8 insertions, 2 deletions
diff --git a/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/features/netplay/NetplaySession.kt b/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/features/netplay/NetplaySession.kt
index 9e530719d9..56676c4d3f 100644
--- a/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/features/netplay/NetplaySession.kt
+++ b/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/features/netplay/NetplaySession.kt
@@ -30,17 +30,23 @@ import org.dolphinemu.dolphinemu.features.netplay.model.SaveTransferProgress
import org.dolphinemu.dolphinemu.features.netplay.model.TraversalState
import org.dolphinemu.dolphinemu.features.settings.model.StringSetting
import org.dolphinemu.dolphinemu.model.GameFile
+import org.dolphinemu.dolphinemu.services.GameFileCacheManager
class NetplaySession(
private val onClosed: (NetplaySession) -> Unit,
) {
- private var netPlayUICallbacksPointer: Long = nativeCreateUICallbacks()
+ @Keep
+ private var netPlayUICallbacksPointer: Long =
+ nativeCreateUICallbacks(GameFileCacheManager.getGameFiles().value ?: emptyArray())
+ @Keep
private var netPlayClientPointer: Long = 0
+ @Keep
private var netPlayServerPointer: Long = 0
+ @Keep
private var bootSessionDataPointer: Long = 0
private val sessionScope = CoroutineScope(SupervisorJob())
@@ -238,7 +244,7 @@ class NetplaySession(
// JNI methods
- private external fun nativeCreateUICallbacks(): Long
+ private external fun nativeCreateUICallbacks(gameFiles: Array<GameFile>): Long
private external fun nativeJoin(): Long