core: Reorganize

This commit is contained in:
GPUCode 2023-11-06 01:11:54 +02:00
parent 89cf4dbfcb
commit 369d92fa56
73 changed files with 724 additions and 572 deletions

View file

@ -1,14 +1,12 @@
#include "ElfViewer.h"
#include "core/loader/elf.h"
#include "GUI/ElfViewer.h"
#include "imgui.h"
ElfViewer::ElfViewer(Elf* elf)
{
ElfViewer::ElfViewer(Core::Loader::Elf* elf) {
this->elf = elf;
}
//function to display Self/Elf window
void ElfViewer::display(bool enabled)
{
void ElfViewer::Display(bool enabled) {
int SELF_HEADER = 0;
int ELF_HEADER = 1;
int SEG_HEADER_START = 100;
@ -97,5 +95,4 @@ void ElfViewer::display(bool enabled)
}
ImGui::EndChild();
ImGui::End();
}

View file

@ -1,11 +1,15 @@
#pragma once
#include "../core/PS4/Loader/Elf.h"
namespace Core::Loader {
class Elf;
}
class ElfViewer {
private:
Elf* elf;
public:
ElfViewer(Elf* elf);
void display(bool enabled);//display imgui window
explicit ElfViewer(Core::Loader::Elf* elf);
};
void Display(bool enabled);
private:
Core::Loader::Elf* elf;
};