mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-08-18 20:57:46 -04:00
Merge remote-tracking branch 'origin/main' into 26-04-04-config
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
#ifndef DUSK_HOTKEYS_H
|
||||
#define DUSK_HOTKEYS_H
|
||||
|
||||
namespace dusk::hotkeys {
|
||||
|
||||
constexpr const char* DO_RESET = "Ctrl+R";
|
||||
|
||||
constexpr const char* TOGGLE_FULLSCREEN = "F11";
|
||||
|
||||
constexpr const char* SHOW_PROCESS_MANAGEMENT = "F2";
|
||||
constexpr const char* SHOW_DEBUG_OVERLAY = "F3";
|
||||
constexpr const char* SHOW_HEAP_VIEWER = "F4";
|
||||
constexpr const char* SHOW_STUB_LOG = "F5";
|
||||
constexpr const char* SHOW_CAMERA_DEBUG = "F6";
|
||||
constexpr const char* SHOW_AUDIO_DEBUG = "F7";
|
||||
|
||||
}
|
||||
|
||||
#endif // DUSK_HOTKEYS_H
|
||||
@@ -0,0 +1,78 @@
|
||||
#ifndef DUSK_CONFIG_H
|
||||
#define DUSK_CONFIG_H
|
||||
|
||||
#include "config_var.hpp"
|
||||
|
||||
namespace dusk::settings {
|
||||
using namespace config;
|
||||
|
||||
// Persistent user settings
|
||||
|
||||
namespace video {
|
||||
extern ConfigVar<bool> enableFullscreen;
|
||||
}
|
||||
|
||||
namespace audio {
|
||||
extern ConfigVar<float> masterVolume;
|
||||
extern ConfigVar<float> mainMusicVolume;
|
||||
extern ConfigVar<float> subMusicVolume;
|
||||
extern ConfigVar<float> soundEffectsVolume;
|
||||
extern ConfigVar<float> fanfareVolume;
|
||||
}
|
||||
|
||||
namespace game {
|
||||
// QoL
|
||||
extern ConfigVar<bool> enableQuickTransform;
|
||||
extern ConfigVar<bool> hideTvSettingsScreen;
|
||||
extern ConfigVar<bool> biggerWallets;
|
||||
extern ConfigVar<bool> noReturnRupees;
|
||||
extern ConfigVar<bool> disableRupeeCutscenes;
|
||||
extern ConfigVar<bool> noSwordRecoil;
|
||||
extern ConfigVar<int> damageMultiplier;
|
||||
extern ConfigVar<bool> instantDeath;
|
||||
extern ConfigVar<bool> fastClimbing;
|
||||
extern ConfigVar<bool> fastTears;
|
||||
|
||||
// Preferences
|
||||
extern ConfigVar<bool> enableMirrorMode;
|
||||
extern ConfigVar<bool> invertCameraXAxis;
|
||||
|
||||
// Graphics
|
||||
extern ConfigVar<bool> enableBloom;
|
||||
extern ConfigVar<bool> useWaterProjectionOffset;
|
||||
|
||||
// Cheats
|
||||
extern ConfigVar<bool> enableFastIronBoots;
|
||||
|
||||
// Technical
|
||||
extern ConfigVar<bool> restoreWiiGlitches;
|
||||
}
|
||||
|
||||
void Register();
|
||||
|
||||
}
|
||||
|
||||
namespace dusk {
|
||||
// Transient settings
|
||||
|
||||
struct CollisionViewSettings {
|
||||
bool enableTerrainView;
|
||||
bool enableWireframe;
|
||||
bool enableAtView;
|
||||
bool enableTgView;
|
||||
bool enableCoView;
|
||||
float terrainViewOpacity;
|
||||
float colliderViewOpacity;
|
||||
float drawRange;
|
||||
};
|
||||
|
||||
struct TransientSettings {
|
||||
CollisionViewSettings collisionView;
|
||||
};
|
||||
|
||||
TransientSettings& getTransientSettings();
|
||||
|
||||
}
|
||||
|
||||
#endif // DUSK_CONFIG_H
|
||||
|
||||
@@ -1,24 +0,0 @@
|
||||
#ifndef DUSK_SETTINGS_HPP
|
||||
#define DUSK_SETTINGS_HPP
|
||||
|
||||
#include "config_var.hpp"
|
||||
|
||||
namespace dusk::settings {
|
||||
using namespace dusk::config;
|
||||
|
||||
namespace enhancements {
|
||||
extern ConfigVar<bool> FastIronBoots;
|
||||
extern ConfigVar<bool> InvertCameraXAxis;
|
||||
extern ConfigVar<bool> QuickTransform;
|
||||
extern ConfigVar<bool> RestoreWiiGlitches;
|
||||
extern ConfigVar<bool> EnableBloom;
|
||||
extern ConfigVar<bool> UseWaterProjectionOffset;
|
||||
extern ConfigVar<bool> MirrorMode;
|
||||
|
||||
void Register();
|
||||
}
|
||||
|
||||
void Register();
|
||||
}
|
||||
|
||||
#endif // DUSK_SETTINGS_HPP
|
||||
Reference in New Issue
Block a user