Patch system improved

SPU patch rewritten
PPU patch implemented
This commit is contained in:
Nekotekina 2017-07-17 16:20:29 +03:00
parent 2ef2f0f63b
commit e39ee10105
3 changed files with 78 additions and 32 deletions

View file

@ -98,13 +98,13 @@ struct elf_phdr<en_t, u32>
template<template<typename T> class en_t, typename sz_t>
struct elf_prog final : elf_phdr<en_t, sz_t>
{
std::vector<char> bin;
std::vector<uchar> bin;
using base = elf_phdr<en_t, sz_t>;
elf_prog() = default;
elf_prog(u32 type, u32 flags, sz_t vaddr, sz_t memsz, sz_t align, std::vector<char>&& bin)
elf_prog(u32 type, u32 flags, sz_t vaddr, sz_t memsz, sz_t align, std::vector<uchar>&& bin)
: bin(std::move(bin))
{
base::p_type = type;