mirror of
https://github.com/wiiu-env/SwipSwapMe.git
synced 2024-06-02 09:28:44 +02:00
12 lines
266 B
C
12 lines
266 B
C
|
#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;
|
||
|
}
|