mirror of
https://github.com/zeldaret/tp
synced 2026-05-24 07:11:06 -04:00
7fd7d0c1f3
* d_a_obj_carry work, SETUP_ACTOR macro * rm headers, add script * progress * macro rename, consistent spacing
23 lines
355 B
C++
23 lines
355 B
C++
#ifndef JSUPPORT_H
|
|
#define JSUPPORT_H
|
|
|
|
|
|
template <typename T>
|
|
T* JSUConvertOffsetToPtr(const void* ptr, const void* offset) {
|
|
if (offset == NULL) {
|
|
return NULL;
|
|
} else {
|
|
return (T*)((s32)ptr + (s32)offset);
|
|
}
|
|
}
|
|
|
|
inline u8 JSULoByte(u16 in) {
|
|
return in & 0xff;
|
|
}
|
|
|
|
inline u8 JSUHiByte(u16 in) {
|
|
return in >> 8;
|
|
}
|
|
|
|
#endif
|