Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Fixed error return values in filesystem test program.
- Loading branch information
Showing
with
2 additions
and
3 deletions.
-
+2
−3
test/testfilesystem.c
|
@@ -32,17 +32,16 @@ main(int argc, char *argv[]) |
|
|
if(base_path == NULL){ |
|
|
SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Couldn't find base path: %s\n", |
|
|
SDL_GetError()); |
|
|
return 0; |
|
|
return 1; |
|
|
} |
|
|
|
|
|
SDL_Log("base path: '%s'\n", base_path); |
|
|
SDL_free(base_path); |
|
|
|
|
|
pref_path = SDL_GetPrefPath("libsdl", "testfilesystem"); |
|
|
if(pref_path == NULL){ |
|
|
SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Couldn't find pref path: %s\n", |
|
|
SDL_GetError()); |
|
|
return 0; |
|
|
return 1; |
|
|
} |
|
|
SDL_Log("pref path: '%s'\n", pref_path); |
|
|
SDL_free(pref_path); |
|
|