You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
503 B
41 lines
503 B
|
4 years ago
|
#pragma once
|
||
|
|
|
||
|
|
#ifdef __cplusplus
|
||
|
|
extern "C" {
|
||
|
|
#endif
|
||
|
|
|
||
|
|
#include <3ds/result.h>
|
||
|
|
#include <3ds/services/cfgu.h>
|
||
|
|
|
||
|
|
#ifdef __cplusplus
|
||
|
|
}
|
||
|
|
#endif
|
||
|
|
|
||
|
|
namespace devilution {
|
||
|
|
namespace n3ds {
|
||
|
|
|
||
|
|
class CFGUService {
|
||
|
|
public:
|
||
|
|
CFGUService()
|
||
|
|
{
|
||
|
|
Result res = cfguInit();
|
||
|
|
isInitialized = R_SUCCEEDED(res);
|
||
|
|
}
|
||
|
|
|
||
|
|
~CFGUService()
|
||
|
|
{
|
||
|
|
cfguExit();
|
||
|
|
}
|
||
|
|
|
||
|
|
bool IsInitialized()
|
||
|
|
{
|
||
|
|
return isInitialized;
|
||
|
|
}
|
||
|
|
|
||
|
|
private:
|
||
|
|
bool isInitialized;
|
||
|
|
};
|
||
|
|
|
||
|
|
} // namespace n3ds
|
||
|
|
} // namespace devilution
|