forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Patch for psputility_netconf.h

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
Insert_witty_name



Joined: 10 May 2006
Posts: 376

PostPosted: Sat Jul 21, 2007 12:25 pm    Post subject: Patch for psputility_netconf.h Reply with quote

For psputility_netconf.h:

Code:
--- psputility_netconf.h   2007-07-21 03:00:52.281250000 +0100
+++ psputility_netconf.h   2007-07-21 03:16:07.156250000 +0100
@@ -26,16 +26,21 @@
 };
 
 enum pspUtilityNetconfStatus {
-   PSP_NETCONF_STATUS_INIT = 1,
+   PSP_NETCONF_STATUS_NONE,
+   PSP_NETCONF_STATUS_INIT,
    PSP_NETCONF_STATUS_RUNNING,
-   PSP_NETCONF_STATUS_FINISHED
+   PSP_NETCONF_STATUS_FINISHED,
+   PSP_NETCONF_STATUS_SHUTDOWN
 };
 
 typedef struct _pspUtilityNetconfData {
    u32 size;
    int language;
    int buttonSwap;
-   int unknown[4];
+   int graphicsThread; // graphics thread priority
+   int unknown; // some other thread priority?
+   int fontThread; // font (?) thread priority (ScePafThread)
+   int soundThread; // sound thread priority
    int result;
    int unknown2[4];
    int action; //one of pspUtilityNetconfActions


And for samples/utility/netdialog:

Code:
--- main.c   2007-07-21 02:58:53.125000000 +0100
+++ main.c   2007-07-21 03:05:07.968750000 +0100
@@ -193,10 +193,10 @@
    data.size = sizeof(data);
    data.language = PSP_SYSTEMPARAM_LANGUAGE_ENGLISH;
    data.buttonSwap = PSP_UTILITY_ACCEPT_CROSS;
-   data.unknown[0] = 17;
-   data.unknown[1] = 19;
-   data.unknown[2] = 18;
-   data.unknown[3] = 16;
+   data.graphicsThread = 17;
+   data.unknown = 19;
+   data.fontThread = 18;
+   data.soundThread = 16;
    data.action = PSP_NETCONF_ACTION_CONNECTAP;
 
    sceUtilityNetconfInitStart(&data);


I also noticed that the 'states' enum and the initial 9 members of the 'data' struct are universal across all the dialogs.

Would anyone be adverse to me creating a patch to wrap this up into just one shared enum for the states? Also a shared struct for the first 9 members of the data struct too.

As it is now, the naming convention differs slightly across all the dialogs.
Back to top
View user's profile Send private message
dot_blank



Joined: 28 Sep 2005
Posts: 498
Location: Brasil

PostPosted: Sat Jul 21, 2007 2:17 pm    Post subject: Reply with quote

agreed with aforementioned
_________________
10011011 00101010 11010111 10001001 10111010
Back to top
View user's profile Send private message
ooPo
Site Admin


Joined: 17 Jan 2004
Posts: 2032
Location: Canada

PostPosted: Sat Jul 21, 2007 2:42 pm    Post subject: Reply with quote

Code:
Sending        src/samples/utility/netdialog/main.c
Sending        src/utility/psputility_netconf.h
Transmitting file data ..
Committed revision 2272.

Added to the respository. Let me know when you have the other patch done and I'll add it for you.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group