diff options
Diffstat (limited to 'libjin/Common/Subsystem.h')
-rw-r--r-- | libjin/Common/Subsystem.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libjin/Common/Subsystem.h b/libjin/Common/Subsystem.h index 35563da..8a4ecf6 100644 --- a/libjin/Common/Subsystem.h +++ b/libjin/Common/Subsystem.h @@ -14,9 +14,10 @@ namespace jin struct Setting {}; typedef Setting SettingBase; - void init(const SettingBase* setting) + bool init(const SettingBase* setting) { - CALLONCE(initSystem(setting)); + static bool success = initSystem(setting); + return success; } void quit() @@ -37,6 +38,6 @@ namespace jin }; -} +} // jin #endif
\ No newline at end of file |