v2026.6.4
All Bundles
Bundle SDL2 multimedia library for 2D graphics, input handling, audio playback, and window management. Core types: Window, Renderer, Texture, Surface, Event, and Mixer. Compile with -lib sdl2.

Filesystem

Filesystem helper functions

Operations

GetBasePath # function

Get the directory where the application was run from. This is where the application data directory is.

function : GetBasePath() ~ String

Return

TypeDescription
Stringan absolute path in UTF-8 encoding to the application data directory

GetPrefPath # function

Use this function to get the "pref dir". This is meant to be where the application can write personal files (Preferences and save games, etc.) that are specific to the application. This directory is unique per user and per application.

function : GetPrefPath(org:String, app:String) ~ String

Parameters

NameTypeDescription
orgStringthe name of your organization
appStringthe name of your application

Return

TypeDescription
StringUTF-8 string of the user directory in platform-dependent notation