Added skeleton for CCarnage

This commit is contained in:
krystalgamer 2024-03-09 18:05:30 +01:00
parent 766a1b577a
commit d912211f3e
3 changed files with 48 additions and 0 deletions

19
carnage.cpp Normal file
View File

@ -0,0 +1,19 @@
#include "carnage.h"
#include "validate.h"
void validate_CCarnage(void){
VALIDATE_SIZE(CCarnage, 0x37C);
VALIDATE(CCarnage, field_334, 0x334);
VALIDATE(CCarnage, field_338, 0x338);
VALIDATE(CCarnage, field_33C, 0x33C);
VALIDATE(CCarnage, field_354, 0x354);
VALIDATE(CCarnage, field_358, 0x358);
VALIDATE(CCarnage, field_35C, 0x35C);
VALIDATE(CCarnage, field_36C, 0x36C);
VALIDATE(CCarnage, field_370, 0x370);
VALIDATE(CCarnage, field_374, 0x374);
VALIDATE(CCarnage, field_378, 0x378);
}

27
carnage.h Normal file
View File

@ -0,0 +1,27 @@
#pragma once
#include "export.h"
#include "baddy.h"
class CCarnage : public CBaddy {
public:
unsigned char carnageStartPad[0x10];
int field_334;
int field_338;
int field_33C;
unsigned char padAfter33c[0x18 - 4];
int field_354;
int field_358;
int field_35C;
unsigned char padAfter35C[0x10-4];
int field_36C;
int field_370;
int field_374;
int field_378;
};
void validate_CCarnage(void);

View File

@ -16,6 +16,7 @@
#include "torch.h"
#include "hostage.h"
#include "cop.h"
#include "carnage.h"
template<bool b>
struct StaticAssert{};
@ -69,6 +70,7 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
validate_CHostage();
validate_CScriptOnlyBaddy();
validate_CCop();
validate_CCarnage();
puts("[*] Validation done!");