![]() |
Moonlight-XboxOG latest
Moonlight Xbox OG is a port of the Moonlight Game Streaming client to the original Xbox console.
|
Implements application settings persistence. More...
#include "src/app/settings_storage.h"#include <cctype>#include <cerrno>#include <cstdio>#include <cstring>#include <string>#include <string_view>#include <utility>#include <vector>#include <toml++/toml.hpp>#include "src/platform/error_utils.h"#include "src/platform/filesystem_utils.h"#include "src/startup/storage_paths.h"Functions | |
| FILE * | _wfopen (const wchar_t *path, const wchar_t *mode) |
| Declare the wide-character fopen variant required by toml++ on native Windows builds. | |
| std::string | app::default_settings_path () |
| Return the default path used for the persisted Moonlight settings file. | |
| LoadAppSettingsResult | app::load_app_settings (const std::string &filePath=default_settings_path()) |
| Load the persisted Moonlight settings file. | |
| SaveAppSettingsResult | app::save_app_settings (const AppSettings &settings, const std::string &filePath=default_settings_path()) |
| Save the persisted Moonlight settings file. | |
Implements application settings persistence.
| FILE * _wfopen | ( | const wchar_t * | path, |
| const wchar_t * | mode ) |
Declare the wide-character fopen variant required by toml++ on native Windows builds.
| path | Wide-character file path. |
| mode | Wide-character fopen mode string. |
| std::string app::default_settings_path | ( | ) |
Return the default path used for the persisted Moonlight settings file.
| LoadAppSettingsResult app::load_app_settings | ( | const std::string & | filePath = default_settings_path() | ) |
Load the persisted Moonlight settings file.
| filePath | Settings file to read. |
| SaveAppSettingsResult app::save_app_settings | ( | const AppSettings & | settings, |
| const std::string & | filePath = default_settings_path() ) |
Save the persisted Moonlight settings file.
| settings | Settings snapshot to write. |
| filePath | Settings file to write. |