3 changed files with 78 additions and 25 deletions
@ -0,0 +1,40 @@
|
||||
#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
|
||||
Loading…
Reference in new issue