Handle traversal state changes and errors
Traversal connections show in the joining info UI. Non fatal errors show the retry button. Fatal errors end the netplay session.
This commit is contained in:
1 parent
86a0f22887
commit
86de5ef4b0
11 files changed
+247
-12
No files matched your search
@@ -8,6 +8,7 @@
|
||||
#include <jni.h>
|
||||
|
||||
#include "Common/CommonTypes.h"
|
||||
#include "Common/TraversalClient.h"
|
||||
#include "Core/NetPlayCommon.h"
|
||||
#include "Core/Boot/Boot.h"
|
||||
#include "Core/Config/NetplaySettings.h"
|
||||
@@ -194,6 +195,14 @@ Java_org_dolphinemu_dolphinemu_features_netplay_NetplaySession_nativeGetExternal
|
||||
return ToJString(env, ip);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL
|
||||
Java_org_dolphinemu_dolphinemu_features_netplay_NetplaySession_nativeReconnectTraversal(JNIEnv*,
|
||||
jobject)
|
||||
{
|
||||
if (Common::g_TraversalClient)
|
||||
Common::g_TraversalClient->ReconnectToServer();
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL
|
||||
Java_org_dolphinemu_dolphinemu_features_netplay_NetplaySession_nativeReleaseUICallbacks(JNIEnv*,
|
||||
jobject,
|
||||
|
||||
Reference in new issue
Block a user