XS Framework
A 3DS homebrew development framework.
 
Loading...
Searching...
No Matches
sys.hpp
Go to the documentation of this file.
1
5#pragma once
6
7#include <3ds.h>
8#include <string>
9#include <vector>
10
14namespace xs::sys {
15
21bool isNew3DS();
22
28bool MainLoop() {
29 aptMainLoop();
30 return true;
31}
32
36namespace news {
43bool addNotification(const std::string &title, const std::string &message);
45void utf8ToUtf16(u16 *dst, const char *src, size_t maxChars);
46
47}; // namespace news
48
49} // namespace xs::sys
3DS Notification utilities.
Definition sys.hpp:36
void utf8ToUtf16(u16 *dst, const char *src, size_t maxChars)
Basic ASCII-only UTF-8 → UTF-16 converter.
bool addNotification(const std::string &title, const std::string &message)
Add a text notification (no image).
System-related utilities.
Definition service.hpp:20
bool isNew3DS()
Checks if the current system is a New 3DS.
bool MainLoop()
Main Loop. Run this every frame!
Definition sys.hpp:28