1
0
Fork 0
mirror of https://github.com/jugeeya/UltimateTrainingModpack.git synced 2025-02-01 15:07:25 +00:00
UltimateTrainingModpack/source/useful/useful.h
2019-07-06 11:53:06 -07:00

40 lines
666 B
C

#ifndef USEFUL_H
#define USEFUL_H
#include <switch.h>
#include <string.h>
#include <stdio.h>
#define LOAD64 *(u64 *)
#define LINKABLE __attribute__ ((weak))
#define debug_log(...) \
{char log_buf[0x200]; snprintf(log_buf, 0x200, __VA_ARGS__); \
svcOutputDebugString(log_buf, strlen(log_buf));}
u64 is_training_mode(void) asm("_ZN3app9smashball16is_training_modeEv") LINKABLE;
typedef struct Hash40 {
uint64_t hash : 40;
} Hash40;
typedef struct Vector2f {
float x;
float y;
} Vector2f;
typedef struct Vector3f {
float x;
float y;
float z;
} Vector3f;
typedef struct Vector4f {
float x;
float y;
float z;
float w;
}Vector4f;
#endif // USEFUL_H