|
ReXGlue SDK
|
Public Member Functions | |
| virtual std::vector< kernel::XCONTENT_AGGREGATE_DATA > | ListContent (u32 device_id, u64 xuid, rex::kernel::XContentType content_type, u32 title_id=0xFFFFFFFF)=0 |
| virtual bool | HasContent (u64 xuid, const kernel::XCONTENT_AGGREGATE_DATA &data)=0 |
| virtual Result< void > | CreateContent (std::string_view root_name, u64 xuid, const kernel::XCONTENT_AGGREGATE_DATA &data)=0 |
| virtual Result< u32 > | OpenContent (std::string_view root_name, u64 xuid, const kernel::XCONTENT_AGGREGATE_DATA &data)=0 |
| virtual Result< void > | CloseContent (std::string_view root_name)=0 |
| virtual Result< std::vector< u8 > > | GetContentThumbnail (u64 xuid, const kernel::XCONTENT_AGGREGATE_DATA &data)=0 |
| virtual Result< void > | SetContentThumbnail (u64 xuid, const kernel::XCONTENT_AGGREGATE_DATA &data, std::vector< u8 > buffer)=0 |
| virtual Result< void > | DeleteContent (u64 xuid, const kernel::XCONTENT_AGGREGATE_DATA &data)=0 |
| virtual Result< void > | WriteContentHeaderFile (u64 xuid, kernel::XCONTENT_AGGREGATE_DATA data, u32 license_mask=0)=0 |
| virtual Result< kernel::XCONTENT_AGGREGATE_DATA > | ReadContentHeaderFile (std::string_view file_name, u64 xuid, u32 title_id, rex::kernel::XContentType content_type) const =0 |
| virtual std::filesystem::path | ResolveGameUserContentPath ()=0 |
| virtual bool | IsContentOpen (const kernel::XCONTENT_AGGREGATE_DATA &data) const =0 |
| virtual void | CloseOpenedFilesFromContent (std::string_view root_name)=0 |
| virtual Result< PackageInfo > | InspectPackage (const std::filesystem::path &package_path) const =0 |
| virtual Result< kernel::XCONTENT_AGGREGATE_DATA > | InstallContent (const std::filesystem::path &package_path, const InstallOptions &options={})=0 |
| virtual Result< void > | SetContentEnabled (const kernel::XCONTENT_AGGREGATE_DATA &data, bool enabled, std::optional< u64 > xuid=std::nullopt)=0 |
| virtual std::vector< InstalledPackage > | ListInstalledPackages (u32 title_id=kernel::kRunningTitleID) const =0 |
| virtual rex::ScopeGuard | OnContentChanged (rex::MoveOnlyFunction< void()> callback)=0 |
| virtual Result< u32 > | GetContentDeviceID (std::string_view root_name) const =0 |
Additional Inherited Members | |
| Protected Member Functions inherited from rex::NonCopyable | |
| NonCopyable (const NonCopyable &)=delete | |
| NonCopyable & | operator= (const NonCopyable &)=delete |
|
nodiscardpure virtual |
Unmounts the package under a root name and closes its open files.
|
pure virtual |
Closes every open file under a root name.
|
nodiscardpure virtual |
Creates a package and mounts it under a root name.
|
nodiscardpure virtual |
Deletes a package that is not open.
|
nodiscardpure virtual |
Returns the device a package is stored on, or X_ERROR_FILE_NOT_FOUND when no package is open under the name.
| root_name | The root name of an open package. |
|
nodiscardpure virtual |
Reads the thumbnail of a package.
|
nodiscardpure virtual |
Reads the header of a package. Nothing is extracted or written.
| package_path | The package file. |
|
nodiscardpure virtual |
Installs a package into the content tree and writes its header file and package manifest. The content type and title ID come from the package metadata. An in place install leaves the original file where it is and mounts it each time the title opens the package.
| package_path | The package file. |
| options | Where the package may come from and whether it is extracted. |
|
nodiscardpure virtual |
Lists the content packages of a type.
| xuid | The owner, 0 for shared content. |
| title_id | The title, 0xFFFFFFFF for the running title. |
|
nodiscardpure virtual |
Lists the packages installed through InstallContent, disabled ones included.
| title_id | The title, 0xFFFFFFFF for the running title. |
|
nodiscardpure virtual |
Registers a function that runs after an install, a delete or an enable change, on the thread that made the change.
| callback | The function. It may call the content manager. |
|
nodiscardpure virtual |
Opens an existing package and mounts it under a root name.
|
nodiscardpure virtual |
|
nodiscardpure virtual |
Returns the folder of the running title's user content for the signed in profile.
|
nodiscardpure virtual |
Enables or disables an installed package. A disabled package is absent from ListContent, HasContent and OpenContent. The change applies when the title next lists or opens content. A profile flag wins over the all profiles flag, and an installed package with neither is enabled.
| data | The content data, title 0xFFFFFFFF for the running title. |
| enabled | The new flag. |
| xuid | The profile the flag is for, empty for all profiles. |
|
nodiscardpure virtual |
Writes the thumbnail of a package.
| buffer | The thumbnail bytes. |
|
nodiscardpure virtual |
Writes the header file of a package.
| data | The content data, title 0xFFFFFFFF for the running title. |