mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-04-23 12:08:59 +02:00
add game override support with a .ini file
This commit is contained in:
parent
e544cb3cf6
commit
2e7832762e
10 changed files with 688 additions and 23 deletions
|
|
@ -123,6 +123,7 @@ static FileSys::VirtualFile VfsDirectoryCreateFileWrapper(const FileSys::Virtual
|
|||
#include "core/frontend/applets/software_keyboard.h"
|
||||
#include "core/frontend/applets/mii_edit.h"
|
||||
#include "core/frontend/applets/general.h"
|
||||
#include "core/game_settings.h"
|
||||
|
||||
#include "core/hle/service/acc/profile_manager.h"
|
||||
#include "core/hle/service/am/applet_manager.h"
|
||||
|
|
@ -1880,6 +1881,18 @@ bool MainWindow::LoadROM(const QString& filename, Service::AM::FrontendAppletPar
|
|||
ShutdownGame();
|
||||
}
|
||||
|
||||
const bool overrides_enabled = UISettings::values.enable_global_overrides.GetValue();
|
||||
Settings::values.enable_global_overrides = overrides_enabled;
|
||||
|
||||
std::string gpu_vendor;
|
||||
if (!vk_device_records.empty()) {
|
||||
const int device_index = Settings::values.vulkan_device.GetValue();
|
||||
const int safe_index = std::clamp(device_index, 0,
|
||||
static_cast<int>(vk_device_records.size()) - 1);
|
||||
gpu_vendor = vk_device_records[safe_index].name;
|
||||
}
|
||||
Core::GameSettings::LoadEarlyOverrides(params.program_id, gpu_vendor, overrides_enabled);
|
||||
|
||||
if (!render_window->InitRenderTarget()) {
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue