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" { extern "C" {
#endif #endif
//TODO typedef struct SysAppBrowserArgs SysAppBrowserArgs;
typedef void sysapp_input_struct;
void void
SYSSwitchToSyncControllerOnHBM(); SYSSwitchToSyncControllerOnHBM();
@ -27,7 +26,7 @@ void
_SYSSwitchToMainApp(); _SYSSwitchToMainApp();
void void
SYSSwitchToBrowserForViewer(sysapp_input_struct*); SYSSwitchToBrowserForViewer(SysAppBrowserArgs *);
#ifdef __cplusplus #ifdef __cplusplus
} }

View File

@ -4,9 +4,9 @@ char *
__wut_fs_fixpath(struct _reent *r, __wut_fs_fixpath(struct _reent *r,
const char *path) const char *path)
{ {
char *p = strchr(path, ':')+1; char *p = strchr(path, ':') + 1;
if(!strchr(path, ':')) { if (!strchr(path, ':')) {
p = (char*)path; p = (char*)path;
} }
@ -15,13 +15,13 @@ __wut_fs_fixpath(struct _reent *r,
return NULL; return NULL;
} }
char *__fixedpath = memalign(0x40, PATH_MAX+1); char *__fixedpath = memalign(0x40, PATH_MAX + 1);
if (__fixedpath == NULL) { if (__fixedpath == NULL) {
return 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); strcpy(__fixedpath, p);
return __fixedpath; return __fixedpath;
} }