mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2026-01-31 01:15:17 +01:00
JitRegister: Verify IOFile IsGood
Use IOFile's bool operator to check that it's not just open but good.
This commit is contained in:
@@ -79,7 +79,7 @@ void Register(const void* base_address, u32 code_size, const std::string& symbol
|
||||
#endif
|
||||
|
||||
// Linux perf /tmp/perf-$pid.map:
|
||||
if (!s_perf_map_file.IsOpen())
|
||||
if (!s_perf_map_file)
|
||||
return;
|
||||
|
||||
const auto entry = fmt::format("{} {:x} {}\n", fmt::ptr(base_address), code_size, symbol_name);
|
||||
|
||||
Reference in New Issue
Block a user