Fixed online gaming. Removed some warnings when compiling with R19

This commit is contained in:
e.bovendeur 2009-12-20 18:28:30 +00:00
parent 5d19915af8
commit dc34b25542
5 changed files with 11 additions and 13 deletions

View File

@ -1014,7 +1014,7 @@ class GuiNumpad : public GuiWindow
char kbtextstr[256]; char kbtextstr[256];
protected: protected:
u32 kbtextmaxlen; u32 kbtextmaxlen;
char keys[10]; char keys[11];
GuiText * kbText; GuiText * kbText;
GuiImage * keyTextboxImg; GuiImage * keyTextboxImg;
@ -1026,10 +1026,10 @@ class GuiNumpad : public GuiWindow
GuiImage * keyClearImg; GuiImage * keyClearImg;
GuiImage * keyClearOverImg; GuiImage * keyClearOverImg;
GuiButton * keyClear; GuiButton * keyClear;
GuiButton * keyBtn[10]; GuiButton * keyBtn[11];
GuiImage * keyImg[10]; GuiImage * keyImg[11];
GuiImage * keyImgOver[10]; GuiImage * keyImgOver[11];
GuiText * keyTxt[10]; GuiText * keyTxt[11];
GuiImageData * keyTextbox; GuiImageData * keyTextbox;
GuiImageData * keyMedium; GuiImageData * keyMedium;
GuiImageData * keyMediumOver; GuiImageData * keyMediumOver;

View File

@ -466,7 +466,7 @@ int MainMenu(int menu) {
if (load_from_fs != PART_FS_WBFS && ios2 == 249) { if (load_from_fs != PART_FS_WBFS && ios2 == 249) {
ios2 = 222; ios2 = 222;
} }
bool onlinefix = load_from_fs != PART_FS_WBFS && ShutdownWC24(); bool onlinefix = ShutdownWC24();
// You cannot reload ios when loading from fat // You cannot reload ios when loading from fat
if (IOS_GetVersion() != ios2 || onlinefix) { if (IOS_GetVersion() != ios2 || onlinefix) {

View File

@ -198,7 +198,7 @@ voidpf filestream;
uLong *pX; uLong *pX;
{ {
uLong x ; uLong x ;
int i; int i = 0;
int err; int err;
err = unzlocal_getByte(pzlib_filefunc_def,filestream,&i); err = unzlocal_getByte(pzlib_filefunc_def,filestream,&i);
@ -226,7 +226,7 @@ voidpf filestream;
uLong *pX; uLong *pX;
{ {
uLong x ; uLong x ;
int i; int i = 0;
int err; int err;
err = unzlocal_getByte(pzlib_filefunc_def,filestream,&i); err = unzlocal_getByte(pzlib_filefunc_def,filestream,&i);

View File

@ -346,9 +346,7 @@ void gamepatches(void * dst, int len, u8 videoSelected, u8 patchcountrystring, u
NewSuperMarioBrosPatch(dst, len); NewSuperMarioBrosPatch(dst, len);
//gprintf("\nLoading WIP Patch..."); do_wip_code((u8 *)0x80000000);
u32 ret = do_wip_code((u8 *)0x80000000);
//gprintf("done\n", ret);
//if(Settings.anti002fix == on) //if(Settings.anti002fix == on)

View File

@ -53,7 +53,7 @@ bool is_gameid(char *id)
{ {
int i; int i;
for (i=0; i<6; i++) { for (i=0; i<6; i++) {
if (!isalnum(id[i])) return false; if (!isalnum((u32) id[i])) return false;
} }
return true; return true;
} }
@ -339,7 +339,7 @@ void mk_gameid_title(struct discHdr *header, char *name, int re_space)
// replace silly chars with '_' // replace silly chars with '_'
len = strlen(name); len = strlen(name);
for (i = 0; i < len; i++) { for (i = 0; i < len; i++) {
if(strchr("\\/:<>|\"", name[i]) || iscntrl(name[i])) { if(strchr("\\/:<>|\"", name[i]) || iscntrl((u32) name[i])) {
name[i] = '_'; name[i] = '_';
} }
if(re_space && name[i]==' ') { if(re_space && name[i]==' ') {