2020-11-03 10:44:09 +01:00
|
|
|
// SPDX-License-Identifier: MPL-2.0
|
|
|
|
// Copyright © 2020 Skyline Team and Contributors (https://github.com/skyline-emu/)
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <common.h>
|
|
|
|
|
|
|
|
namespace skyline {
|
|
|
|
/**
|
|
|
|
* @brief The Settings class is used to access preferences set in the Kotlin component of Skyline
|
|
|
|
*/
|
|
|
|
class Settings {
|
|
|
|
public:
|
2021-02-08 05:17:17 +01:00
|
|
|
Logger::LogLevel logLevel; //!< The minimum level that logs need to be for them to be printed
|
2021-01-22 04:02:01 +01:00
|
|
|
std::string username; //!< The name set by the user to be supplied to the guest
|
2021-06-18 12:55:19 +02:00
|
|
|
bool operationMode; //!< If the emulated Switch should be handheld or docked
|
|
|
|
bool forceTripleBuffering{true}; //!< If the presentation should always triple buffer even if the game double buffers
|
2021-01-22 04:02:01 +01:00
|
|
|
|
2020-11-03 10:44:09 +01:00
|
|
|
/**
|
|
|
|
* @param fd An FD to the preference XML file
|
|
|
|
*/
|
|
|
|
Settings(int fd);
|
|
|
|
};
|
|
|
|
}
|