mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-23 10:09:43 +01:00
Initialize saveDir and levelDir in FileSystemUtils.cpp
This is just in case these values happen to be used without being initialized or anything. I vaguely recall someone reporting an issue where they didn't have a "Documents" folder on Windows and their level folder ended up being a garbage path, so it's good to do this.
This commit is contained in:
parent
2716296a10
commit
5eab43a655
1 changed files with 2 additions and 2 deletions
|
@ -34,8 +34,8 @@
|
||||||
#define MAX_PATH PATH_MAX
|
#define MAX_PATH PATH_MAX
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
char saveDir[MAX_PATH];
|
char saveDir[MAX_PATH] = {'\0'};
|
||||||
char levelDir[MAX_PATH];
|
char levelDir[MAX_PATH] = {'\0'};
|
||||||
|
|
||||||
void PLATFORM_getOSDirectory(char* output);
|
void PLATFORM_getOSDirectory(char* output);
|
||||||
void PLATFORM_migrateSaveData(char* output);
|
void PLATFORM_migrateSaveData(char* output);
|
||||||
|
|
Loading…
Reference in a new issue