mirror of
https://github.com/wiiu-env/wut.git
synced 2025-01-08 00:10:44 +01:00
sysapp: Change unknown structure to a struct typedef.
This commit is contained in:
parent
76c6e555d0
commit
c4214cef35
@ -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
|
||||||
}
|
}
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user