⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 decrypt.h

📁 反汇编工具borg2.27源码
💻 H
字号:
//			decrypt.h
//

#ifndef decrypt_h
#define decrypt_h

#include "common.h"
#include "list.h"
#include "savefile.h"

// decrypt types supported - add, sub, mul, xor
enum dectype {decnull=0,decadd,decsub,decmul,decrot,decxor,decxadd};

// decrypt lengths - byte,word,dword,array
enum ditemtype {decbyte=1,decword,decdword,decarray};

// decrypters are held in an array - this array is saved when a database is saved
// and the list is reapplied on loading the file.
struct declist;

class decrypt:public slist <declist *>
{ public:
    dword nextitemnum;
    bool loading_db;

  public:
    decrypt();
    ~decrypt();
    dword add_decrypted(lptr dstart,lptr dend,dectype t,ditemtype ditem,dword val,lptr adr,bool patchedexe);
    void process_dec(dword dec_id);
    void process_reload(dword dec_id);
    void exepatch(dword dec_id);
    bool read_item(savefile *sf);
    bool write_item(savefile *sf);
    // virtual functions from slist
    int compare(declist *i,declist *j);
};

extern decrypt decrypter;

#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -