mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-06-14 21:35:47 -04:00
Qt: Regression fixes
This commit is contained in:
@ -327,7 +327,7 @@ static const Controller::ControllerBindingInfo s_binding_info[] = {
|
||||
static const SettingInfo s_settings[] = {
|
||||
{SettingInfo::Type::Float, "AnalogDeadzone", TRANSLATABLE("AnalogController", "Analog Deadzone"),
|
||||
TRANSLATABLE("AnalogController",
|
||||
"Sets the analog stick deadzone, i.e. the fraction of the stick movement which will be ignored.s"),
|
||||
"Sets the analog stick deadzone, i.e. the fraction of the stick movement which will be ignored."),
|
||||
"1.00f", "0.00f", "1.00f", "0.01f"},
|
||||
{SettingInfo::Type::Float, "AnalogSensitivity", TRANSLATABLE("AnalogController", "Analog Sensitivity"),
|
||||
TRANSLATABLE(
|
||||
|
@ -1951,7 +1951,7 @@ void SPU::DrawDebugStateWindow()
|
||||
{
|
||||
static const ImVec4 active_color{1.0f, 1.0f, 1.0f, 1.0f};
|
||||
static const ImVec4 inactive_color{0.4f, 0.4f, 0.4f, 1.0f};
|
||||
const float framebuffer_scale = ImGui::GetIO().DisplayFramebufferScale.x;
|
||||
const float framebuffer_scale = Host::GetOSDScale();
|
||||
|
||||
ImGui::SetNextWindowSize(ImVec2(800.0f * framebuffer_scale, 800.0f * framebuffer_scale), ImGuiCond_FirstUseEver);
|
||||
if (!ImGui::Begin("SPU State", nullptr))
|
||||
|
@ -3910,7 +3910,8 @@ bool System::LoadCheatList(const char* filename)
|
||||
|
||||
bool System::LoadCheatListFromGameTitle()
|
||||
{
|
||||
if (!IsValid() || Achievements::ChallengeModeActive())
|
||||
// Called when booting, needs to test for shutdown.
|
||||
if (IsShutdown() || Achievements::ChallengeModeActive())
|
||||
return false;
|
||||
|
||||
const std::string filename(GetCheatFileName());
|
||||
@ -3922,15 +3923,15 @@ bool System::LoadCheatListFromGameTitle()
|
||||
|
||||
bool System::LoadCheatListFromDatabase()
|
||||
{
|
||||
if (System::GetRunningCode().empty() || Achievements::ChallengeModeActive())
|
||||
if (IsShutdown() || s_running_game_code.empty() || Achievements::ChallengeModeActive())
|
||||
return false;
|
||||
|
||||
std::unique_ptr<CheatList> cl = std::make_unique<CheatList>();
|
||||
if (!cl->LoadFromPackage(System::GetRunningCode()))
|
||||
if (!cl->LoadFromPackage(s_running_game_code))
|
||||
return false;
|
||||
|
||||
Log_InfoPrintf("Loaded %u cheats from database.", cl->GetCodeCount());
|
||||
System::SetCheatList(std::move(cl));
|
||||
SetCheatList(std::move(cl));
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user