rpcs3/rpcs3/Emu/Cell/Modules/StaticHLE.h
Nekotekina e1042bc631 Get rid of "module" keyword
Workaround some intellisense problems.
2020-05-06 18:20:11 +03:00

33 lines
580 B
C++

#pragma once
#include "../../Utilities/types.h"
#include "Emu/Cell/PPUModule.h"
#include "Emu/Cell/PPUOpcodes.h"
#include <vector>
struct shle_pattern
{
u16 start_pattern[32];
u8 crc16_length;
u16 crc16;
u16 total_length;
std::string _module;
std::string name;
u32 fnid;
};
class statichle_handler
{
public:
statichle_handler(int);
~statichle_handler();
bool load_patterns();
bool check_against_patterns(vm::cptr<u8>& data, u32 size, u32 addr);
protected:
uint16_t gen_CRC16(const uint8_t* data_p, size_t length);
std::vector<shle_pattern> hle_patterns;
};