Merge pull request #19574 from hrydgard/some-more-fixes
Some checks are pending
Build / build-windows (ARM64) (push) Waiting to run
Build / build-windows (x64) (push) Waiting to run
Build / build-uwp (push) Waiting to run
Build / test-windows (push) Blocked by required conditions
Build / build (./b.sh --headless --unittest --fat --no-png --no-sdl2, clang, clang++, test, macos, macos-latest) (push) Waiting to run
Build / build (./b.sh --headless --unittest, clang, clang++, test, clang-normal, ubuntu-latest) (push) Waiting to run
Build / build (./b.sh --headless --unittest, gcc, g++, gcc-normal, ubuntu-latest) (push) Waiting to run
Build / build (./b.sh --ios, clang, clang++, ios, ios, macos-latest) (push) Waiting to run
Build / build (./b.sh --libretro_android ppsspp_libretro, clang, clang++, android, android-libretro, ubuntu-latest) (push) Waiting to run
Build / build (./b.sh --qt, gcc, g++, qt, qt, ubuntu-latest) (push) Waiting to run
Build / build (cd android && ./ab.sh -j2 APP_ABI=arm64-v8a OPENXR=1, clang, clang++, android, android-vr, ubuntu-latest) (push) Waiting to run
Build / build (cd android && ./ab.sh -j2 APP_ABI=arm64-v8a UNITTEST=1 HEADLESS=1, clang, clang++, android, android-arm64, ubuntu-latest) (push) Waiting to run
Build / build (cd android && ./ab.sh -j2 APP_ABI=armeabi-v7a UNITTEST=1 HEADLESS=1, clang, clang++, android, android-arm32, ubuntu-latest) (push) Waiting to run
Build / build (cd android && ./ab.sh -j2 APP_ABI=x86_64 UNITTEST=1 HEADLESS=1, clang, clang++, android, android-x86_64, ubuntu-latest) (push) Waiting to run
Build / build (make -C libretro -f Makefile -j2, clang, clang++, libretro, clang-libretro, ubuntu-latest) (push) Waiting to run
Build / build (make -C libretro -f Makefile -j2, gcc, g++, libretro, gcc-libretro, ubuntu-latest) (push) Waiting to run
Build / test (macos-latest) (push) Blocked by required conditions
Build / test (ubuntu-latest) (push) Blocked by required conditions
Build / build_test_headless_alpine (push) Waiting to run
Generate Docker Layer / build (push) Waiting to run

A few misc fixes (Bust-a-move video, scaling issue in touch layout editor)
This commit is contained in:
Henrik Rydgård 2024-11-02 22:36:48 +01:00 committed by GitHub
commit 325d6d7dec
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
8 changed files with 28 additions and 6 deletions

View File

@ -209,7 +209,7 @@ static const ConfigSetting generalSettings[] = {
ConfigSetting("CheckForNewVersion", &g_Config.bCheckForNewVersion, true, CfgFlag::DEFAULT),
ConfigSetting("Language", &g_Config.sLanguageIni, &DefaultLangRegion, CfgFlag::DEFAULT),
ConfigSetting("ForceLagSync2", &g_Config.bForceLagSync, false, CfgFlag::PER_GAME),
ConfigSetting("DiscordPresence", &g_Config.bDiscordPresence, true, CfgFlag::DEFAULT), // Or maybe it makes sense to have it per-game? Race conditions abound...
ConfigSetting("DiscordRichPresence", &g_Config.bDiscordRichPresence, false, CfgFlag::DEFAULT),
ConfigSetting("UISound", &g_Config.bUISound, false, CfgFlag::DEFAULT),
ConfigSetting("DisableHTTPS", &g_Config.bDisableHTTPS, false, CfgFlag::DONT_SAVE),

View File

@ -145,7 +145,7 @@ public:
std::string sIgnoreCompatSettings;
bool bDiscordPresence; // Enables setting the Discord presence to the current game (or menu)
bool bDiscordRichPresence; // Enables setting the Discord presence to the current game (or menu)
// GFX
int iGPUBackend;

View File

@ -45,8 +45,16 @@ Discord::~Discord() {
}
}
bool Discord::IsAvailable() {
#ifdef ENABLE_DISCORD
return true;
#else
return false;
#endif
}
bool Discord::IsEnabled() const {
return g_Config.bDiscordPresence;
return g_Config.bDiscordRichPresence;
}
void Discord::Init() {

View File

@ -19,6 +19,8 @@ public:
void SetPresenceMenu();
void ClearPresence();
static bool IsAvailable();
private:
void Init();
bool IsEnabled() const;

View File

@ -58,6 +58,7 @@
#include "UI/Theme.h"
#include "UI/RetroAchievementScreens.h"
#include "UI/OnScreenDisplay.h"
#include "UI/DiscordIntegration.h"
#include "Common/File/FileUtil.h"
#include "Common/File/AndroidContentURI.h"
@ -915,7 +916,10 @@ void GameSettingsScreen::CreateNetworkingSettings(UI::ViewGroup *networkingSetti
wlanChannelChoice->HideChoice(i + 2);
wlanChannelChoice->HideChoice(i + 7);
}
networkingSettings->Add(new CheckBox(&g_Config.bDiscordPresence, n->T("Send Discord Presence information")));
if (Discord::IsAvailable()) {
networkingSettings->Add(new CheckBox(&g_Config.bDiscordRichPresence, n->T("Send Discord Presence information")));
}
networkingSettings->Add(new ItemHeader(n->T("AdHoc Server")));
networkingSettings->Add(new CheckBox(&g_Config.bEnableAdhocServer, n->T("Enable built-in PRO Adhoc Server", "Enable built-in PRO Adhoc Server")));

View File

@ -261,7 +261,7 @@ public:
dc.Draw()->DrawImageRotated(dirImage, x, y, scale_, angle + PI, colorBg, false);
dc.Draw()->DrawImageRotated(ImageID("I_ARROW"), x2, y2, scale_, angle + PI, color);
}
scale_ = theScale_/layoutAreaScale;
scale_ = theScale_ / layoutAreaScale;
}
void GetContentDimensions(const UIContext &dc, float &w, float &h) const override {
@ -284,6 +284,8 @@ public:
}
void Draw(UIContext &dc) override {
scale_ = theScale_ * layoutAreaScale;
float opacity = GamepadGetOpacity();
uint32_t colorBg = colorAlpha(GetButtonColor(), opacity);
@ -292,6 +294,8 @@ public:
dc.Draw()->DrawImage(stickBg, bounds_.centerX(), bounds_.centerY(), scale_, colorBg, ALIGN_CENTER);
dc.Draw()->DrawImage(stickImage, bounds_.centerX(), bounds_.centerY(), scale_ * spacing_, colorBg, ALIGN_CENTER);
scale_ = theScale_ / layoutAreaScale;
}
float GetSpacing() const override { return spacing_ * 3; }

View File

@ -837,6 +837,10 @@ UCES01160 = true
# PlayStation Network Collection: Puzzle Pack
UCES01159 = true
# Bust-a-move Deluxe / Ghost (#8795)
ULUS10057 = true
ULES00233 = true
[GoWFramerateHack60]
# Replaces ForceMax60FPS for GOW games, should provide smoother experience
# Also works around softlock in GOW:GOS , see #8299

View File

@ -1272,7 +1272,7 @@ void retro_init(void)
g_Config.flash0Directory = retro_base_dir / "flash0";
g_Config.internalDataDirectory = retro_base_dir;
g_Config.bEnableNetworkChat = false;
g_Config.bDiscordPresence = false;
g_Config.bDiscordRichPresence = false;
g_VFS.Register("", new DirectoryReader(retro_base_dir));