From 25b93419d0b09d6aeb587604b94319f9f37043c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Lam?= Date: Sun, 2 Oct 2016 11:52:57 +0200 Subject: [PATCH] SysConf: Add support for the LongLong type This should fix the "unknown entry type" panic alerts when an existing SYSCONF from a real Wii NAND is used. --- Source/Core/Common/SysConf.cpp | 4 ++++ Source/Core/Common/SysConf.h | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Source/Core/Common/SysConf.cpp b/Source/Core/Common/SysConf.cpp index 980318c06b..d4c58a3def 100644 --- a/Source/Core/Common/SysConf.cpp +++ b/Source/Core/Common/SysConf.cpp @@ -153,6 +153,10 @@ bool SysConf::LoadFromFileInternal(FILE* fh) curEntry.dataLength = 4; break; + case Type_LongLong: + curEntry.dataLength = 8; + break; + default: PanicAlertT("Unknown entry type %i in SYSCONF (%s@%x)!", curEntry.type, curEntry.name, curEntry.offset); diff --git a/Source/Core/Common/SysConf.h b/Source/Core/Common/SysConf.h index e500267c53..8b085051a7 100644 --- a/Source/Core/Common/SysConf.h +++ b/Source/Core/Common/SysConf.h @@ -27,7 +27,7 @@ enum SysconfType Type_Byte, Type_Short, Type_Long, - Type_Unknown, + Type_LongLong, Type_Bool };