21 ::ll::TypedStorage<8, 32, ::Core::PathBuffer<::std::string>> mBaseDir;
22 ::ll::TypedStorage<8, 32, ::Core::PathBuffer<::std::string>> mBookDir;
23 ::ll::TypedStorage<8, 32, ::Core::PathBuffer<::std::string>> mPhotoDir;
24 ::ll::TypedStorage<8, 32, ::Core::PathBuffer<::std::string>> mPhotoItemDir;
25 ::ll::TypedStorage<8, 32, ::Core::PathBuffer<::std::string>> mManifestDir;
26 ::ll::TypedStorage<8, 64, ::std::unordered_set<::std::string>> mChecksums;
36 MCAPI
explicit PhotoStorage(
::Core::Path const& baseDir);
43 MCAPI
bool _readFile(
::Core::Path path, ::std::string& resultData);
46 MCAPI
void _readManifest();
49 MCAPI
bool _writeFile(
::Core::Path path, ::std::string
const& photoData);
51 MCAPI
void _writeManifest();
53 MCAPI ::Core::PathBuffer<::std::string> getBookPath(::std::string
const& bookId);
62 MCFOLD ::Core::PathBuffer<::std::string>
const& getPhotoItemPath();
64 MCAPI ::Core::PathBuffer<::std::string> getPhotoPath(
::Actor const& owner)
const;
66 MCAPI ::Core::PathBuffer<::std::string> getPhotoPathRelative(
::Actor& owner);
72 MCAPI
void storePhoto(
74 ::std::string
const& photoName,
75 ::std::string
const& photoData
78 MCAPI ::Core::PathBuffer<::Core::BasicStackString<char, 1024>> storePhotoFront(
81 ::std::string
const& photoName,
82 ::std::string
const& photoData
86 MCAPI ~PhotoStorage();
93 MCAPI static ::Core::PathBuffer<::std::string> getScreenshotFilename();
100 MCAPI static ::std::string
const& BOOKS_DIR();
102 MCAPI static ::std::string
const& MANIFEST_NAME();
104 MCAPI static ::std::string
const& PHOTOITEM_DIR();
106 MCAPI static ::std::string
const& PHOTO_DIR();