Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
github-clones
Performous
Commits
b6457301
Commit
b6457301
authored
Jun 04, 2020
by
Gregorio Litenstein
Committed by
Arjan Spieard
Sep 15, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix type of stat on mingw-w64 builds.
# Conflicts: # game/songs.cc
parent
c5f061d6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
game/platform.hh
game/platform.hh
+2
-0
game/songs.cc
game/songs.cc
+1
-1
No files found.
game/platform.hh
View file @
b6457301
...
...
@@ -19,9 +19,11 @@
#include <sys/types.h>
#include <sys/stat.h>
#define _STAT(x, y) _stat(x, y)
using
STAT
=
struct
_stat
;
#else
#include <sys/stat.h>
#define _STAT(x, y) stat(x, y)
using
STAT
=
struct
stat
;
#endif
struct
Platform
{
...
...
game/songs.cc
View file @
b6457301
...
...
@@ -113,7 +113,7 @@ void Songs::LoadCache() {
}
for
(
auto
const
&
song
:
jsonRoot
.
as_array
())
{
struct
stat
buffer
;
STAT
buffer
;
auto
songPath
=
song
.
at
(
"TxtFile"
).
as_string
();
auto
isSongPathInConfiguredPaths
=
std
::
find_if
(
userSongs
.
begin
(),
...
...
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