mirror of
https://github.com/wiiu-env/ftpiiu_plugin.git
synced 2024-11-18 02:39:21 +01:00
Init the virtual /fs/ and /fs/vol/ path properly
This commit is contained in:
parent
50600d3d82
commit
4ac4e0a9a6
@ -113,6 +113,9 @@ void AddVirtualFSPath(const char *name, const char *alias, const char *prefix) {
|
|||||||
VIRTUAL_FS = tmp;
|
VIRTUAL_FS = tmp;
|
||||||
|
|
||||||
VIRTUAL_FS[MAX_VIRTUAL_FS].name = strdup(name);
|
VIRTUAL_FS[MAX_VIRTUAL_FS].name = strdup(name);
|
||||||
|
VIRTUAL_FS[MAX_VIRTUAL_FS].alias = NULL;
|
||||||
|
VIRTUAL_FS[MAX_VIRTUAL_FS].prefix = NULL;
|
||||||
|
VIRTUAL_FS[MAX_VIRTUAL_FS].inserted = true;
|
||||||
|
|
||||||
MAX_VIRTUAL_FS++;
|
MAX_VIRTUAL_FS++;
|
||||||
}
|
}
|
||||||
@ -133,6 +136,9 @@ void AddVirtualFSVOLPath(const char *name, const char *alias, const char *prefix
|
|||||||
VIRTUAL_FS_VOL = tmp;
|
VIRTUAL_FS_VOL = tmp;
|
||||||
|
|
||||||
VIRTUAL_FS_VOL[MAX_VIRTUAL_FS_VOL].name = strdup(name);
|
VIRTUAL_FS_VOL[MAX_VIRTUAL_FS_VOL].name = strdup(name);
|
||||||
|
VIRTUAL_FS_VOL[MAX_VIRTUAL_FS_VOL].alias = NULL;
|
||||||
|
VIRTUAL_FS_VOL[MAX_VIRTUAL_FS_VOL].prefix = NULL;
|
||||||
|
VIRTUAL_FS_VOL[MAX_VIRTUAL_FS_VOL].inserted = true;
|
||||||
|
|
||||||
MAX_VIRTUAL_FS_VOL++;
|
MAX_VIRTUAL_FS_VOL++;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user