test/testfilesystem.c
changeset 11222 083133ba8f9b
parent 10737 3406a0f8b041
child 11811 5d94cb6b24d3
equal deleted inserted replaced
11221:4753f2320927 11222:083133ba8f9b
    44       return 1;
    44       return 1;
    45     }
    45     }
    46     SDL_Log("pref path: '%s'\n", pref_path); 
    46     SDL_Log("pref path: '%s'\n", pref_path); 
    47     SDL_free(pref_path);
    47     SDL_free(pref_path);
    48 
    48 
       
    49     pref_path = SDL_GetPrefPath(NULL, "testfilesystem");
       
    50     if(pref_path == NULL){
       
    51       SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Couldn't find pref path without organization: %s\n",
       
    52                    SDL_GetError());
       
    53       return 1;
       
    54     }
       
    55     SDL_Log("pref path: '%s'\n", pref_path); 
       
    56     SDL_free(pref_path);
       
    57 
    49     SDL_Quit();
    58     SDL_Quit();
    50     return 0;
    59     return 0;
    51 }
    60 }