Make compatible with both libnx v2.0.0 and v1.6.0

This commit is contained in:
shchmue
2019-01-04 15:54:34 -05:00
parent 352c39ae8a
commit d4b4f868b1
6 changed files with 57 additions and 11 deletions

View File

@ -24,6 +24,9 @@
#include <switch/types.h>
#define FB_WIDTH 1280
#define FB_HEIGHT 720
#define GREEN RGBA8_MAXALPHA(0, 0xff, 0)
#define RED RGBA8_MAXALPHA(0xff, 0, 0)
#define CYAN RGBA8_MAXALPHA(0, 0xff, 0xff)
@ -61,6 +64,9 @@ namespace Common {
// print exit
void wait_to_exit();
// refresh display
void update_display();
void sha256(const u8 *data, u8 *hash, size_t length);
// reads "<keyname> = <hexkey>" and returns byte vector
byte_vector key_string_to_byte_vector(std::string key_string);