Show save transfer progress

When transferring saves from the host. Equivalent of ChunkedProgressDialog in QT.
This commit is contained in:
Tom Pratt
2026-04-25 17:39:41 +02:00
committed by Tom Pratt
parent 480968f05e
commit 8141a74671
9 changed files with 227 additions and 15 deletions

View File

@@ -40,6 +40,9 @@ static jmethodID s_netplay_on_host_input_authority_changed;
static jmethodID s_netplay_on_pad_buffer_changed;
static jmethodID s_netplay_on_chat_message_received;
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 jclass s_netplay_player_class;
static jmethodID s_netplay_player_constructor;
@@ -309,6 +312,21 @@ jmethodID GetNetplayUpdate()
return s_netplay_update;
}
jmethodID GetNetplayOnShowChunkedProgressDialog()
{
return s_netplay_on_show_chunked_progress_dialog;
}
jmethodID GetNetplayOnSetChunkedProgress()
{
return s_netplay_on_set_chunked_progress;
}
jmethodID GetNetplayOnHideChunkedProgressDialog()
{
return s_netplay_on_hide_chunked_progress_dialog;
}
jclass GetNetplayPlayerClass()
{
return s_netplay_player_class;
@@ -741,6 +759,12 @@ JNIEXPORT jint JNI_OnLoad(JavaVM* vm, void* reserved)
s_netplay_on_chat_message_received =
env->GetStaticMethodID(netplay_class, "onChatMessageReceived", "(Ljava/lang/String;)V");
s_netplay_update = env->GetStaticMethodID(netplay_class, "onUpdate", "([Lorg/dolphinemu/dolphinemu/features/netplay/model/Player;)V");
s_netplay_on_show_chunked_progress_dialog =
env->GetStaticMethodID(netplay_class, "onShowChunkedProgressDialog", "(Ljava/lang/String;J[I)V");
s_netplay_on_set_chunked_progress =
env->GetStaticMethodID(netplay_class, "onSetChunkedProgress", "(IJ)V");
s_netplay_on_hide_chunked_progress_dialog =
env->GetStaticMethodID(netplay_class, "onHideChunkedProgressDialog", "()V");
env->DeleteLocalRef(netplay_class);
const jclass netplay_player_class =