Moonlight-XboxOG latest
Moonlight Xbox OG is a port of the Moonlight Game Streaming client to the original Xbox console.
saved_files.h
Go to the documentation of this file.
1
5#pragma once
6
7// standard includes
8#include <cstdint>
9#include <string>
10#include <vector>
11
12namespace startup {
13
18 std::string path;
19 std::string displayName;
20 std::uint64_t sizeBytes = 0;
21 };
22
27 std::string hostStoragePath;
28 std::string settingsFilePath;
29 std::string logFilePath;
30 std::string pairingDirectory;
31 std::string coverArtCacheRoot;
32 };
33
38 std::vector<SavedFileEntry> files;
39 std::vector<std::string> warnings;
40 };
41
49
58 bool delete_saved_file(
59 const std::string &path,
60 std::string *errorMessage = nullptr,
61 const SavedFileCatalogConfig &config = {}
62 );
63
72 std::string *errorMessage = nullptr,
73 const SavedFileCatalogConfig &config = {}
74 );
75
76} // namespace startup
bool delete_all_saved_files(std::string *errorMessage, const SavedFileCatalogConfig &config)
Delete every Moonlight-managed saved file currently present on disk.
Definition saved_files.cpp:257
ListSavedFilesResult list_saved_files(const SavedFileCatalogConfig &config)
Enumerate Moonlight-managed files that currently exist on disk.
Definition saved_files.cpp:220
Result of enumerating Moonlight-managed files on disk.
Definition saved_files.h:37
std::vector< SavedFileEntry > files
Managed files currently found on disk.
Definition saved_files.h:38
std::vector< std::string > warnings
Non-fatal warnings produced during enumeration.
Definition saved_files.h:39
Optional path overrides used to inspect Moonlight-managed files.
Definition saved_files.h:26
std::string logFilePath
Path to the persisted log file.
Definition saved_files.h:29
std::string hostStoragePath
Path to the saved-host storage file.
Definition saved_files.h:27
std::string coverArtCacheRoot
Root directory containing cached cover art artifacts.
Definition saved_files.h:31
std::string pairingDirectory
Directory containing persisted pairing credentials.
Definition saved_files.h:30
std::string settingsFilePath
Path to the persisted TOML settings file.
Definition saved_files.h:28
Describes one Moonlight-managed file that exists on disk.
Definition saved_files.h:17
std::string displayName
User-facing label shown in the settings UI.
Definition saved_files.h:19
std::string path
Absolute or managed-relative path to the file on disk.
Definition saved_files.h:18
std::uint64_t sizeBytes
File size in bytes.
Definition saved_files.h:20