mirror of
https://github.com/wiiu-env/wut.git
synced 2025-01-06 15:08:13 +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" {
|
||||
#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
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user