![]() |
Moonlight-XboxOG latest
Moonlight Xbox OG is a port of the Moonlight Game Streaming client to the original Xbox console.
|
Implements saved host persistence. More...
#include "src/startup/host_storage.h"#include <cerrno>#include <cstdio>#include <cstring>#include <string>#include <vector>#include "src/platform/filesystem_utils.h"#include "src/startup/storage_paths.h"Functions | |
| std::string | startup::default_host_storage_path () |
| Return the default path used for saved host storage. | |
| LoadSavedHostsResult | startup::load_saved_hosts (const std::string &filePath=default_host_storage_path()) |
| Load saved host records from disk. | |
| SaveSavedHostsResult | startup::save_saved_hosts (const std::vector< app::HostRecord > &hosts, const std::string &filePath=default_host_storage_path()) |
| Save the current saved host records to disk. | |
Implements saved host persistence.
| std::string startup::default_host_storage_path | ( | ) |
Return the default path used for saved host storage.
| LoadSavedHostsResult startup::load_saved_hosts | ( | const std::string & | filePath = default_host_storage_path() | ) |
Load saved host records from disk.
| filePath | Storage file to load. |
| SaveSavedHostsResult startup::save_saved_hosts | ( | const std::vector< app::HostRecord > & | hosts, |
| const std::string & | filePath = default_host_storage_path() ) |
Save the current saved host records to disk.
| hosts | Saved host records to persist. |
| filePath | Storage file to write. |