fixed linux issue with enums
This commit is contained in:
parent
186fa35f13
commit
a21722a1db
|
@ -2,6 +2,8 @@
|
||||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||||
|
|
||||||
// Generated By moduleGenerator
|
// Generated By moduleGenerator
|
||||||
|
#define MAGIC_ENUM_RANGE_MIN 0
|
||||||
|
#define MAGIC_ENUM_RANGE_MAX 300
|
||||||
#include <magic_enum.hpp>
|
#include <magic_enum.hpp>
|
||||||
#include "common/logging/log.h"
|
#include "common/logging/log.h"
|
||||||
#include "error_codes.h"
|
#include "error_codes.h"
|
||||||
|
@ -39,12 +41,6 @@ int PS4_SYSV_ABI sceSysmoduleIsLoadedInternal() {
|
||||||
return ORBIS_OK;
|
return ORBIS_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
template <>
|
|
||||||
struct magic_enum::customize::enum_range<OrbisSysModule> {
|
|
||||||
static constexpr int min = 0;
|
|
||||||
static constexpr int max = 300;
|
|
||||||
};
|
|
||||||
|
|
||||||
int PS4_SYSV_ABI sceSysmoduleLoadModule(OrbisSysModule id) {
|
int PS4_SYSV_ABI sceSysmoduleLoadModule(OrbisSysModule id) {
|
||||||
auto color_name = magic_enum::enum_name(id);
|
auto color_name = magic_enum::enum_name(id);
|
||||||
LOG_ERROR(Lib_SysModule, "(DUMMY) called module = {}", magic_enum::enum_name(id));
|
LOG_ERROR(Lib_SysModule, "(DUMMY) called module = {}", magic_enum::enum_name(id));
|
||||||
|
|
Loading…
Reference in New Issue