mirror of
https://github.com/0O0o0oOoO00/Alas.git
synced 2026-05-19 21:39:28 +08:00
25 lines
404 B
C++
25 lines
404 B
C++
#pragma once
|
|
|
|
#include "dobby/dobby_internal.h"
|
|
#include "InterceptEntry.h"
|
|
|
|
class Interceptor {
|
|
public:
|
|
static Interceptor *SharedInstance();
|
|
|
|
public:
|
|
InterceptEntry *find(addr_t addr);
|
|
|
|
void remove(addr_t addr);
|
|
|
|
void add(InterceptEntry *entry);
|
|
|
|
const InterceptEntry *getEntry(int i);
|
|
|
|
int count();
|
|
|
|
private:
|
|
static Interceptor *instance;
|
|
|
|
tinystl::vector<InterceptEntry *> entries;
|
|
}; |