mirror of
https://github.com/zeldaret/st
synced 2026-08-30 09:11:26 -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/ActorUnkBSFC.hpp"
|
||||
#include "System/SysNew.hpp"
|
||||
|
||||
static ActorProfileUnkBSFC sActorProfileUnkBSFC;
|
||||
|
||||
ARM ActorProfileUnkBSFC *ActorProfileUnkBSFC::GetProfile() {
|
||||
return &sActorProfileUnkBSFC;
|
||||
}
|
||||
ARM DECL_PROFILE(ActorProfileUnkBSFC);
|
||||
|
||||
ARM Actor *ActorProfileUnkBSFC::Create() {
|
||||
return new(HeapIndex_2) ActorUnkBSFC();
|
||||
|
||||
@@ -3,11 +3,7 @@
|
||||
#include "Actor/ActorUnkFCHL.hpp"
|
||||
#include "System/SysNew.hpp"
|
||||
|
||||
static ActorProfileUnkFCHL sActorProfileUnkFCHL;
|
||||
|
||||
ARM ActorProfileUnkFCHL *ActorProfileUnkFCHL::GetProfile() {
|
||||
return &sActorProfileUnkFCHL;
|
||||
}
|
||||
ARM DECL_PROFILE(ActorProfileUnkFCHL);
|
||||
|
||||
ARM Actor *ActorProfileUnkFCHL::Create() {
|
||||
return new(HeapIndex_2) ActorUnkFCHL();
|
||||
|
||||
@@ -3,11 +3,7 @@
|
||||
#include "Actor/ActorUnkRMM1.hpp"
|
||||
#include "System/SysNew.hpp"
|
||||
|
||||
static ActorProfileUnkRMM1 sActorProfileUnkRMM1;
|
||||
|
||||
ARM ActorProfileUnkRMM1 *ActorProfileUnkRMM1::GetProfile() {
|
||||
return &sActorProfileUnkRMM1;
|
||||
}
|
||||
ARM DECL_PROFILE(ActorProfileUnkRMM1);
|
||||
|
||||
ARM Actor *ActorProfileUnkRMM1::Create() {
|
||||
return new(HeapIndex_2) ActorUnkRMM1();
|
||||
|
||||
@@ -3,11 +3,7 @@
|
||||
#include "Actor/ActorUnkTRLY.hpp"
|
||||
#include "System/SysNew.hpp"
|
||||
|
||||
static ActorProfileUnkTRLY sActorProfileUnkTRLY;
|
||||
|
||||
ARM ActorProfileUnkTRLY *ActorProfileUnkTRLY::GetProfile() {
|
||||
return &sActorProfileUnkTRLY;
|
||||
}
|
||||
ARM DECL_PROFILE(ActorProfileUnkTRLY);
|
||||
|
||||
ARM Actor *ActorProfileUnkTRLY::Create() {
|
||||
return new(HeapIndex_2) ActorUnkTRLY();
|
||||
|
||||
@@ -3,11 +3,7 @@
|
||||
#include "Actor/ActorUnkTRRL.hpp"
|
||||
#include "System/SysNew.hpp"
|
||||
|
||||
static ActorProfileUnkTRRL sActorProfileUnkTRRL;
|
||||
|
||||
ARM ActorProfileUnkTRRL *ActorProfileUnkTRRL::GetProfile() {
|
||||
return &sActorProfileUnkTRRL;
|
||||
}
|
||||
ARM DECL_PROFILE(ActorProfileUnkTRRL);
|
||||
|
||||
ARM Actor *ActorProfileUnkTRRL::Create() {
|
||||
return new(HeapIndex_2) ActorUnkTRRL();
|
||||
|
||||
@@ -3,11 +3,7 @@
|
||||
#include "MapObject/MapObjectUnkGELG.hpp"
|
||||
#include "System/SysNew.hpp"
|
||||
|
||||
static MapObjectProfileUnkGELG sMapObjectProfileUnkGELG;
|
||||
|
||||
ARM MapObjectProfileUnkGELG *MapObjectProfileUnkGELG::GetProfile() {
|
||||
return &sMapObjectProfileUnkGELG;
|
||||
}
|
||||
ARM DECL_PROFILE(MapObjectProfileUnkGELG);
|
||||
|
||||
ARM MapObject *MapObjectProfileUnkGELG::Create() {
|
||||
return new(HeapIndex_2) MapObjectUnkGELG();
|
||||
|
||||
@@ -3,11 +3,7 @@
|
||||
#include "MapObject/MapObjectUnkTRSW.hpp"
|
||||
#include "System/SysNew.hpp"
|
||||
|
||||
static MapObjectProfileUnkTRSW sMapObjectProfileUnkTRSW;
|
||||
|
||||
ARM MapObjectProfileUnkTRSW *MapObjectProfileUnkTRSW::GetProfile() {
|
||||
return &sMapObjectProfileUnkTRSW;
|
||||
}
|
||||
ARM DECL_PROFILE(MapObjectProfileUnkTRSW);
|
||||
|
||||
ARM MapObject *MapObjectProfileUnkTRSW::Create() {
|
||||
return new(HeapIndex_2) MapObjectUnkTRSW();
|
||||
|
||||
@@ -3,11 +3,7 @@
|
||||
#include "MapObject/MapObjectUnkWPHL.hpp"
|
||||
#include "System/SysNew.hpp"
|
||||
|
||||
static MapObjectProfileUnkWPHL sMapObjectProfileUnkWPHL;
|
||||
|
||||
ARM MapObjectProfileUnkWPHL *MapObjectProfileUnkWPHL::GetProfile() {
|
||||
return &sMapObjectProfileUnkWPHL;
|
||||
}
|
||||
ARM DECL_PROFILE(MapObjectProfileUnkWPHL);
|
||||
|
||||
ARM MapObject *MapObjectProfileUnkWPHL::Create() {
|
||||
return new(HeapIndex_2) MapObjectUnkWPHL();
|
||||
|
||||
Reference in New Issue
Block a user