XS Framework
A 3DS homebrew development framework.
 
Loading...
Searching...
No Matches
service.hpp
Go to the documentation of this file.
1#pragma once
2#include <3ds.h>
3#include <citro2d.h>
4#include <citro3d.h>
5
6namespace xs::services {
7
8enum ServiceFlags : uint32_t {
9 NONE = 0,
10 GFX_SERVICE = 1 << 0,
11 NEWS_SERVICE = 1 << 1,
12 CONSOLE_TOP = 1 << 2,
14 C2D_SERVICE = 1 << 4,
15 C3D_SERVICE = 1 << 5,
16};
17
18} // namespace xs::services
19
20namespace xs::sys {
21
22class Services {
23 public:
24 explicit Services(uint32_t f);
26
27 void enable(uint32_t f);
28 void disable(uint32_t f);
29
30 private:
31 uint32_t flags = xs::services::NONE;
32};
33
34} // namespace xs::sys
Services(uint32_t f)
void enable(uint32_t f)
void disable(uint32_t f)
Definition service.hpp:6
ServiceFlags
Definition service.hpp:8
@ NONE
Definition service.hpp:9
@ GFX_SERVICE
Definition service.hpp:10
@ NEWS_SERVICE
Definition service.hpp:11
@ CONSOLE_TOP
Definition service.hpp:12
@ C2D_SERVICE
Definition service.hpp:14
@ C3D_SERVICE
Definition service.hpp:15
@ CONSOLE_BOTTOM
Definition service.hpp:13
System-related utilities.
Definition service.hpp:20