mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2026-08-11 19:57:58 -05:00
Handle desync messages
Show them in the chat window and also in a toast during game play.
This commit is contained in:
@@ -43,6 +43,7 @@ static jmethodID s_netplay_update;
|
||||
static jmethodID s_netplay_on_show_chunked_progress_dialog;
|
||||
static jmethodID s_netplay_on_set_chunked_progress;
|
||||
static jmethodID s_netplay_on_hide_chunked_progress_dialog;
|
||||
static jmethodID s_netplay_on_desync;
|
||||
|
||||
static jclass s_netplay_player_class;
|
||||
static jmethodID s_netplay_player_constructor;
|
||||
@@ -327,6 +328,11 @@ jmethodID GetNetplayOnHideChunkedProgressDialog()
|
||||
return s_netplay_on_hide_chunked_progress_dialog;
|
||||
}
|
||||
|
||||
jmethodID GetNetplayOnDesync()
|
||||
{
|
||||
return s_netplay_on_desync;
|
||||
}
|
||||
|
||||
jclass GetNetplayPlayerClass()
|
||||
{
|
||||
return s_netplay_player_class;
|
||||
@@ -766,6 +772,8 @@ JNIEXPORT jint JNI_OnLoad(JavaVM* vm, void* reserved)
|
||||
env->GetMethodID(netplay_class, "onSetChunkedProgress", "(IJ)V");
|
||||
s_netplay_on_hide_chunked_progress_dialog =
|
||||
env->GetMethodID(netplay_class, "onHideChunkedProgressDialog", "()V");
|
||||
s_netplay_on_desync =
|
||||
env->GetMethodID(netplay_class, "onDesync", "(ILjava/lang/String;)V");
|
||||
env->DeleteLocalRef(netplay_class);
|
||||
|
||||
const jclass netplay_player_class =
|
||||
|
||||
Reference in New Issue
Block a user