目次 - SDL 3.0 API(機能別) - ストレージ - SDL_GetStoragePathInfo

SDL_GetStoragePathInfo

ストレージコンテナのファイルシステムパスの情報を得る

ヘッダ

SDL3/SDL_storage.h

構文

bool SDL_GetStoragePathInfo(SDL_Storage *storage, const char *path, SDL_PathInfo *info);

引数

SDL_Storage *storageストレージコンテナ
const char *path問い合わせるパス
SDL_PathInfo *infopathの情報の代入先へのポインタ. NULLのとき単にファイルの存在を確認する

戻り値

(bool) 成功のとき真, ファイルが存在しないまたは他の失敗のとき偽を戻す. SDL_GetError()を呼んで詳細を知ることができる.

スレッドセーフ

この関数はどのスレッドからも安全に呼べる.

バージョン

SDL 3.2.0以降

関連項目

SDL Wikiへのリンク

SDL_GetStoragePathInfo - SDL Wiki