VERY experimental Nintendo Switch 2 emulator
C++
Warnings: Add UNREACHABLE macros to switches that contemplate all possible values.
Subvf94bd67a0d94
diff --git a/src/core/file_sys/archive_backend.cpp b/src/core/file_sys/archive_backend.cppindex 1fae0ede0d..87a240d7a8 100644--- a/src/core/file_sys/archive_backend.cpp+++ b/src/core/file_sys/archive_backend.cpp@@ -90,6 +90,8 @@ std::u16string Path::AsU16Str() const {LOG_ERROR(Service_FS, "LowPathType cannot be converted to u16string!");return {};}++ UNREACHABLE();}std::vector<u8> Path::AsBinary() const {diff --git a/src/core/hle/kernel/kernel.h b/src/core/hle/kernel/kernel.hindex 9cf288b084..142bb84b20 100644--- a/src/core/hle/kernel/kernel.h+++ b/src/core/hle/kernel/kernel.h@@ -8,6 +8,7 @@#include <string>#include <utility>#include <boost/smart_ptr/intrusive_ptr.hpp>+#include "common/assert.h"#include "common/common_types.h"namespace Kernel {@@ -84,6 +85,8 @@ public:case HandleType::ClientSession:return false;}++ UNREACHABLE();}public:diff --git a/src/core/hw/gpu.h b/src/core/hw/gpu.hindex 21b127fee4..e3d0a0e086 100644--- a/src/core/hw/gpu.h+++ b/src/core/hw/gpu.h@@ -74,9 +74,9 @@ struct Regs {case PixelFormat::RGB5A1:case PixelFormat::RGBA4:return 2;- default:- UNIMPLEMENTED();}++ UNREACHABLE();}INSERT_PADDING_WORDS(0x4);