mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-14 05:17:44 -07:00
Compare commits
5 Commits
7b55ef2962
...
50ddd0d9b6
Author | SHA1 | Date | |
---|---|---|---|
|
50ddd0d9b6 | ||
|
2c92e5b5b3 | ||
|
9b6555c49c | ||
|
ef71c75458 | ||
|
fe96bf4108 |
@ -1,22 +0,0 @@
|
|||||||
{
|
|
||||||
"name": "SDL2",
|
|
||||||
"buildsystem": "autotools",
|
|
||||||
"config-opts": ["--disable-static"],
|
|
||||||
"sources": [
|
|
||||||
{
|
|
||||||
"type": "dir",
|
|
||||||
"path": "../../Externals/SDL/SDL"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"cleanup": [ "/bin/sdl2-config",
|
|
||||||
"/include",
|
|
||||||
"/lib/libSDL2.la",
|
|
||||||
"/lib/libSDL2main.a",
|
|
||||||
"/lib/libSDL2main.la",
|
|
||||||
"/lib/libSDL2_test.a",
|
|
||||||
"/lib/libSDL2_test.la",
|
|
||||||
"/lib/cmake",
|
|
||||||
"/share/aclocal",
|
|
||||||
"/lib/pkgconfig"]
|
|
||||||
}
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
|||||||
app-id: org.DolphinEmu.dolphin-emu
|
app-id: org.DolphinEmu.dolphin-emu
|
||||||
runtime: org.kde.Platform
|
runtime: org.kde.Platform
|
||||||
runtime-version: '6.7'
|
runtime-version: '6.8'
|
||||||
sdk: org.kde.Sdk
|
sdk: org.kde.Sdk
|
||||||
command: dolphin-emu-wrapper
|
command: dolphin-emu-wrapper
|
||||||
rename-desktop-file: dolphin-emu.desktop
|
rename-desktop-file: dolphin-emu.desktop
|
||||||
@ -47,9 +47,6 @@ modules:
|
|||||||
url: https://github.com/Unrud/xdg-screensaver-shim/archive/0.0.2.tar.gz
|
url: https://github.com/Unrud/xdg-screensaver-shim/archive/0.0.2.tar.gz
|
||||||
sha256: 0ed2a69fe6ee6cbffd2fe16f85116db737f17fb1e79bfb812d893cf15c728399
|
sha256: 0ed2a69fe6ee6cbffd2fe16f85116db737f17fb1e79bfb812d893cf15c728399
|
||||||
|
|
||||||
# build the vendored SDL2 from Externals until the runtime gets 2.30.6
|
|
||||||
- SDL2/SDL2.json
|
|
||||||
|
|
||||||
- name: dolphin-emu
|
- name: dolphin-emu
|
||||||
buildsystem: cmake-ninja
|
buildsystem: cmake-ninja
|
||||||
config-opts:
|
config-opts:
|
||||||
|
@ -16,6 +16,7 @@
|
|||||||
#include "Common/Assert.h"
|
#include "Common/Assert.h"
|
||||||
#include "Common/BitUtils.h"
|
#include "Common/BitUtils.h"
|
||||||
#include "Common/CommonPaths.h"
|
#include "Common/CommonPaths.h"
|
||||||
|
#include "Common/Config/Config.h"
|
||||||
#include "Common/FileUtil.h"
|
#include "Common/FileUtil.h"
|
||||||
#include "Common/IOFile.h"
|
#include "Common/IOFile.h"
|
||||||
#include "Common/Image.h"
|
#include "Common/Image.h"
|
||||||
@ -64,6 +65,7 @@ void AchievementManager::Init()
|
|||||||
[](const char* message, const rc_client_t* client) {
|
[](const char* message, const rc_client_t* client) {
|
||||||
INFO_LOG_FMT(ACHIEVEMENTS, "{}", message);
|
INFO_LOG_FMT(ACHIEVEMENTS, "{}", message);
|
||||||
});
|
});
|
||||||
|
Config::AddConfigChangedCallback([this] { SetHardcoreMode(); });
|
||||||
SetHardcoreMode();
|
SetHardcoreMode();
|
||||||
m_queue.Reset("AchievementManagerQueue", [](const std::function<void()>& func) { func(); });
|
m_queue.Reset("AchievementManagerQueue", [](const std::function<void()>& func) { func(); });
|
||||||
m_image_queue.Reset("AchievementManagerImageQueue",
|
m_image_queue.Reset("AchievementManagerImageQueue",
|
||||||
|
@ -11,6 +11,7 @@
|
|||||||
#include "Common/Config/Config.h"
|
#include "Common/Config/Config.h"
|
||||||
#include "Common/FileUtil.h"
|
#include "Common/FileUtil.h"
|
||||||
|
|
||||||
|
#include "Core/Config/AchievementSettings.h"
|
||||||
#include "Core/Config/GraphicsSettings.h"
|
#include "Core/Config/GraphicsSettings.h"
|
||||||
#include "Core/Config/MainSettings.h"
|
#include "Core/Config/MainSettings.h"
|
||||||
#include "Core/Config/SYSCONFSettings.h"
|
#include "Core/Config/SYSCONFSettings.h"
|
||||||
@ -33,6 +34,9 @@ public:
|
|||||||
layer->Set(Config::MAIN_CPU_THREAD, m_settings.cpu_thread);
|
layer->Set(Config::MAIN_CPU_THREAD, m_settings.cpu_thread);
|
||||||
layer->Set(Config::MAIN_CPU_CORE, m_settings.cpu_core);
|
layer->Set(Config::MAIN_CPU_CORE, m_settings.cpu_core);
|
||||||
layer->Set(Config::MAIN_ENABLE_CHEATS, m_settings.enable_cheats);
|
layer->Set(Config::MAIN_ENABLE_CHEATS, m_settings.enable_cheats);
|
||||||
|
#ifdef USE_RETRO_ACHIEVEMENTS
|
||||||
|
layer->Set(Config::RA_HARDCORE_ENABLED, m_settings.enable_hardcore);
|
||||||
|
#endif // USE_RETRO_ACHIEVEMENTS
|
||||||
layer->Set(Config::MAIN_GC_LANGUAGE, m_settings.selected_language);
|
layer->Set(Config::MAIN_GC_LANGUAGE, m_settings.selected_language);
|
||||||
layer->Set(Config::MAIN_OVERRIDE_REGION_SETTINGS, m_settings.override_region_settings);
|
layer->Set(Config::MAIN_OVERRIDE_REGION_SETTINGS, m_settings.override_region_settings);
|
||||||
layer->Set(Config::MAIN_DSP_HLE, m_settings.dsp_hle);
|
layer->Set(Config::MAIN_DSP_HLE, m_settings.dsp_hle);
|
||||||
|
@ -848,6 +848,7 @@ void NetPlayClient::OnStartGame(sf::Packet& packet)
|
|||||||
packet >> m_net_settings.cpu_thread;
|
packet >> m_net_settings.cpu_thread;
|
||||||
packet >> m_net_settings.cpu_core;
|
packet >> m_net_settings.cpu_core;
|
||||||
packet >> m_net_settings.enable_cheats;
|
packet >> m_net_settings.enable_cheats;
|
||||||
|
packet >> m_net_settings.enable_hardcore;
|
||||||
packet >> m_net_settings.selected_language;
|
packet >> m_net_settings.selected_language;
|
||||||
packet >> m_net_settings.override_region_settings;
|
packet >> m_net_settings.override_region_settings;
|
||||||
packet >> m_net_settings.dsp_enable_jit;
|
packet >> m_net_settings.dsp_enable_jit;
|
||||||
|
@ -35,6 +35,7 @@ struct NetSettings
|
|||||||
bool cpu_thread = false;
|
bool cpu_thread = false;
|
||||||
PowerPC::CPUCore cpu_core{};
|
PowerPC::CPUCore cpu_core{};
|
||||||
bool enable_cheats = false;
|
bool enable_cheats = false;
|
||||||
|
bool enable_hardcore = false;
|
||||||
int selected_language = 0;
|
int selected_language = 0;
|
||||||
bool override_region_settings = false;
|
bool override_region_settings = false;
|
||||||
bool dsp_hle = false;
|
bool dsp_hle = false;
|
||||||
|
@ -31,6 +31,7 @@
|
|||||||
#include "Common/UPnP.h"
|
#include "Common/UPnP.h"
|
||||||
#include "Common/Version.h"
|
#include "Common/Version.h"
|
||||||
|
|
||||||
|
#include "Core/AchievementManager.h"
|
||||||
#include "Core/ActionReplay.h"
|
#include "Core/ActionReplay.h"
|
||||||
#include "Core/Boot/Boot.h"
|
#include "Core/Boot/Boot.h"
|
||||||
#include "Core/Config/GraphicsSettings.h"
|
#include "Core/Config/GraphicsSettings.h"
|
||||||
@ -1358,6 +1359,7 @@ bool NetPlayServer::SetupNetSettings()
|
|||||||
settings.cpu_thread = Config::Get(Config::MAIN_CPU_THREAD);
|
settings.cpu_thread = Config::Get(Config::MAIN_CPU_THREAD);
|
||||||
settings.cpu_core = Config::Get(Config::MAIN_CPU_CORE);
|
settings.cpu_core = Config::Get(Config::MAIN_CPU_CORE);
|
||||||
settings.enable_cheats = Config::AreCheatsEnabled();
|
settings.enable_cheats = Config::AreCheatsEnabled();
|
||||||
|
settings.enable_hardcore = AchievementManager::GetInstance().IsHardcoreModeActive();
|
||||||
settings.selected_language = Config::Get(Config::MAIN_GC_LANGUAGE);
|
settings.selected_language = Config::Get(Config::MAIN_GC_LANGUAGE);
|
||||||
settings.override_region_settings = Config::Get(Config::MAIN_OVERRIDE_REGION_SETTINGS);
|
settings.override_region_settings = Config::Get(Config::MAIN_OVERRIDE_REGION_SETTINGS);
|
||||||
settings.dsp_hle = Config::Get(Config::MAIN_DSP_HLE);
|
settings.dsp_hle = Config::Get(Config::MAIN_DSP_HLE);
|
||||||
@ -1586,6 +1588,7 @@ bool NetPlayServer::StartGame()
|
|||||||
spac << m_settings.cpu_thread;
|
spac << m_settings.cpu_thread;
|
||||||
spac << m_settings.cpu_core;
|
spac << m_settings.cpu_core;
|
||||||
spac << m_settings.enable_cheats;
|
spac << m_settings.enable_cheats;
|
||||||
|
spac << m_settings.enable_hardcore;
|
||||||
spac << m_settings.selected_language;
|
spac << m_settings.selected_language;
|
||||||
spac << m_settings.override_region_settings;
|
spac << m_settings.override_region_settings;
|
||||||
spac << m_settings.dsp_enable_jit;
|
spac << m_settings.dsp_enable_jit;
|
||||||
|
@ -329,7 +329,6 @@ void AchievementSettingsWidget::ToggleProgress()
|
|||||||
|
|
||||||
void AchievementSettingsWidget::UpdateHardcoreMode()
|
void AchievementSettingsWidget::UpdateHardcoreMode()
|
||||||
{
|
{
|
||||||
AchievementManager::GetInstance().SetHardcoreMode();
|
|
||||||
if (Config::Get(Config::RA_HARDCORE_ENABLED))
|
if (Config::Get(Config::RA_HARDCORE_ENABLED))
|
||||||
{
|
{
|
||||||
Settings::Instance().SetDebugModeEnabled(false);
|
Settings::Instance().SetDebugModeEnabled(false);
|
||||||
|
Loading…
Reference in New Issue
Block a user