diff options
Diffstat (limited to 'src/video_core/macro/macro.cpp')
| -rw-r--r-- | src/video_core/macro/macro.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/video_core/macro/macro.cpp b/src/video_core/macro/macro.cpp index 0870a7687..0ae78a9e5 100644 --- a/src/video_core/macro/macro.cpp +++ b/src/video_core/macro/macro.cpp | |||
| @@ -65,10 +65,9 @@ void MacroEngine::Execute(u32 method, const std::vector<u32>& parameters) { | |||
| 65 | cache_info.lle_program = Compile(code); | 65 | cache_info.lle_program = Compile(code); |
| 66 | } | 66 | } |
| 67 | 67 | ||
| 68 | auto hle_program = hle_macros->GetHLEProgram(cache_info.hash); | 68 | if (auto hle_program = hle_macros->GetHLEProgram(cache_info.hash)) { |
| 69 | if (hle_program.has_value()) { | ||
| 70 | cache_info.has_hle_program = true; | 69 | cache_info.has_hle_program = true; |
| 71 | cache_info.hle_program = std::move(hle_program.value()); | 70 | cache_info.hle_program = std::move(hle_program); |
| 72 | cache_info.hle_program->Execute(parameters, method); | 71 | cache_info.hle_program->Execute(parameters, method); |
| 73 | } else { | 72 | } else { |
| 74 | cache_info.lle_program->Execute(parameters, method); | 73 | cache_info.lle_program->Execute(parameters, method); |