20 ::ll::TypedStorage<8, 32, ::Core::PathBuffer<::std::string>> mBaseDir;
21 ::ll::TypedStorage<8, 32, ::Core::PathBuffer<::std::string>> mBookDir;
22 ::ll::TypedStorage<8, 32, ::Core::PathBuffer<::std::string>> mPhotoDir;
23 ::ll::TypedStorage<8, 32, ::Core::PathBuffer<::std::string>> mPhotoItemDir;
24 ::ll::TypedStorage<8, 32, ::Core::PathBuffer<::std::string>> mManifestDir;
25 ::ll::TypedStorage<8, 64, ::std::unordered_set<::std::string>> mChecksums;
35 MCAPI
explicit PhotoStorage(
::Core::Path const& baseDir);
42 MCAPI
bool _readFile(
::Core::Path path, ::std::string& resultData);
45 MCAPI
void _readManifest();
48 MCAPI
bool _writeFile(
::Core::Path path, ::std::string
const& photoData);
50 MCAPI
void _writeManifest();
56 MCAPI ::Core::PathBuffer<::std::string> getPhotoPath(
::Actor const& owner)
const;
58 MCAPI ::Core::PathBuffer<::std::string> getPhotoPathRelative(
::Actor& owner);
62 MCAPI
void storePhoto(
64 ::std::string
const& photoName,
65 ::std::string
const& photoData
69 MCAPI ~PhotoStorage();
76 MCAPI static ::Core::PathBuffer<::std::string> getScreenshotFilename();
83 MCAPI static ::std::string
const& BOOKS_DIR();
85 MCAPI static ::std::string
const& MANIFEST_NAME();
87 MCAPI static ::std::string
const& PHOTOITEM_DIR();
89 MCAPI static ::std::string
const& PHOTO_DIR();