SwipSwapMe/src/utils/utils.h

12 lines
266 B
C
Raw Normal View History

2023-02-16 10:52:22 +01:00
#pragma once
#include <coreinit/dynload.h>
inline bool isModuleLoaded(const char *name) {
OSDynLoad_Module module;
auto err = OSDynLoad_IsModuleLoaded(name, &module);
if (err != OS_DYNLOAD_OK || !module) {
return false;
}
return true;
}