This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 1 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
about ProOnline support
#17
I try to add a ButtonGroup to enable/disable ProOnline and enable/disable the client/server port shiftsSmile
   
code file

.zip   code.zip (Size: 62.4 KB / Downloads: 174)
code SettingsGUI.java
Code:
setStringFromSettings(metaServerTextField, "network.ProOnline.metaServer");
        setStringFromSettings(broadcastAddressTextField,"network.broadcastAddress");
        setBoolFromSettings(lanMultiPlayerRadioButton, "emu.lanMultiPlayer");
        setBoolFromSettings(netServerPortShiftRadioButton, "emu.netServerPortShift");
        setBoolFromSettings(netClientPortShiftRadioButton, "emu.netClientPortShift");
        setBoolFromSettings(enableProOnlineRadioButton, "emu.enableProOnline");



        setStringToSettings(metaServerTextField, "network.ProOnline.metaServer");
        setStringToSettings(broadcastAddressTextField,"network.broadcastAddress");
        setBoolToSettings(lanMultiPlayerRadioButton, "emu.lanMultiPlayer");
        setBoolToSettings(netServerPortShiftRadioButton, "emu.netServerPortShift");
        setBoolToSettings(netClientPortShiftRadioButton, "emu.netClientPortShift");
        setBoolToSettings(enableProOnlineRadioButton, "emu.enableProOnline");
code MainGUI.java
Code:
private void processArgs(String[] args) {
        if (Settings.getInstance().readBool("emu.enableProOnline")) {
                    ProOnlineNetworkAdapter.setEnabled(true);                
                }else  if (Settings.getInstance().readBool("emu.netServerPortShift")) {
                    Modules.sceNetAdhocModule.setNetServerPortShift(100);
                }else  if (Settings.getInstance().readBool("emu.netClientPortShift")) {
                    Modules.sceNetAdhocModule.setNetClientPortShift(100);                
                }else
Reply


Messages In This Thread
about ProOnline support - by onelight - 05-06-2014, 01:42 AM
RE: about ProOnline support - by gid15 - 05-06-2014, 06:50 AM
RE: about ProOnline support - by onelight - 05-06-2014, 09:27 AM
RE: about ProOnline support - by gid15 - 05-06-2014, 09:46 AM
RE: about ProOnline support - by onelight - 05-06-2014, 10:03 AM
RE: about ProOnline support - by onelight - 05-06-2014, 01:11 PM
RE: about ProOnline support - by gid15 - 05-30-2014, 12:10 PM
RE: about ProOnline support - by onelight - 05-30-2014, 03:54 PM
RE: about ProOnline support - by onelight - 02-08-2015, 04:05 AM
RE: about ProOnline support - by onelight - 05-07-2014, 01:21 PM
RE: about ProOnline support - by gid15 - 05-07-2014, 01:56 PM
RE: about ProOnline support - by onelight - 05-07-2014, 02:49 PM
RE: about ProOnline support - by onelight - 05-08-2014, 02:43 PM
RE: about ProOnline support - by gid15 - 05-09-2014, 06:38 AM
RE: about ProOnline support - by onelight - 05-09-2014, 07:20 AM
RE: about ProOnline support - by gid15 - 05-09-2014, 11:46 AM
RE: about ProOnline support - by onelight - 05-09-2014, 12:22 PM
RE: about ProOnline support - by Hykem - 05-09-2014, 02:36 PM
RE: about ProOnline support - by onelight - 05-09-2014, 04:05 PM
RE: about ProOnline support - by onelight - 05-17-2014, 06:04 AM
RE: about ProOnline support - by gid15 - 05-18-2014, 11:12 AM
RE: about ProOnline support - by Hykem - 05-18-2014, 02:55 PM
RE: about ProOnline support - by onelight - 05-18-2014, 02:57 PM
RE: about ProOnline support - by gid15 - 05-18-2014, 07:44 PM
RE: about ProOnline support - by onelight - 05-19-2014, 01:12 PM
RE: about ProOnline support - by gid15 - 05-19-2014, 04:50 PM
RE: about ProOnline support - by onelight - 05-20-2014, 02:24 PM
RE: about ProOnline support - by gid15 - 05-20-2014, 07:52 PM
RE: about ProOnline support - by onelight - 05-21-2014, 12:04 AM
RE: about ProOnline support - by onelight - 05-21-2014, 12:44 PM
RE: about ProOnline support - by onelight - 05-22-2014, 07:51 AM
RE: about ProOnline support - by gid15 - 06-03-2014, 04:41 PM
RE: about ProOnline support - by onelight - 06-04-2014, 03:58 AM
RE: about ProOnline support - by onelight - 06-06-2014, 04:08 AM
RE: about ProOnline support - by gid15 - 06-13-2014, 07:04 PM
RE: about ProOnline support - by onelight - 07-16-2014, 12:38 AM
RE: about ProOnline support - by gid15 - 07-16-2014, 03:39 PM
RE: about ProOnline support - by onelight - 07-21-2014, 12:49 AM
RE: about ProOnline support - by onelight - 07-29-2014, 04:41 PM
RE: about ProOnline support - by gid15 - 07-30-2014, 03:39 PM
RE: about ProOnline support - by onelight - 07-30-2014, 04:14 PM
RE: about ProOnline support - by gid15 - 07-30-2014, 04:29 PM
RE: about ProOnline support - by onelight - 07-31-2014, 01:34 AM
RE: about ProOnline support - by onelight - 12-02-2014, 01:56 AM
RE: about ProOnline support - by gid15 - 12-03-2014, 04:25 PM
RE: about ProOnline support - by onelight - 12-04-2014, 12:43 AM
RE: about ProOnline support - by lilt00 - 12-04-2014, 01:29 PM
RE: about ProOnline support - by onelight - 12-04-2014, 02:44 PM
RE: about ProOnline support - by lilt00 - 12-06-2014, 03:42 PM
RE: about ProOnline support - by onelight - 12-08-2014, 02:26 PM
RE: about ProOnline support - by onelight - 12-19-2014, 05:43 AM
RE: about ProOnline support - by onelight - 03-08-2015, 01:57 AM
RE: about ProOnline support - by gid15 - 03-08-2015, 06:57 PM
RE: about ProOnline support - by onelight - 03-09-2015, 01:53 AM
RE: about ProOnline support - by onelight - 08-01-2015, 01:08 AM

Forum Jump:


Users browsing this thread: 8 Guest(s)