| View previous topic :: View next topic |
| Author |
Message |
Insert_witty_name
Joined: 10 May 2006 Posts: 376
|
Posted: Sat Jul 21, 2007 12:25 pm Post subject: Patch for psputility_netconf.h |
|
|
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 |
|
 |
dot_blank

Joined: 28 Sep 2005 Posts: 498 Location: Brasil
|
Posted: Sat Jul 21, 2007 2:17 pm Post subject: |
|
|
agreed with aforementioned _________________ 10011011 00101010 11010111 10001001 10111010 |
|
| Back to top |
|
 |
ooPo Site Admin
Joined: 17 Jan 2004 Posts: 2032 Location: Canada
|
Posted: Sat Jul 21, 2007 2:42 pm Post subject: |
|
|
| 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 |
|
 |
|