yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
graphics_scratch_storage.cc File Reference
#include "app/editor/graphics/graphics_scratch_storage.h"
#include <filesystem>
#include <fstream>
#include <iterator>
#include "core/project.h"
#include "core/source_artifact_publisher.h"
#include "util/macro.h"

Go to the source code of this file.

Namespaces

namespace  yaze
 
namespace  yaze::editor
 Editors are the view controllers for the application.
 
namespace  yaze::editor::graphics_scratch_storage
 
namespace  yaze::editor::graphics_scratch_storage::anonymous_namespace{graphics_scratch_storage.cc}
 

Functions

absl::StatusOr< std::filesystem::path > yaze::editor::graphics_scratch_storage::anonymous_namespace{graphics_scratch_storage.cc}::ResolveBinPath (const std::string &path)
 
bool yaze::editor::graphics_scratch_storage::anonymous_namespace{graphics_scratch_storage.cc}::PathsAlias (const std::filesystem::path &a, const std::filesystem::path &b)
 
absl::StatusOr< std::optional< std::string > > yaze::editor::graphics_scratch_storage::anonymous_namespace{graphics_scratch_storage.cc}::ReadBinContainer (const std::filesystem::path &path)
 
absl::StatusOr< std::string > yaze::editor::graphics_scratch_storage::anonymous_namespace{graphics_scratch_storage.cc}::ReadLibrary (const std::string &path)
 
absl::StatusOr< LibrarySnapshot > yaze::editor::graphics_scratch_storage::LoadLibrary (const std::string &path)
 
absl::StatusOr< std::string > yaze::editor::graphics_scratch_storage::SaveLibrary (const std::string &path, const GraphicsScratchLibrary &library, const std::optional< std::string > &expected_bytes)
 
absl::StatusOr< GraphicsScratchAsset > yaze::editor::graphics_scratch_storage::ImportBin (const std::string &path, int bpp, size_t offset, const std::string &name)
 
absl::StatusOr< BinExportResult > yaze::editor::graphics_scratch_storage::ExportBin (const GraphicsScratchAsset &asset, const std::string &path, const std::string &library_path, const std::function< absl::Status(const std::string &)> &validator)
 

Variables

constexpr uint64_t yaze::editor::graphics_scratch_storage::anonymous_namespace{graphics_scratch_storage.cc}::kMaxBinContainerBytes = 64 * 1024 * 1024