2025-07-01 21:17:23 -03:00
|
|
|
#include <wx/wx.h>
|
|
|
|
|
#include <wx/filedlg.h>
|
|
|
|
|
#include <wx/gauge.h>
|
|
|
|
|
#include <wx/textdlg.h>
|
|
|
|
|
#include <wx/statline.h>
|
2025-07-03 09:37:46 -03:00
|
|
|
#include <wx/mstream.h>
|
|
|
|
|
#include <thread>
|
|
|
|
|
#include "resource.h"
|
|
|
|
|
#include "RyujinCore.hh"
|
2025-07-01 21:17:23 -03:00
|
|
|
|
|
|
|
|
class RyujinApp : public wxApp {
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
wxTextCtrl* m_input = nullptr;
|
|
|
|
|
wxTextCtrl* m_pdb = nullptr;
|
|
|
|
|
wxTextCtrl* m_output = nullptr;
|
|
|
|
|
wxCheckBox* m_virtualize = nullptr;
|
|
|
|
|
wxCheckBox* m_junk = nullptr;
|
|
|
|
|
wxCheckBox* m_encrypt = nullptr;
|
|
|
|
|
wxCheckBox* m_randomSection = nullptr;
|
|
|
|
|
wxCheckBox* m_obfuscateIat = nullptr;
|
|
|
|
|
wxCheckBox* m_ignoreOriginalCodeRemove = nullptr;
|
2025-07-10 20:55:39 -03:00
|
|
|
wxCheckBox* m_isAntiDebugWithTroll = nullptr;
|
|
|
|
|
wxCheckBox* m_isAntiDebugNormal = nullptr;
|
2025-07-12 21:26:12 -03:00
|
|
|
wxCheckBox* m_isAntiDump = nullptr;
|
2025-07-25 20:30:20 -03:00
|
|
|
wxCheckBox* m_isMemoryProtection = nullptr;
|
2025-07-01 21:17:23 -03:00
|
|
|
wxListBox* m_procList = nullptr;
|
|
|
|
|
wxGauge* m_progress = nullptr;
|
|
|
|
|
|
|
|
|
|
auto DrawnPathRow(wxWindow* parent, wxBoxSizer* sizer, const wxString& label, int buttonId) -> wxTextCtrl*;
|
|
|
|
|
auto DrawnStyledCheckbox(wxWindow* parent, const wxString& label) -> wxCheckBox*;
|
|
|
|
|
auto DrawnRyujinButton(wxWindow* parent, const wxString& label, int id) -> wxButton*;
|
|
|
|
|
auto BindFileDialogs(wxFrame* frame) -> void;
|
|
|
|
|
auto BindListEvents(wxFrame* frame) -> void;
|
|
|
|
|
auto BindRunEvent(wxFrame* frame) -> void;
|
2025-07-03 09:37:46 -03:00
|
|
|
auto LoadPngFromRes(wxWindow* parent, wxWindowID id, int resId) -> wxStaticBitmap*;
|
2025-07-01 21:17:23 -03:00
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
bool OnInit() override;
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
wxIMPLEMENT_APP(RyujinApp);
|