mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-13 02:08:49 +12:00
33 lines
580 B
C++
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;
|
|
};
|