mirror of
https://github.com/HarbourMasters/SpaghettiKart
synced 2026-08-21 14:55:20 -04:00
Current Changes (#14)
* Couple minor fixes * test * OTR changes * More otr stuff * Some fixes --------- Co-authored-by: MegaMech <7255464+MegaMech@users.noreply.github.com>
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
#pragma once
|
||||
|
||||
#if defined(_WIN32)
|
||||
#define ALIGN_ASSET(x) __declspec(align(x))
|
||||
#else
|
||||
#define ALIGN_ASSET(x) __attribute__((aligned (x)))
|
||||
#endif
|
||||
|
||||
#define LOAD_ASSET(path) (path == NULL ? NULL : (GameEngine_OTRSigCheck((const char*) path) ? ResourceGetDataByName((const char*) path) : path))
|
||||
#define LOAD_ASSET_RAW(path) ResourceGetDataByName((const char*) path)
|
||||
+1
-1
@@ -97,7 +97,7 @@ enum SURFACE_TYPE {
|
||||
/* 0xFF */ RAMP // Koopa Troopa beach
|
||||
};
|
||||
|
||||
#define GFX_GET_OPCODE(var) ((s32)((var) & 0xFF000000))
|
||||
#define GFX_GET_OPCODE(var) ((uintptr_t)((var) & 0xFF000000))
|
||||
|
||||
// Pointer casting is technically UB, and avoiding it gets rid of endian issues
|
||||
// as well as a nice side effect.
|
||||
|
||||
Reference in New Issue
Block a user