treasurehunting2/PySDL2-0.9.5/sdl2/filesystem.py
2017-05-13 11:00:53 +02:00

10 lines
372 B
Python

from ctypes import c_char, c_char_p, POINTER
from .dll import _bind, nullfunc
__all__ = ["SDL_GetBasePath", "SDL_GetPrefPath"]
# The filesystem API came in after the 2.0 release
SDL_GetBasePath = _bind("SDL_GetBasePath", None, POINTER(c_char), nullfunc)
SDL_GetPrefPath = _bind("SDL_GetPrefPath", [c_char_p, c_char_p], POINTER(c_char),
nullfunc)