test/testfilesystem.c
changeset 7667 be1cc6f55840
child 8149 681eb46b8ac4
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/test/testfilesystem.c	Tue Aug 20 19:57:11 2013 -0400
     1.3 @@ -0,0 +1,33 @@
     1.4 +/*
     1.5 +  Copyright (C) 1997-2013 Sam Lantinga <slouken@libsdl.org>
     1.6 +
     1.7 +  This software is provided 'as-is', without any express or implied
     1.8 +  warranty.  In no event will the authors be held liable for any damages
     1.9 +  arising from the use of this software.
    1.10 +
    1.11 +  Permission is granted to anyone to use this software for any purpose,
    1.12 +  including commercial applications, and to alter it and redistribute it
    1.13 +  freely.
    1.14 +*/
    1.15 +/* Simple test of power subsystem. */
    1.16 +
    1.17 +#include <stdio.h>
    1.18 +#include "SDL.h"
    1.19 +
    1.20 +int
    1.21 +main(int argc, char *argv[])
    1.22 +{
    1.23 +    /* Enable standard application logging */
    1.24 +    SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO);
    1.25 +
    1.26 +    if (SDL_Init(0) == -1) {
    1.27 +        SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "SDL_Init() failed: %s\n", SDL_GetError());
    1.28 +        return 1;
    1.29 +    }
    1.30 +
    1.31 +    SDL_Log("base path: '%s'\n", SDL_GetBasePath());
    1.32 +    SDL_Log("pref path: '%s'\n", SDL_GetPrefPath("libsdl", "testfilesystem"));
    1.33 +
    1.34 +    SDL_Quit();
    1.35 +    return 0;
    1.36 +}