mirror of
https://github.com/modmii/YAWM-ModMii-Edition.git
synced 2024-11-25 09:36:53 +01:00
Fix some warnings from newer GCC versions
There are others that require changing code flow to fix, perhaps I will do those later
This commit is contained in:
parent
26f884578e
commit
c52449fd4a
@ -46,14 +46,14 @@ void Con_ClearLine(void)
|
|||||||
void Con_FgColor(u32 color, u8 bold)
|
void Con_FgColor(u32 color, u8 bold)
|
||||||
{
|
{
|
||||||
/* Set foreground color */
|
/* Set foreground color */
|
||||||
printf("\x1b[%lu;%um", color + 30, bold);
|
printf("\x1b[%u;%um", color + 30, bold);
|
||||||
fflush(stdout);
|
fflush(stdout);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Con_BgColor(u32 color, u8 bold)
|
void Con_BgColor(u32 color, u8 bold)
|
||||||
{
|
{
|
||||||
/* Set background color */
|
/* Set background color */
|
||||||
printf("\x1b[%lu;%um", color + 40, bold);
|
printf("\x1b[%u;%um", color + 40, bold);
|
||||||
fflush(stdout);
|
fflush(stdout);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -63,7 +63,7 @@ void Con_FillRow(u32 row, u32 color, u8 bold)
|
|||||||
u32 cnt;
|
u32 cnt;
|
||||||
|
|
||||||
/* Set color */
|
/* Set color */
|
||||||
printf("\x1b[%lu;%um", color + 40, bold);
|
printf("\x1b[%u;%um", color + 40, bold);
|
||||||
fflush(stdout);
|
fflush(stdout);
|
||||||
|
|
||||||
/* Get console metrics */
|
/* Get console metrics */
|
||||||
@ -74,7 +74,7 @@ void Con_FillRow(u32 row, u32 color, u8 bold)
|
|||||||
fflush(stdout);
|
fflush(stdout);
|
||||||
|
|
||||||
/* Move to specified row */
|
/* Move to specified row */
|
||||||
printf("\x1b[%lu;0H", row);
|
printf("\x1b[%u;0H", row);
|
||||||
fflush(stdout);
|
fflush(stdout);
|
||||||
|
|
||||||
/* Fill row */
|
/* Fill row */
|
||||||
|
@ -72,7 +72,7 @@ u64 get_title_ios(u64 title) {
|
|||||||
|
|
||||||
//printf("Error! ES_GetStoredTMDSize: %d\n", ret);
|
//printf("Error! ES_GetStoredTMDSize: %d\n", ret);
|
||||||
|
|
||||||
sprintf(filepath, "/title/%08lx/%08lx/content/title.tmd", TITLE_UPPER(title), TITLE_LOWER(title));
|
sprintf(filepath, "/title/%08x/%08x/content/title.tmd", TITLE_UPPER(title), TITLE_LOWER(title));
|
||||||
|
|
||||||
ret = ISFS_Open(filepath, ISFS_OPEN_READ);
|
ret = ISFS_Open(filepath, ISFS_OPEN_READ);
|
||||||
if (ret <= 0)
|
if (ret <= 0)
|
||||||
@ -326,7 +326,7 @@ s32 Wad_Install(FILE *fp)
|
|||||||
|
|
||||||
if(TITLE_LOWER(tmd_data->sys_version) != 0 && isIOSstub(TITLE_LOWER(tmd_data->sys_version)))
|
if(TITLE_LOWER(tmd_data->sys_version) != 0 && isIOSstub(TITLE_LOWER(tmd_data->sys_version)))
|
||||||
{
|
{
|
||||||
printf("\n This Title wants IOS%li but the installed version\n is a stub.\n", TITLE_LOWER(tmd_data->sys_version));
|
printf("\n This Title wants IOS%i but the installed version\n is a stub.\n", TITLE_LOWER(tmd_data->sys_version));
|
||||||
ret = -999;
|
ret = -999;
|
||||||
goto err;
|
goto err;
|
||||||
}
|
}
|
||||||
@ -448,7 +448,7 @@ s32 Wad_Install(FILE *fp)
|
|||||||
|
|
||||||
Con_ClearLine();
|
Con_ClearLine();
|
||||||
|
|
||||||
printf("\r\t\t>> Installing content #%02ld...", content->cid);
|
printf("\r\t\t>> Installing content #%02d...", content->cid);
|
||||||
fflush(stdout);
|
fflush(stdout);
|
||||||
|
|
||||||
/* Encrypted content size */
|
/* Encrypted content size */
|
||||||
|
Loading…
Reference in New Issue
Block a user