summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormrb0nk500 <b0nk@b0nk.xyz>2023-02-03 13:34:21 -0400
committermrb0nk500 <b0nk@b0nk.xyz>2023-02-03 13:35:12 -0400
commit1c1292fcc599714d988c5773d356e54c7084481f (patch)
treed260c2da2ef2bb89cd3d8f2ed6afdc44aaf0b8c9
parentecd5a680b2f048a3aa7dd6b93f4da9768fdc347c (diff)
TMainTask: Add private helpers for setting, clearing, and getting
`task_flags`
-rw-r--r--include/pso/TMainTask.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/pso/TMainTask.h b/include/pso/TMainTask.h
index 024feec..b719e94 100644
--- a/include/pso/TMainTask.h
+++ b/include/pso/TMainTask.h
@@ -15,5 +15,17 @@ public:
public:
TMainTask();
virtual ~TMainTask();
+private:
+ void set_task_flags(u32 flags) {
+ this->task_flags |= flags;
+ }
+
+ void clear_task_flags(u32 flags) {
+ this->task_flags &= ~flags;
+ }
+
+ u32 get_task_flags(u32 flags) {
+ return this->task_flags & flags;
+ };
};
#endif