mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-06-02 16:53:17 +00:00
core: Reorganize
This commit is contained in:
parent
89cf4dbfcb
commit
369d92fa56
73 changed files with 724 additions and 572 deletions
|
@ -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();
|
||||
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue