mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-23 13:25:27 +00:00
330795a650
* Define CommandDescription struct * Refactor InitialOptionsDialog to to work with CommandDescription * Clean InitialOptionsDialog UI
47 lines
843 B
C
47 lines
843 B
C
|
|
#ifndef CUTTER_INITIALOPTIONS_H
|
|
#define CUTTER_INITIALOPTIONS_H
|
|
|
|
#include "core/Cutter.h"
|
|
|
|
/**
|
|
* @brief The CommandDescription struct is a pair of a radare2 command and its description
|
|
*/
|
|
struct CommandDescription {
|
|
QString command;
|
|
QString description;
|
|
};
|
|
|
|
struct InitialOptions
|
|
{
|
|
enum class Endianness { Auto, Little, Big };
|
|
|
|
QString filename;
|
|
|
|
bool useVA = true;
|
|
RVA binLoadAddr = RVA_INVALID;
|
|
RVA mapAddr = RVA_INVALID;
|
|
|
|
QString arch;
|
|
QString cpu;
|
|
int bits = 0;
|
|
QString os;
|
|
|
|
Endianness endian;
|
|
|
|
bool writeEnabled = false;
|
|
bool loadBinInfo = true;
|
|
QString forceBinPlugin;
|
|
|
|
bool demangle = true;
|
|
|
|
QString pdbFile;
|
|
QString script;
|
|
|
|
QList<CommandDescription> analCmd = { {"aaa", "Auto analysis"} };
|
|
|
|
QString shellcode;
|
|
};
|
|
|
|
#endif //CUTTER_INITIALOPTIONS_H
|