ps4delta/code/core/kernel/loader/elf.h
2020-03-01 22:55:16 +01:00

35 lines
No EOL
589 B
C++

#pragma once
/*
* PS4Delta : PS4 emulation and research project
*
* Copyright 2019-2020 Force67.
* For information regarding licensing see LICENSE
* in the root of the source tree.
*/
#include "kernel/module.h"
namespace kern {
enum class loadStatus {
Success,
ErrorNotFound,
ErrorElfObj,
ErrorNoCode,
ErrorBadAlloc,
ErrorBadMap,
ErrorRecompiler,
ErrorProcInfo,
ErrorModuleInfo
};
enum class libLoadType {
hleAll,
hleSys,
hleNone,
};
constexpr u32 default_rip_size = 2 * 1024;
bool loadElf(sce_module& elf, const std::string&);
}