MCPcopy Create free account
hub / github.com/TASEmulators/fceux / launchNet

Function launchNet

src/drivers/sdl/gui.cpp:421–434  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

419GtkWidget *pwEntry;
420
421void launchNet (GtkWidget * w, gpointer p)
422{
423 char *ip = (char *) gtk_entry_get_text (GTK_ENTRY (ipEntry));
424 char *pw = (char *) gtk_entry_get_text (GTK_ENTRY (pwEntry));
425 int port = (int) gtk_spin_button_get_value (GTK_SPIN_BUTTON (portSpin));
426
427 g_config->setOption ("SDL.NetworkIP", ip);
428 g_config->setOption ("SDL.NetworkPassword", pw);
429 g_config->setOption ("SDL.NetworkPort", port);
430
431 gtk_widget_destroy (GTK_WIDGET (w));
432
433 loadGame ();
434}
435
436void setUsername (GtkWidget * w, gpointer p)
437{

Callers 1

netResponseFunction · 0.85

Calls 2

loadGameFunction · 0.85
setOptionMethod · 0.80

Tested by

no test coverage detected