mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-02-02 07:23:53 +03: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:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user