Add NetPlayClient join and stub NetPlayUICallbacks

This commit is contained in:
Tom Pratt authored and Tom Pratt committed 2026-05-19 12:02:54 +02:00
1 parent a1983e5fa2
commit 1464fdfc28
6 files changed
+148

No files matched your search

@@ -3,9 +3,13 @@
package org.dolphinemu.dolphinemu.features.netplay
import androidx.annotation.Keep
import org.dolphinemu.dolphinemu.features.netplay.model.ConnectionType
object Netplay {
@Keep
private var netPlayClientPointer: Long = 0
@JvmStatic
external fun getNickname(): String
@@ -93,4 +97,10 @@ object Netplay {
indexPassword: String,
)
fun join() {
netPlayClientPointer = Join()
}
@JvmStatic
private external fun Join(): Long
}
@@ -62,5 +62,6 @@ class NetplaySetupViewModel : ViewModel() {
hostCode = hostCode.value,
connectPort = connectPort.value.toInt(),
)
Netplay.join()
}
}