sysapp: Change unknown structure to a struct typedef.

This commit is contained in:
James Benton 2018-06-13 17:36:12 +01:00
parent 76c6e555d0
commit c4214cef35
2 changed files with 6 additions and 7 deletions

View File

@ -11,8 +11,7 @@
extern "C" {
#endif
//TODO
typedef void sysapp_input_struct;
typedef struct SysAppBrowserArgs SysAppBrowserArgs;
void
SYSSwitchToSyncControllerOnHBM();
@ -27,7 +26,7 @@ void
_SYSSwitchToMainApp();
void
SYSSwitchToBrowserForViewer(sysapp_input_struct*);
SYSSwitchToBrowserForViewer(SysAppBrowserArgs *);
#ifdef __cplusplus
}

View File

@ -4,9 +4,9 @@ char *
__wut_fs_fixpath(struct _reent *r,
const char *path)
{
char *p = strchr(path, ':')+1;
char *p = strchr(path, ':') + 1;
if(!strchr(path, ':')) {
if (!strchr(path, ':')) {
p = (char*)path;
}
@ -15,13 +15,13 @@ __wut_fs_fixpath(struct _reent *r,
return NULL;
}
char *__fixedpath = memalign(0x40, PATH_MAX+1);
char *__fixedpath = memalign(0x40, PATH_MAX + 1);
if (__fixedpath == NULL) {
return NULL;
}
// cwd is handled by coreinit, so just strip the 'fs:' if it exists
// cwd is handled by coreinit, so just strip the 'device:' if it exists
strcpy(__fixedpath, p);
return __fixedpath;
}