Account different header
This commit is contained in:
@@ -6,20 +6,23 @@ namespace Util {
|
|||||||
#define Z64 0x80371240
|
#define Z64 0x80371240
|
||||||
#define N64 0x40123780
|
#define N64 0x40123780
|
||||||
#define V64 0x37804012
|
#define V64 0x37804012
|
||||||
|
#define Z64_ALT 0x80371241
|
||||||
|
#define N64_ALT 0x41123780
|
||||||
|
#define V64_ALT 0x37804112
|
||||||
|
|
||||||
template <bool toBE = false>
|
template <bool toBE = false>
|
||||||
FORCE_INLINE void SwapN64Rom(size_t size, u8 *rom, u32 endianness) {
|
FORCE_INLINE void SwapN64Rom(size_t size, u8 *rom, u32 endianness) {
|
||||||
switch (endianness) {
|
switch (endianness) {
|
||||||
case V64:
|
case V64: case V64_ALT:
|
||||||
SwapBuffer16(size, rom);
|
SwapBuffer16(size, rom);
|
||||||
if constexpr(!toBE)
|
if constexpr(!toBE)
|
||||||
SwapBuffer32(size, rom);
|
SwapBuffer32(size, rom);
|
||||||
break;
|
break;
|
||||||
case N64:
|
case N64: case N64_ALT:
|
||||||
if constexpr(toBE)
|
if constexpr(toBE)
|
||||||
SwapBuffer32(size, rom);
|
SwapBuffer32(size, rom);
|
||||||
break;
|
break;
|
||||||
case Z64:
|
case Z64: case Z64_ALT:
|
||||||
if constexpr(!toBE)
|
if constexpr(!toBE)
|
||||||
SwapBuffer32(size, rom);
|
SwapBuffer32(size, rom);
|
||||||
break;
|
break;
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
#include <core/registers/Registers.hpp>
|
#include <core/registers/Registers.hpp>
|
||||||
#include <core/registers/Cop0.hpp>
|
#include <core/registers/Cop0.hpp>
|
||||||
#include <core/Interpreter.hpp>
|
#include <core/Interpreter.hpp>
|
||||||
|
#include <backend/RomHelpers.hpp>
|
||||||
#include <File.hpp>
|
#include <File.hpp>
|
||||||
#include <unarr.h>
|
#include <unarr.h>
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,6 @@
|
|||||||
#include <backend/MemoryRegions.hpp>
|
#include <backend/MemoryRegions.hpp>
|
||||||
#include <backend/core/MMIO.hpp>
|
#include <backend/core/MMIO.hpp>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <backend/RomHelpers.hpp>
|
|
||||||
#include <log.hpp>
|
#include <log.hpp>
|
||||||
#include <Registers.hpp>
|
#include <Registers.hpp>
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
|
|||||||
Reference in New Issue
Block a user