summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authorJordan Woyak <jordan.woyak@gmail.com>2026-04-02 17:55:29 -0500
committerJordan Woyak <jordan.woyak@gmail.com>2026-04-02 18:11:29 -0500
commit26583fd026b4a236de332827bbf4fd91ffb18dcf (patch)
tree5abe422e92ff7078016d65f0559cf7f3db18cf8c /Source/Core
parente20f52ce7c36ba501b38b4610c9bd2c32aae869d (diff)
HW/GBACore: Remove the GBA "Threads" setting. Make GBAs always run on dedicated threads in preparation for future improvements.
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/Core/Config/MainSettings.cpp1
-rw-r--r--Source/Core/Core/Config/MainSettings.h1
-rw-r--r--Source/Core/Core/HW/GBACore.cpp13
-rw-r--r--Source/Core/DolphinQt/Settings/GameCubePane.cpp6
-rw-r--r--Source/Core/DolphinQt/Settings/GameCubePane.h1
5 files changed, 3 insertions, 19 deletions
diff --git a/Source/Core/Core/Config/MainSettings.cpp b/Source/Core/Core/Config/MainSettings.cpp
index 2e1d41a151..ba54a3e9ec 100644
--- a/Source/Core/Core/Config/MainSettings.cpp
+++ b/Source/Core/Core/Config/MainSettings.cpp
@@ -407,7 +407,6 @@ const std::array<Info<std::string>, 5> MAIN_GBA_ROM_PATHS{
};
const Info<std::string> MAIN_GBA_SAVES_PATH{{System::Main, "GBA", "SavesPath"}, ""};
const Info<bool> MAIN_GBA_SAVES_IN_ROM_PATH{{System::Main, "GBA", "SavesInRomPath"}, false};
-const Info<bool> MAIN_GBA_THREADS{{System::Main, "GBA", "Threads"}, true};
#endif
// Main.Network
diff --git a/Source/Core/Core/Config/MainSettings.h b/Source/Core/Core/Config/MainSettings.h
index 45ca6e972b..1117df7255 100644
--- a/Source/Core/Core/Config/MainSettings.h
+++ b/Source/Core/Core/Config/MainSettings.h
@@ -227,7 +227,6 @@ extern const Info<std::string> MAIN_GBA_BIOS_PATH;
extern const std::array<Info<std::string>, 5> MAIN_GBA_ROM_PATHS;
extern const Info<std::string> MAIN_GBA_SAVES_PATH;
extern const Info<bool> MAIN_GBA_SAVES_IN_ROM_PATH;
-extern const Info<bool> MAIN_GBA_THREADS;
static constexpr std::size_t GBPLAYER_GBA_INDEX = 4;
#endif
diff --git a/Source/Core/Core/HW/GBACore.cpp b/Source/Core/Core/HW/GBACore.cpp
index dcb5c4675e..55a268c28a 100644
--- a/Source/Core/Core/HW/GBACore.cpp
+++ b/Source/Core/Core/HW/GBACore.cpp
@@ -264,12 +264,8 @@ bool Core::Start(u64 gc_ticks)
// Notify the host and handle a dimension change if that happened after reset()
SetVideoBuffer();
- if (Config::Get(Config::MAIN_GBA_THREADS))
- {
- m_event_thread.Reset(fmt::format("GBA{}", m_device_number + 1),
- std::bind_front(&Core::HandleEvent, this));
- }
-
+ m_event_thread.Reset(fmt::format("GBA{}", m_device_number + 1),
+ std::bind_front(&Core::HandleEvent, this));
return true;
}
@@ -550,10 +546,7 @@ void Core::Flush()
void Core::PushEvent(SyncEvent event)
{
- if (m_event_thread.IsRunning())
- m_event_thread.Push(event);
- else
- HandleEvent(event);
+ m_event_thread.Push(event);
}
void Core::HandleEvent(SyncEvent event)
diff --git a/Source/Core/DolphinQt/Settings/GameCubePane.cpp b/Source/Core/DolphinQt/Settings/GameCubePane.cpp
index 178a26d64b..e6d0db14b5 100644
--- a/Source/Core/DolphinQt/Settings/GameCubePane.cpp
+++ b/Source/Core/DolphinQt/Settings/GameCubePane.cpp
@@ -204,11 +204,6 @@ void GameCubePane::CreateWidgets()
gba_box->setLayout(gba_layout);
int gba_row = 0;
- m_gba_threads =
- new ConfigBool(tr("Run GBA Cores in Dedicated Threads"), Config::MAIN_GBA_THREADS);
- gba_layout->addWidget(m_gba_threads, gba_row, 0, 1, -1);
- gba_row++;
-
m_gba_bios_edit = new ConfigUserPath(F_GBABIOS_IDX, Config::MAIN_GBA_BIOS_PATH);
m_gba_browse_bios = new NonDefaultQPushButton(QStringLiteral("..."));
gba_layout->addWidget(new QLabel(tr("BIOS:")), gba_row, 0);
@@ -307,7 +302,6 @@ void GameCubePane::OnEmulationStateChanged()
{
#ifdef HAS_LIBMGBA
bool gba_enabled = !NetPlay::IsNetPlayRunning();
- m_gba_threads->setEnabled(gba_enabled);
m_gba_bios_edit->setEnabled(gba_enabled);
m_gba_browse_bios->setEnabled(gba_enabled);
m_gba_save_rom_path->setEnabled(gba_enabled);
diff --git a/Source/Core/DolphinQt/Settings/GameCubePane.h b/Source/Core/DolphinQt/Settings/GameCubePane.h
index 3a339496a6..947ee7342c 100644
--- a/Source/Core/DolphinQt/Settings/GameCubePane.h
+++ b/Source/Core/DolphinQt/Settings/GameCubePane.h
@@ -81,7 +81,6 @@ private:
Common::EnumMap<QLabel*, ExpansionInterface::MAX_MEMCARD_SLOT> m_gci_override_labels;
Common::EnumMap<QLineEdit*, ExpansionInterface::MAX_MEMCARD_SLOT> m_gci_paths;
- ConfigBool* m_gba_threads;
ConfigBool* m_gba_save_rom_path;
QPushButton* m_gba_browse_bios;
ConfigUserPath* m_gba_bios_edit;