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);
42 MCAPI_C
bool _readFile(
::Core::Path path, ::std::string& resultData);
44 MCAPI
void _readManifest();
46 MCAPI_C
bool _writeFile(
::Core::Path path, ::std::string
const& photoData);
48 MCAPI_C
void _writeManifest();
57 MCAPI_C ::Core::PathBuffer<::std::string> getPhotoPath(
::Actor const& owner)
const;
61 MCAPI_C
void storePhoto(
63 ::std::string
const& photoName,
64 ::std::string
const& photoData
67 MCAPI_C ::Core::PathBuffer<::Core::BasicStackString<char, 1024>> storePhotoFront(
70 ::std::string
const& photoName,
71 ::std::string
const& photoData
74 MCAPI ~PhotoStorage();
80 MCAPI_C static ::Core::PathBuffer<::std::string> getScreenshotFilename();
86 MCAPI static ::std::string
const& BOOKS_DIR();
88 MCAPI static ::std::string
const& MANIFEST_NAME();
90 MCAPI static ::std::string
const& PHOTOITEM_DIR();
92 MCAPI static ::std::string
const& PHOTO_DIR();