#include <stdio.h>
#include "SDL.h"
Go to the source code of this file.
|
int | main (int argc, char *argv[]) |
|
◆ main()
int main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
Definition at line 18 of file testfilesystem.c.
19{
20 char *base_path;
21 char *pref_path;
22
23
25
28 return 1;
29 }
30
32 if(base_path ==
NULL){
35 return 1;
36 }
37 SDL_Log(
"base path: '%s'\n", base_path);
39
41 if(pref_path ==
NULL){
44 return 1;
45 }
46 SDL_Log(
"pref path: '%s'\n", pref_path);
48
50 if(pref_path ==
NULL){
53 return 1;
54 }
55 SDL_Log(
"pref path: '%s'\n", pref_path);
57
59 return 0;
60}
#define SDL_LogSetPriority
char * SDL_GetBasePath(void)
Get the path where the application resides.
@ SDL_LOG_CATEGORY_APPLICATION
References NULL, SDL_free, SDL_GetBasePath(), SDL_GetError, SDL_GetPrefPath, SDL_Init, SDL_Log, SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO, SDL_LogError, SDL_LogSetPriority, and SDL_Quit.