-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathCA.cpp
30 lines (23 loc) · 919 Bytes
/
CA.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#include "CA.h"
#include "Menu_Log.hpp"
#include <cstdio>
using namespace CATHODE::CA;
__declspec(noinline)
void __stdcall FILE_HASHES::h_verify_integrity(char* package_file_name, unsigned* param_2, unsigned param_3)
{
//logger.AddLog("[CA::FILE_HASHES::verify_integrity] package_file_name: %s; param_2: 0x%p; param_3: %u\n", package_file_name, param_2, param_3);
verify_integrity(package_file_name, param_2, param_3);
}
/*
__declspec(noinline)
void __stdcall FILE_HASHES::h_terminate_game()
{
logger.AddLog("[CA::FILE_HASHES::terminate_game] Blocked termination request - is this due to an integrity check failing?!\n");
}
*/
__declspec(noinline)
void __stdcall FILE_HASHES::h_sha1_portable_hash(unsigned char* message_array, unsigned length)
{
//logger.AddLog("[CA::FILE_HASHES::sha1_portable_hash] message_array: 0x%p; length: %u\n", message_array, length);
sha1_portable_hash(message_array, length);
}