Rework logs a little bit to allow choosing the log level from settings
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
#pragma once
|
||||
#include <ircolib/mem_access.hpp>
|
||||
#include <log.hpp>
|
||||
#include <Log.hpp>
|
||||
|
||||
namespace Util {
|
||||
#define Z64 0x80371200
|
||||
@@ -13,7 +13,7 @@ FORCE_INLINE void SwapN64Rom(std::vector<u8> &rom, u32 endianness) {
|
||||
if (endianness >> 24 != 0x80) {
|
||||
if ((endianness & 0xFF) != 0x80) {
|
||||
if ((endianness >> 16 & 0xff) != 0x80) {
|
||||
Error::GetInstance().Throw({Error::Severity::UNRECOVERABLE}, {Error::Type::ROM_LOAD_ERROR}, {}, {}, "Unrecognized rom endianness");
|
||||
panic("Unrecognized rom endianness");
|
||||
return;
|
||||
} else {
|
||||
altByteShift = 12;
|
||||
@@ -42,7 +42,7 @@ FORCE_INLINE void SwapN64Rom(std::vector<u8> &rom, u32 endianness) {
|
||||
ircolib::SwapBuffer<u32>(rom);
|
||||
break;
|
||||
default:
|
||||
Error::GetInstance().Throw({Error::Severity::UNRECOVERABLE}, {Error::Type::ROM_LOAD_ERROR}, {}, {}, "Unrecognized rom format! Make sure this is a valid Nintendo 64 ROM dump!");
|
||||
panic("Unrecognized rom format! Make sure this is a valid Nintendo 64 ROM dump!");
|
||||
}
|
||||
}
|
||||
} // namespace Util
|
||||
|
||||
Reference in New Issue
Block a user