yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
sprite_catalog.cc File Reference
#include "zelda3/sprite/sprite_catalog.h"
#include <algorithm>
#include <filesystem>
#include <fstream>
#include <set>
#include <sstream>
#include <stdexcept>
#include "absl/status/status.h"
#include "absl/strings/strip.h"
#include "nlohmann/json.hpp"

Go to the source code of this file.

Namespaces

namespace  yaze
 
namespace  yaze::zelda3
 Zelda 3 specific classes and functions.
 
namespace  yaze::zelda3::anonymous_namespace{sprite_catalog.cc}
 

Functions

absl::StatusOr< std::string > yaze::zelda3::anonymous_namespace{sprite_catalog.cc}::ReadDocument (const std::string &path)
 
bool yaze::zelda3::anonymous_namespace{sprite_catalog.cc}::SafeRelativePath (const std::string &value)
 
bool yaze::zelda3::anonymous_namespace{sprite_catalog.cc}::IsIdentifier (const std::string &value)
 
void yaze::zelda3::anonymous_namespace{sprite_catalog.cc}::CheckFields (const json &object, std::initializer_list< const char * > fields)
 
int yaze::zelda3::anonymous_namespace{sprite_catalog.cc}::ReadInteger (const json &value, int min, int max)
 
std::string yaze::zelda3::anonymous_namespace{sprite_catalog.cc}::ReadString (const json &object, const char *key, bool identifier)
 
std::vector< SpriteSourceBinding > yaze::zelda3::anonymous_namespace{sprite_catalog.cc}::ReadBindings (const json &array)
 
absl::StatusOr< SpriteSourceDocument > yaze::zelda3::ReadSpriteSourceFile (const std::string &source_root, const std::string &relative_path)
 
absl::StatusOr< SpriteSourceDocument > yaze::zelda3::ReadSpriteSource (const std::string &source_root, const SpriteSourceBinding &binding)
 

Variables

constexpr size_t yaze::zelda3::anonymous_namespace{sprite_catalog.cc}::kMaxDocumentBytes = 1024 * 1024