core: Print current game settings on game boot
This commit is contained in:
@@ -12,13 +12,47 @@ namespace Settings {
|
||||
|
||||
Values values = {};
|
||||
|
||||
void PerGameValues::LogSettings() {
|
||||
LOG_INFO(Config, "Buttons:");
|
||||
for (std::size_t i = 0; i < NativeButton::NumButtons; ++i)
|
||||
LOG_INFO(Config, " Button[{}]: ", buttons[i]);
|
||||
|
||||
LOG_INFO(Config, "Analogs:");
|
||||
for (std::size_t i = 0; i < NativeAnalog::NumAnalogs; ++i)
|
||||
LOG_INFO(Config, " Analog[{}]: ", analogs[i]);
|
||||
|
||||
LOG_INFO(Config, "Motion Device: {}", motion_device);
|
||||
LOG_INFO(Config, "Touch Device: {}", touch_device);
|
||||
|
||||
LOG_INFO(Config, "Docked Mode: {}", use_docked_mode);
|
||||
|
||||
LOG_INFO(Config, "Resolution Factor: {}", resolution_factor);
|
||||
LOG_INFO(Config, "Frame Limit Enabled: {}", use_frame_limit);
|
||||
LOG_INFO(Config, "Frame Limit: {}", frame_limit);
|
||||
|
||||
LOG_INFO(Config, "Background Red: {}", bg_red);
|
||||
LOG_INFO(Config, "Background Green: {}", bg_green);
|
||||
LOG_INFO(Config, "Background Blue: {}", bg_blue);
|
||||
|
||||
LOG_INFO(Config, "Audio Sink ID: {}", sink_id);
|
||||
LOG_INFO(Config, "Audio Stretching: {}", enable_audio_stretching);
|
||||
LOG_INFO(Config, "Audio Device ID: {}", audio_device_id);
|
||||
LOG_INFO(Config, "Volume: {}", volume);
|
||||
|
||||
LOG_INFO(Config, "Program Arguments: {}", program_args);
|
||||
|
||||
LOG_INFO(Config, "Disabled Patches:");
|
||||
for (const auto& patch : disabled_patches)
|
||||
LOG_INFO(Config, " - {}", patch);
|
||||
}
|
||||
|
||||
Values::Values() : current_game(default_game) {}
|
||||
|
||||
void Values::SetUpdateCurrentGameFunction(std::function<bool(u64, PerGameValues&)> new_function) {
|
||||
update_current_game = std::move(new_function);
|
||||
}
|
||||
|
||||
u64 Values::CurrentTitleID() {
|
||||
u64 Values::CurrentTitleID() const {
|
||||
return current_title_id;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user