neteja tidy (29 → 0) i migració JA_* → Ja::

This commit is contained in:
2026-05-16 18:40:00 +02:00
parent 75fd037251
commit d1cf6f5529
22 changed files with 798 additions and 745 deletions
+4 -2
View File
@@ -322,10 +322,12 @@ namespace GlobalInputs {
case InputAction::TOGGLE_INFO:
if (RenderInfo::get() != nullptr) {
#ifdef _DEBUG
// Leemos la intención antes del toggle: isActive() incluye la
// animación VANISHING, así que justo después de un toggle ACTIVE→OFF
// seguiría devolviendo true y la persistencia no detectaría el cambio.
// animación VANISHING, així que just després d'un toggle ACTIVE→OFF
// seguiria retornant true i la persistència no detectaria el canvi.
const bool WAS_ACTIVE = RenderInfo::get()->isActive();
#endif
RenderInfo::get()->toggle();
#ifdef _DEBUG
if (Debug::get() != nullptr) { Debug::get()->setRenderInfoEnabled(!WAS_ACTIVE); }
+2 -2
View File
@@ -55,8 +55,8 @@ class Input {
// Evita nombres como "Retroid Controller (vendor: 1001) ..." en las notificaciones.
static auto trimName(const char* raw) -> std::string {
std::string s(raw != nullptr ? raw : "");
const auto pos = s.find_first_of("([");
if (pos != std::string::npos) { s.erase(pos); }
const auto POS = s.find_first_of("([");
if (POS != std::string::npos) { s.erase(POS); }
while (!s.empty() && s.back() == ' ') { s.pop_back(); }
return s;
}
+6 -6
View File
@@ -12,19 +12,19 @@
// ── Singleton ────────────────────────────────────────────────────────────────
KeyConfig* KeyConfig::instance_ = nullptr;
KeyConfig* KeyConfig::instance = nullptr;
void KeyConfig::init(const std::string& yaml_path) {
instance_ = new KeyConfig();
instance_->load(yaml_path);
instance = new KeyConfig();
instance->load(yaml_path);
}
void KeyConfig::destroy() {
delete instance_;
instance_ = nullptr;
delete instance;
instance = nullptr;
}
auto KeyConfig::get() -> KeyConfig* { return instance_; }
auto KeyConfig::get() -> KeyConfig* { return instance; }
// ── Carga del YAML ──────────────────────────────────────────────────────────
+1 -1
View File
@@ -41,7 +41,7 @@ class KeyConfig {
[[nodiscard]] auto getScope(const std::string& name) const -> const KeyConfigScope*;
private:
static KeyConfig* instance_;
static KeyConfig* instance;
KeyConfig() = default;
~KeyConfig() = default;