Repos
C++
406 B14 lines Opens in site
Directory
Raw
Download
#pragma once
// Spec: SPEC.md NFR-PKG-01. Asset lookup: env DEVPLACE_ASSETS, then next to the binary, then the source tree.
#include <string>
namespace dp {
class Assets {
public:
static std::string path(const std::string& relative);
static bool readFile(const std::string& absolute, std::string& out, std::size_t maxBytes = 64u * 1024u * 1024u);
static std::string root();
};
} // namespace dp