#include "remorse/file_system.h" #include "remorse/glob_archive.h" #include #include int main() { const auto root = remorse::findGameDataRoot(std::filesystem::current_path()); assert(root.has_value()); const auto globPath = remorse::resolveGameDataPath(*root, std::filesystem::path("STATIC") / "GLOB.FLX"); assert(globPath.has_value()); const auto objects = remorse::loadGlobObjects(*globPath); assert(objects.has_value()); assert(!objects->empty()); bool foundObjectWithEntries = false; for (const remorse::GlobObject& object : *objects) { if (!object.entries.empty()) { foundObjectWithEntries = true; break; } } assert(foundObjectWithEntries); return 0; }