mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-23 10:09:43 +01:00
Print if PHYSFS_enumerate() has an error
If PHYSFS_enumerate() isn't successful, we now print that it wasn't successful, and print the PhysFS error message. (We should get that logging thing going sometime...)
This commit is contained in:
parent
83976016c7
commit
72b8afcf7d
1 changed files with 9 additions and 1 deletions
|
@ -361,7 +361,15 @@ static PHYSFS_EnumerateCallbackResult enumerateCallback(
|
||||||
void FILESYSTEM_enumerateLevelDirFileNames(
|
void FILESYSTEM_enumerateLevelDirFileNames(
|
||||||
void (*callback)(const char* filename)
|
void (*callback)(const char* filename)
|
||||||
) {
|
) {
|
||||||
PHYSFS_enumerate("levels", enumerateCallback, (void*) callback);
|
int success = PHYSFS_enumerate("levels", enumerateCallback, (void*) callback);
|
||||||
|
|
||||||
|
if (success == 0)
|
||||||
|
{
|
||||||
|
printf(
|
||||||
|
"Could not get list of levels: %s\n",
|
||||||
|
PHYSFS_getErrorByCode(PHYSFS_getLastErrorCode())
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void PLATFORM_getOSDirectory(char* output)
|
static void PLATFORM_getOSDirectory(char* output)
|
||||||
|
|
Loading…
Reference in a new issue