Created
July 28, 2018 22:06
-
-
Save MainMemory/33029f6cfc949f4923e586663bafe0d5 to your computer and use it in GitHub Desktop.
GoalRingMod
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "stdafx.h" | |
#include "C:\Users\Mike\Documents\GitHub\sadx-mod-loader\SADXModLoader\include\SADXModLoader.h" | |
extern void (__cdecl GoalRing_Main)(ObjectMaster *obj); | |
extern NJS_TEXLIST GoalRingTextures; | |
PVMEntry pvm = { "GOALRING", &GoalRingTextures }; | |
void Init(const char *path, const HelperFunctions &helperFunctions) | |
{ | |
helperFunctions.RegisterCommonObjectPVM(pvm); | |
} | |
void __cdecl GoalRing_Load(ObjectMaster *obj) | |
{ | |
obj->Data1->Position.y += 42; | |
obj->MainSub = GoalRing_Main; | |
GoalRing_Main(obj); | |
} | |
PointerInfo jumps[] = { | |
ptrdecl(0x46B170, GoalRing_Load) | |
}; | |
extern "C" __declspec(dllexport) const ModInfo SADXModInfo = { ModLoaderVer, Init, NULL, 0, arrayptrandlength(jumps) }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment