Patch for psputility_netconf.h

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
Insert_witty_name
Posts: 376
Joined: Wed May 10, 2006 11:31 pm

Patch for psputility_netconf.h

Post by Insert_witty_name »

For psputility_netconf.h:

Code: Select all

--- 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: Select all

--- 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.
User avatar
dot_blank
Posts: 498
Joined: Wed Sep 28, 2005 8:47 am
Location: Brasil

Post by dot_blank »

agreed with aforementioned
10011011 00101010 11010111 10001001 10111010
ooPo
Site Admin
Posts: 2023
Joined: Sat Jan 17, 2004 9:56 am
Location: Canada
Contact:

Post by ooPo »

Code: Select all

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.
Post Reply