Skip to content

Instantly share code, notes, and snippets.

@MainMemory
Created July 28, 2018 22:06
Show Gist options
  • Save MainMemory/33029f6cfc949f4923e586663bafe0d5 to your computer and use it in GitHub Desktop.
Save MainMemory/33029f6cfc949f4923e586663bafe0d5 to your computer and use it in GitHub Desktop.
GoalRingMod
#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