Add comment on tinygltf::ExpandFilePath()

This commit is contained in:
Syoyo Fujita 2020-06-06 18:13:15 +09:00
parent fbbeb4d6a9
commit 3d939fd3ee

View File

@ -1249,7 +1249,13 @@ struct FsCallbacks {
bool FileExists(const std::string &abs_filename, void *);
std::string ExpandFilePath(const std::string &filepath, void *);
///
/// Expand file path(e.g. `~` to home directory on posix, `%APPDATA%` to `C:\Users\tinygltf\AppData`)
///
/// @param[in] filepath File path string. Assume UTF-8
/// @param[in] userdata User data. Set to `nullptr` if you don't need it.
///
std::string ExpandFilePath(const std::string &filepath, void *userdata);
bool ReadWholeFile(std::vector<unsigned char> *out, std::string *err,
const std::string &filepath, void *);