Add NetPlayClient join and stub NetPlayUICallbacks
This commit is contained in:
1 parent
a1983e5fa2
commit
1464fdfc28
6 files changed
+148
No files matched your search
+10
@@ -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
|
||||
}
|
||||
+1
@@ -62,5 +62,6 @@ class NetplaySetupViewModel : ViewModel() {
|
||||
hostCode = hostCode.value,
|
||||
connectPort = connectPort.value.toInt(),
|
||||
)
|
||||
Netplay.join()
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user