We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
cannot convert
1 parent 421baa2 commit 66bf017Copy full SHA for 66bf017
2 files changed
src/CleanCheat/FeatureBase.h
@@ -68,9 +68,8 @@ ABSTRACT class FeatureBase
68
_init = true;
69
70
Settings = new TSettings();
71
- Settings->OnInit();
72
73
- return OnInit(initData);
+ return Settings->Init() && OnInit(initData);
74
}
75
76
/// <summary>
src/CleanCheat/FeatureSettings.h
@@ -12,5 +12,14 @@ class FeatureSettings
12
virtual ~FeatureSettings() = default;
13
14
protected:
15
- virtual void OnInit() { }
+ virtual bool OnInit()
16
+ {
17
+ return true;
18
+ }
19
+
20
+public:
21
+ bool Init()
22
23
+ return OnInit();
24
25
};
0 commit comments