mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-07-04 23:31:19 +01:00
main: Tidy up enum comparison
enum classes are comparable with one another, so these casts aren't necessary.
This commit is contained in:
parent
dab7711524
commit
803ac4ca59
1 changed files with 1 additions and 2 deletions
|
@ -1049,8 +1049,7 @@ bool GMainWindow::LoadROM(const QString& filename, std::size_t program_index) {
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
if (static_cast<u32>(result) >
|
if (result > Core::System::ResultStatus::ErrorLoader) {
|
||||||
static_cast<u32>(Core::System::ResultStatus::ErrorLoader)) {
|
|
||||||
const u16 loader_id = static_cast<u16>(Core::System::ResultStatus::ErrorLoader);
|
const u16 loader_id = static_cast<u16>(Core::System::ResultStatus::ErrorLoader);
|
||||||
const u16 error_id = static_cast<u16>(result) - loader_id;
|
const u16 error_id = static_cast<u16>(result) - loader_id;
|
||||||
const std::string error_code = fmt::format("({:04X}-{:04X})", loader_id, error_id);
|
const std::string error_code = fmt::format("({:04X}-{:04X})", loader_id, error_id);
|
||||||
|
|
Loading…
Reference in a new issue