From a21722a1db1b0b21b99f7ee07fb853e12951d6b4 Mon Sep 17 00:00:00 2001 From: georgemoralis Date: Sun, 31 Mar 2024 17:37:09 +0300 Subject: [PATCH] fixed linux issue with enums --- src/core/libraries/libscesysmodule.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/core/libraries/libscesysmodule.cpp b/src/core/libraries/libscesysmodule.cpp index d47ff1363..43ff44164 100644 --- a/src/core/libraries/libscesysmodule.cpp +++ b/src/core/libraries/libscesysmodule.cpp @@ -2,6 +2,8 @@ // SPDX-License-Identifier: GPL-2.0-or-later // Generated By moduleGenerator +#define MAGIC_ENUM_RANGE_MIN 0 +#define MAGIC_ENUM_RANGE_MAX 300 #include #include "common/logging/log.h" #include "error_codes.h" @@ -39,12 +41,6 @@ int PS4_SYSV_ABI sceSysmoduleIsLoadedInternal() { return ORBIS_OK; } -template <> -struct magic_enum::customize::enum_range { - static constexpr int min = 0; - static constexpr int max = 300; -}; - int PS4_SYSV_ABI sceSysmoduleLoadModule(OrbisSysModule id) { auto color_name = magic_enum::enum_name(id); LOG_ERROR(Lib_SysModule, "(DUMMY) called module = {}", magic_enum::enum_name(id));