Flint Engine
Modular C++20 2D game engine powered by SDL3
Loading...
Searching...
No Matches

◆ getAsset()

std::vector< char > Flint::FileSystem::getAsset ( const std::string & path)
overridevirtual

Read the entire file at path and return its bytes.

Opened in binary mode.

Parameters
pathAsset path relative to the root directory.
Returns
Vector containing the complete file contents.
Exceptions
std::runtime_errorif the file cannot be opened, its size cannot be determined, the read fails, or path is invalid.

Implements Flint::IAssetLoader.