Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
miniaudio
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
miniaudio
Commits
1a83b0ba
Commit
1a83b0ba
authored
Feb 23, 2025
by
David Reid
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update fs.
parent
9511596a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
external/fs/fs.c
external/fs/fs.c
+5
-5
No files found.
external/fs/fs.c
View file @
1a83b0ba
...
@@ -3061,11 +3061,11 @@ FS_API fs_result fs_file_open_or_info(fs* pFS, const char* pFilePath, int openMo
...
@@ -3061,11 +3061,11 @@ FS_API fs_result fs_file_open_or_info(fs* pFS, const char* pFilePath, int openMo
if
(
pBestMountPoint
!=
NULL
)
{
if
(
pBestMountPoint
!=
NULL
)
{
char
pActualPathStack
[
1024
];
char
pActualPathStack
[
1024
];
char
*
pActualPathHeap
=
NULL
;
char
*
pActualPathHeap
=
NULL
;
char
*
pActualPath
=
pActualPathStack
;
char
*
pActualPath
;
int
actualPathLen
;
int
actualPathLen
;
char
pActualPathCleanStack
[
1024
];
char
pActualPathCleanStack
[
1024
];
char
*
pActualPathCleanHeap
=
NULL
;
char
*
pActualPathCleanHeap
=
NULL
;
char
*
pActualPathClean
=
pActualPathCleanStack
;
char
*
pActualPathClean
;
int
actualPathCleanLen
;
int
actualPathCleanLen
;
unsigned
int
cleanOptions
=
(
openMode
&
FS_NO_ABOVE_ROOT_NAVIGATION
);
unsigned
int
cleanOptions
=
(
openMode
&
FS_NO_ABOVE_ROOT_NAVIGATION
);
...
@@ -3201,7 +3201,7 @@ FS_API fs_result fs_file_open_or_info(fs* pFS, const char* pFilePath, int openMo
...
@@ -3201,7 +3201,7 @@ FS_API fs_result fs_file_open_or_info(fs* pFS, const char* pFilePath, int openMo
/* The mount point is a directory. We need to combine the sub-path with the mount point's original path and then load the file. */
/* The mount point is a directory. We need to combine the sub-path with the mount point's original path and then load the file. */
char
pActualPathStack
[
1024
];
char
pActualPathStack
[
1024
];
char
*
pActualPathHeap
=
NULL
;
char
*
pActualPathHeap
=
NULL
;
char
*
pActualPath
=
pActualPathStack
;
char
*
pActualPath
;
int
actualPathLen
;
int
actualPathLen
;
actualPathLen
=
fs_path_append
(
pActualPathStack
,
sizeof
(
pActualPathStack
),
iMountPoint
.
pPath
,
FS_NULL_TERMINATED
,
pFileSubPathClean
,
fileSubPathCleanLen
);
actualPathLen
=
fs_path_append
(
pActualPathStack
,
sizeof
(
pActualPathStack
),
iMountPoint
.
pPath
,
FS_NULL_TERMINATED
,
pFileSubPathClean
,
fileSubPathCleanLen
);
...
@@ -4129,7 +4129,7 @@ FS_API fs_result fs_unmount(fs* pFS, const char* pPathToMount_NotMountPoint)
...
@@ -4129,7 +4129,7 @@ FS_API fs_result fs_unmount(fs* pFS, const char* pPathToMount_NotMountPoint)
return
FS_INVALID_ARGS
;
return
FS_INVALID_ARGS
;
}
}
for
(
iteratorResult
=
fs_mount_list_first
(
pFS
->
pReadMountPoints
,
&
iterator
);
iteratorResult
==
FS_SUCCESS
;
iteratorResult
=
fs_mount_list_next
(
&
iterator
)
)
{
for
(
iteratorResult
=
fs_mount_list_first
(
pFS
->
pReadMountPoints
,
&
iterator
);
iteratorResult
==
FS_SUCCESS
;
/*iteratorResult = fs_mount_list_next(&iterator)*/
)
{
if
(
strcmp
(
pPathToMount_NotMountPoint
,
iterator
.
pPath
)
==
0
)
{
if
(
strcmp
(
pPathToMount_NotMountPoint
,
iterator
.
pPath
)
==
0
)
{
if
(
iterator
.
internal
.
pMountPoint
->
closeArchiveOnUnmount
)
{
if
(
iterator
.
internal
.
pMountPoint
->
closeArchiveOnUnmount
)
{
fs_close_archive
(
iterator
.
pArchive
);
fs_close_archive
(
iterator
.
pArchive
);
...
@@ -4258,7 +4258,7 @@ FS_API fs_result fs_unmount_write(fs* pFS, const char* pPathToMount_NotMountPoin
...
@@ -4258,7 +4258,7 @@ FS_API fs_result fs_unmount_write(fs* pFS, const char* pPathToMount_NotMountPoin
return
FS_INVALID_ARGS
;
return
FS_INVALID_ARGS
;
}
}
for
(
iteratorResult
=
fs_mount_list_first
(
pFS
->
pWriteMountPoints
,
&
iterator
);
iteratorResult
==
FS_SUCCESS
;
iteratorResult
=
fs_mount_list_next
(
&
iterator
)
)
{
for
(
iteratorResult
=
fs_mount_list_first
(
pFS
->
pWriteMountPoints
,
&
iterator
);
iteratorResult
==
FS_SUCCESS
;
/*iteratorResult = fs_mount_list_next(&iterator)*/
)
{
if
(
strcmp
(
pPathToMount_NotMountPoint
,
iterator
.
pPath
)
==
0
)
{
if
(
strcmp
(
pPathToMount_NotMountPoint
,
iterator
.
pPath
)
==
0
)
{
fs_mount_list_remove
(
pFS
->
pWriteMountPoints
,
iterator
.
internal
.
pMountPoint
);
fs_mount_list_remove
(
pFS
->
pWriteMountPoints
,
iterator
.
internal
.
pMountPoint
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment