Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro
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
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
ygopro
Commits
6705d32a
Commit
6705d32a
authored
Feb 07, 2026
by
wind2009
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'mercury/patch-myfs-complete' into develop
parents
70d3c39f
d1500bc2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
gframe/myfilesystem.h
gframe/myfilesystem.h
+4
-2
No files found.
gframe/myfilesystem.h
View file @
6705d32a
...
@@ -8,8 +8,10 @@
...
@@ -8,8 +8,10 @@
#ifndef _WIN32
#ifndef _WIN32
#include <dirent.h>
#include <dirent.h>
#include <sys/stat.h>
#include <sys/stat.h>
#include <unistd.h>
#include <vector>
#include <vector>
#include <algorithm>
#include <algorithm>
#include <string>
#endif
#endif
#ifdef _WIN32
#ifdef _WIN32
...
@@ -182,7 +184,7 @@ public:
...
@@ -182,7 +184,7 @@ public:
bool
success
=
true
;
bool
success
=
true
;
TraversalDir
(
dir
,
[
dir
,
&
success
](
const
char
*
name
,
bool
isdir
)
{
TraversalDir
(
dir
,
[
dir
,
&
success
](
const
char
*
name
,
bool
isdir
)
{
char
full_path
[
1024
];
char
full_path
[
1024
];
int
len
=
mysnprintf
(
full_path
,
"%s/%s"
,
dir
,
name
);
int
len
=
std
::
snprintf
(
full_path
,
sizeof
(
full_path
)
,
"%s/%s"
,
dir
,
name
);
if
(
len
<
0
||
len
>=
(
int
)(
sizeof
full_path
))
{
if
(
len
<
0
||
len
>=
(
int
)(
sizeof
full_path
))
{
success
=
false
;
success
=
false
;
return
;
return
;
...
@@ -228,7 +230,7 @@ public:
...
@@ -228,7 +230,7 @@ public:
while
((
dirp
=
readdir
(
dir
))
!=
nullptr
)
{
while
((
dirp
=
readdir
(
dir
))
!=
nullptr
)
{
file_unit
funit
;
file_unit
funit
;
char
fname
[
1024
];
char
fname
[
1024
];
int
len
=
mysnprintf
(
fname
,
"%s/%s"
,
path
,
dirp
->
d_name
);
int
len
=
std
::
snprintf
(
fname
,
sizeof
(
fname
)
,
"%s/%s"
,
path
,
dirp
->
d_name
);
if
(
len
<
0
||
len
>=
(
int
)(
sizeof
fname
))
if
(
len
<
0
||
len
>=
(
int
)(
sizeof
fname
))
continue
;
continue
;
stat
(
fname
,
&
fileStat
);
stat
(
fname
,
&
fileStat
);
...
...
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