spidey-decomp/main.cpp
2024-03-08 19:36:30 +01:00

63 lines
1.3 KiB
C++

#define WINDOWS_LEAN_AND_MEAN
#include <windows.h>
#include "ob.h"
#include "vector.h"
#include "friction.h"
#include "bit.h"
#include "front.h"
#include "pshell.h"
#include "baddy.h"
#include "mj.h"
template<bool b>
struct StaticAssert{};
template<>
struct StaticAssert<true>
{
static void assert() {}
};
void compile_time_assertions(){
StaticAssert<sizeof(CVector)==12>::assert();
StaticAssert<sizeof(CFriction)==3>::assert();
//StaticAssert<sizeof(CBit) == 0x38>::assert();
//StaticAssert<sizeof(CMenu)==0x53C>::assert();
//StaticAssert<sizeof(CExpandingBox)==52>::assert();
StaticAssert<sizeof(CSVector)==6>::assert();
StaticAssert<sizeof(SVector)==6>::assert();
StaticAssert<sizeof(CQuadBit)==0x84>::assert();
StaticAssert<sizeof(CMJ)==0x324>::assert();
}
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
PSTR lpCmdLine, int nCmdShow)
{
compile_time_assertions();
AllocConsole();
freopen("CONOUT$", "w", stdout);
puts("[*] Starting validation");
validate_CItem();
validate_CVector();
validate_CSVector();
validate_CBit();
validate_CQuadBit();
validate_CFT4Bit();
validate_CFlatBit();
validate_CBody();
validate_SVector();
validate_CSuper();
validate_CBaddy();
puts("[*] Validation done!");
while(1){}
return 0;
}