modernitzat el sistema d'opcions
This commit is contained in:
@@ -5,6 +5,56 @@
|
||||
#include "core/locale/lang.h"
|
||||
#include "utils/utils.h"
|
||||
|
||||
// =============================================================================
|
||||
// Defaults per a Options (alineats amb coffee_crisis_arcade_edition).
|
||||
// =============================================================================
|
||||
|
||||
namespace Defaults::Window {
|
||||
constexpr const char *CAPTION = "© 2020 Coffee Crisis — JailDesigner";
|
||||
constexpr int ZOOM = 3;
|
||||
constexpr int MAX_ZOOM = 4;
|
||||
} // namespace Defaults::Window
|
||||
|
||||
namespace Defaults::Video {
|
||||
constexpr SDL_ScaleMode SCALE_MODE = SDL_ScaleMode::SDL_SCALEMODE_NEAREST;
|
||||
constexpr bool FULLSCREEN = false;
|
||||
constexpr bool VSYNC = true;
|
||||
constexpr bool INTEGER_SCALE = true;
|
||||
constexpr bool GPU_ACCELERATION = true;
|
||||
constexpr const char *GPU_PREFERRED_DRIVER = "";
|
||||
constexpr bool SHADER_ENABLED = false;
|
||||
constexpr bool SUPERSAMPLING = false;
|
||||
constexpr bool LINEAR_UPSCALE = false;
|
||||
constexpr int DOWNSCALE_ALGO = 1;
|
||||
} // namespace Defaults::Video
|
||||
|
||||
namespace Defaults::Audio {
|
||||
constexpr bool ENABLED = true;
|
||||
constexpr int VOLUME = 100;
|
||||
} // namespace Defaults::Audio
|
||||
|
||||
namespace Defaults::Music {
|
||||
constexpr bool ENABLED = true;
|
||||
constexpr int VOLUME = 100;
|
||||
} // namespace Defaults::Music
|
||||
|
||||
namespace Defaults::Sound {
|
||||
constexpr bool ENABLED = true;
|
||||
constexpr int VOLUME = 100;
|
||||
} // namespace Defaults::Sound
|
||||
|
||||
namespace Defaults::Loading {
|
||||
constexpr bool SHOW = false;
|
||||
constexpr bool SHOW_RESOURCE_NAME = true;
|
||||
constexpr bool WAIT_FOR_INPUT = false;
|
||||
} // namespace Defaults::Loading
|
||||
|
||||
namespace Defaults::Settings {
|
||||
constexpr int DIFFICULTY = DIFFICULTY_NORMAL;
|
||||
constexpr int LANGUAGE = ba_BA;
|
||||
constexpr palette_e PALETTE = p_zxspectrum;
|
||||
} // namespace Defaults::Settings
|
||||
|
||||
// Tamaño de bloque
|
||||
constexpr int BLOCK = 8;
|
||||
constexpr int HALF_BLOCK = BLOCK / 2;
|
||||
|
||||
Reference in New Issue
Block a user