neteja tidy (29 → 0) i migració JA_* → Ja::
This commit is contained in:
@@ -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); }
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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 ──────────────────────────────────────────────────────────
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user