mirror of
https://github.com/zeldaret/st
synced 2026-09-03 01:54:28 -04:00
Improve or match actor static initializers (#44)
* use the new DECL_PROFILE macro to match static initializers * forgot to keep the mode macro * same thing with mapobjects * create profile.hpp * update delink and symbols for eur * update delink and symbols for jp * ninja format * fix some stuff 1 * fix jp build
This commit is contained in:
@@ -3,11 +3,7 @@
|
||||
#include "Actor/ActorUnkPBK2.hpp"
|
||||
#include "System/SysNew.hpp"
|
||||
|
||||
static ActorProfileUnkPBK2 sActorProfileUnkPBK2;
|
||||
|
||||
ARM ActorProfileUnkPBK2 *ActorProfileUnkPBK2::GetProfile() {
|
||||
return &sActorProfileUnkPBK2;
|
||||
}
|
||||
ARM DECL_PROFILE(ActorProfileUnkPBK2);
|
||||
|
||||
ARM Actor *ActorProfileUnkPBK2::Create() {
|
||||
return new(HeapIndex_2) ActorUnkPBK2();
|
||||
|
||||
@@ -3,11 +3,7 @@
|
||||
#include "Actor/ActorUnkPSBK.hpp"
|
||||
#include "System/SysNew.hpp"
|
||||
|
||||
static ActorProfileUnkPSBK sActorProfileUnkPSBK;
|
||||
|
||||
ARM ActorProfileUnkPSBK *ActorProfileUnkPSBK::GetProfile() {
|
||||
return &sActorProfileUnkPSBK;
|
||||
}
|
||||
ARM DECL_PROFILE(ActorProfileUnkPSBK);
|
||||
|
||||
ARM Actor *ActorProfileUnkPSBK::Create() {
|
||||
return new(HeapIndex_2) ActorUnkPSBK();
|
||||
|
||||
@@ -3,11 +3,7 @@
|
||||
#include "MapObject/MapObjectUnkDRTW.hpp"
|
||||
#include "System/SysNew.hpp"
|
||||
|
||||
static MapObjectProfileUnkDRTW sMapObjectProfileUnkDRTW;
|
||||
|
||||
ARM MapObjectProfileUnkDRTW *MapObjectProfileUnkDRTW::GetProfile() {
|
||||
return &sMapObjectProfileUnkDRTW;
|
||||
}
|
||||
ARM DECL_PROFILE(MapObjectProfileUnkDRTW);
|
||||
|
||||
ARM MapObject *MapObjectProfileUnkDRTW::Create() {
|
||||
return new(HeapIndex_2) MapObjectUnkDRTW();
|
||||
|
||||
Reference in New Issue
Block a user