mirror of
https://github.com/switchbrew/libnx.git
synced 2025-06-23 13:22:40 +02:00
fix fsdev bug
This commit is contained in:
parent
1bea504732
commit
5575966d0c
@ -283,13 +283,14 @@ static int _fsdevMountDevice(const char *name, FsFileSystem fs, fsdev_fsdevice *
|
|||||||
{
|
{
|
||||||
fsdev_fsdevice *device = NULL;
|
fsdev_fsdevice *device = NULL;
|
||||||
|
|
||||||
|
_fsdevInit(); //Ensure fsdev is initialized
|
||||||
|
|
||||||
if(fsdevFindDevice(name)) //Device is already mounted with the same name.
|
if(fsdevFindDevice(name)) //Device is already mounted with the same name.
|
||||||
{
|
{
|
||||||
fsFsClose(&fs);
|
fsFsClose(&fs);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
_fsdevInit(); //Ensure fsdev is initialized
|
|
||||||
device = fsdevFindDevice(NULL);
|
device = fsdevFindDevice(NULL);
|
||||||
if(device==NULL)
|
if(device==NULL)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user