3DSident/include/utils.h
Joel f8769ed82d Upstream changes with GUI, screen glitch fixes and more!
- System version now displays region ID:

U = USA/CAN
E = EUR/AUS
J = JPN
C = CHN
K = KOR
T = TWN

- Minor code clean up + consistency.

- Now displays home menu ID in misc tab.

- WiFi information, SSID and password. Thanks to LiquidFenrir for his WiFi manager's network struct.

- New colours:

- Displays Homemenu ID
- Displays IP address
- Displays brightness

Cyan for misc info.
Purple for NNID.
Green for WiFi slots.

- Fixed buffer overflows thanks to GCC  7.1.0.
2017-07-16 03:35:22 -04:00

17 lines
504 B
C

#ifndef UTILS_H
#define UTILS_H
#include <3ds.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#define ANY_KEY (KEY_TOUCH | KEY_A | KEY_B | KEY_X | KEY_Y | KEY_START | KEY_SELECT | \
KEY_UP | KEY_DOWN | KEY_LEFT | KEY_RIGHT | KEY_L | KEY_R | KEY_ZL | KEY_ZR | \
KEY_CSTICK_UP | KEY_CSTICK_DOWN | KEY_CSTICK_LEFT | KEY_CSTICK_RIGHT)
void getSizeString(char *string, uint64_t size);
void utf2ascii(char* dst, u16* src);
char * base64Encode(u8 const * bytesToEnc, size_t bufLen);
#endif