diff options
| author | 2020-07-14 01:02:10 -0400 | |
|---|---|---|
| committer | 2020-07-14 01:02:10 -0400 | |
| commit | 8160e142e154829c94a7acb8fe026672be6f5908 (patch) | |
| tree | 6a73c140925c0954af1e4316f6cd0e82acf06df1 /src | |
| parent | Merge pull request #4280 from jbeich/system-libusb (diff) | |
| download | yuzu-8160e142e154829c94a7acb8fe026672be6f5908.tar.gz yuzu-8160e142e154829c94a7acb8fe026672be6f5908.tar.xz yuzu-8160e142e154829c94a7acb8fe026672be6f5908.zip | |
main: Set async gpu properly after loading per-game setting
Another error that got pass me and only noticed when I was doing the per-game settings UI rework. This prevents asynchronous GPU emulation from being disabled while multi core is enabled as a result of a poorly put together per-game config.
Diffstat (limited to 'src')
| -rw-r--r-- | src/yuzu/main.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cpp index 432379705..8f889be3a 100644 --- a/src/yuzu/main.cpp +++ b/src/yuzu/main.cpp | |||
| @@ -1053,6 +1053,10 @@ void GMainWindow::BootGame(const QString& filename) { | |||
| 1053 | if (!(loader == nullptr || loader->ReadProgramId(title_id) != Loader::ResultStatus::Success)) { | 1053 | if (!(loader == nullptr || loader->ReadProgramId(title_id) != Loader::ResultStatus::Success)) { |
| 1054 | // Load per game settings | 1054 | // Load per game settings |
| 1055 | Config per_game_config(fmt::format("{:016X}.ini", title_id), false); | 1055 | Config per_game_config(fmt::format("{:016X}.ini", title_id), false); |
| 1056 | |||
| 1057 | Settings::values.use_asynchronous_gpu_emulation.SetValue( | ||
| 1058 | Settings::values.use_asynchronous_gpu_emulation.GetValue() || | ||
| 1059 | Settings::values.use_multi_core.GetValue()); | ||
| 1056 | } | 1060 | } |
| 1057 | 1061 | ||
| 1058 | Settings::LogSettings(); | 1062 | Settings::LogSettings(); |