Search found 7 matches

by kgsws
Sat Dec 08, 2007 9:35 am
Forum: PSP Development
Topic: SceUtilitySavedataParam
Replies: 14
Views: 6372

yes, but compiler can handle it diffrend way than creating a pointer by using *. if you thing that way, then everything is pointer to some location in memory (yes, data must be stored somewhere) int is array of 4 chars: int somenum; char somechars[4]; char is pointer without using *? and why int isn...
by kgsws
Sat Dec 08, 2007 3:40 am
Forum: PSP Development
Topic: SceUtilitySavedataParam
Replies: 14
Views: 6372

i still dont understand why: savedata->saveNameMultiple = (char **) nameMultiple; and no: savedata->saveNameMultiple = &nameMultiple; (it is just pointer = pointer) (becouse & makes pointer from non pointer) becouse there are two '**' markers, every marker means pointer, so it is pointer to ...
by kgsws
Fri Dec 07, 2007 11:01 pm
Forum: PSP Development
Topic: SceUtilitySavedataParam
Replies: 14
Views: 6372

great, now i understant it more, but if i create: char *names[6] = { "NAME1", "NAME2", "NAME3", "NAME4", "NAME5", "" // Terminator }; then its size is 6*4 bytes, and every 4 bytes is pointer to char(s). For...
by kgsws
Fri Dec 07, 2007 2:58 am
Forum: PSP Development
Topic: SceUtilitySavedataParam
Replies: 14
Views: 6372

but if i define pointer to something, an non pointer, then i must use & character ... char *point; // 4 bytes char nonpoint // 1 byte i can do: nonpoint = 'X'; but i cant do: point = 'X'; // becouse pointer is not set, and it will try to write to address 0x00000000 i can use: point = malloc(1); ...
by kgsws
Thu Dec 06, 2007 11:29 pm
Forum: PSP Development
Topic: SceUtilitySavedataParam
Replies: 14
Views: 6372

but, in first post is this: in struct SceUtilitySavedataParam: char *saveNames; pointer to char(s), is it right? and after i defined new struct typedef struct { char name1[20]; char name2[20]; char name3[20]; char name4[20]; char name5[20]; char nothing[20]; // Terminator } savenames_t; no pointers,...
by kgsws
Thu Dec 06, 2007 3:43 am
Forum: PSP Development
Topic: SceUtilitySavedataParam
Replies: 14
Views: 6372

i am not sure about this line: char **saveNameMultiple; it is pointer to pointer to char(s), but what i use is just: char *saveNameMultiple; pointer to char(s) and with this: savedata->saveNameMultiple = (char **) nameMultiple; isnt better to do savedata->saveNameMultiple = &nameMultiple; of cou...
by kgsws
Thu Dec 06, 2007 1:01 am
Forum: PSP Development
Topic: SceUtilitySavedataParam
Replies: 14
Views: 6372

SceUtilitySavedataParam

I dont know if it is somewhere on net ... I wanted to update all 3 ports (hexen, heretic, doom) with PSP's system functions, and i discovered bug in SceUtilitySavedataParam, i found correct things in memory of original game, there is fix: typedef struct SceUtilitySavedataParam { pspUtilityD...