2019-03-24 07:28:43 +00:00
|
|
|
#ifndef USEFUL_H
|
|
|
|
#define USEFUL_H
|
|
|
|
|
|
|
|
#include <switch.h>
|
|
|
|
#include <string.h>
|
|
|
|
#include <stdio.h>
|
|
|
|
|
|
|
|
#define LINKABLE __attribute__ ((weak))
|
|
|
|
|
2019-05-28 20:36:33 +00:00
|
|
|
#define LOAD64 *(u64 *)
|
2019-05-28 02:48:19 +00:00
|
|
|
|
2019-05-28 20:36:33 +00:00
|
|
|
#define debug_log(...) {\
|
|
|
|
char log_buf[0x200]; snprintf(log_buf, 0x200, __VA_ARGS__); \
|
|
|
|
svcOutputDebugString(log_buf, strlen(log_buf)); }
|
2019-05-28 02:48:19 +00:00
|
|
|
|
2019-05-28 20:36:33 +00:00
|
|
|
typedef struct Hash40 {
|
|
|
|
uint64_t hash : 40;
|
|
|
|
} Hash40;
|
2019-05-28 02:48:19 +00:00
|
|
|
|
2019-05-28 20:36:33 +00:00
|
|
|
typedef struct Vector3f {
|
|
|
|
float x;
|
|
|
|
float y;
|
|
|
|
float z;
|
|
|
|
} Vector3f;
|
2019-05-27 19:33:40 +00:00
|
|
|
|
2019-03-24 07:28:43 +00:00
|
|
|
#endif // USEFUL_H
|