Files
SpaghettiKart/include/align_asset_macro.h
2025-01-05 11:30:10 +01:00

15 lines
430 B
C

#pragma once
bool GameEngine_OTRSigCheck(char* imgData);
#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)