mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-05 06:26:49 +00:00
Atomic SPU LS capture writes
This commit is contained in:
parent
d4af8dd89a
commit
9ccf39b27f
3 changed files with 28 additions and 7 deletions
|
|
@ -278,8 +278,10 @@ public:
|
|||
return m_error = elf_error::ok;
|
||||
}
|
||||
|
||||
void save(const fs::file& stream) const
|
||||
std::vector<u8> save(std::vector<u8>&& init = std::vector<u8>{}) const
|
||||
{
|
||||
fs::file stream = fs::make_stream<std::vector<u8>>(std::move(init));
|
||||
|
||||
// Write header
|
||||
ehdr_t header{};
|
||||
header.e_magic = "\177ELF"_u32;
|
||||
|
|
@ -322,6 +324,8 @@ public:
|
|||
{
|
||||
stream.write(prog.bin);
|
||||
}
|
||||
|
||||
return std::move(static_cast<fs::container_stream<std::vector<u8>>*>(stream.release().get())->obj);
|
||||
}
|
||||
|
||||
elf_object& clear()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue