yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
yaze::editor::graphics_scratch_storage Namespace Reference

Namespaces

namespace  anonymous_namespace{graphics_scratch_storage.cc}
 

Classes

struct  BinExportResult
 
struct  LibrarySnapshot
 

Functions

absl::StatusOr< LibrarySnapshot > LoadLibrary (const std::string &path)
 
absl::StatusOr< std::string > SaveLibrary (const std::string &path, const GraphicsScratchLibrary &library, const std::optional< std::string > &expected_bytes)
 
absl::StatusOr< GraphicsScratchAsset > ImportBin (const std::string &path, int bpp, size_t offset, const std::string &name)
 
absl::StatusOr< BinExportResult > ExportBin (const GraphicsScratchAsset &asset, const std::string &path, const std::string &library_path, const std::function< absl::Status(const std::string &)> &validator)
 

Function Documentation

◆ LoadLibrary()

absl::StatusOr< LibrarySnapshot > yaze::editor::graphics_scratch_storage::LoadLibrary ( const std::string & path)

◆ SaveLibrary()

absl::StatusOr< std::string > yaze::editor::graphics_scratch_storage::SaveLibrary ( const std::string & path,
const GraphicsScratchLibrary & library,
const std::optional< std::string > & expected_bytes )

◆ ImportBin()

absl::StatusOr< GraphicsScratchAsset > yaze::editor::graphics_scratch_storage::ImportBin ( const std::string & path,
int bpp,
size_t offset,
const std::string & name )

Definition at line 137 of file graphics_scratch_storage.cc.

References ASSIGN_OR_RETURN, and yaze::editor::DecodeScratchBin().

Referenced by yaze::editor::GraphicsScratchView::ImportBin().

Here is the call graph for this function:

◆ ExportBin()