mirror of
https://github.com/citra-emu/citra.git
synced 2024-12-23 21:40:04 +00:00
Loader: Fix variable type and remove unused variable
This commit is contained in:
parent
a1f08788d9
commit
62c2a262b2
@ -273,7 +273,6 @@ SharedPtr<CodeSet> ElfReader::LoadInto(u32 vaddr) {
|
|||||||
LOG_DEBUG(Loader, "%i segments:", header->e_phnum);
|
LOG_DEBUG(Loader, "%i segments:", header->e_phnum);
|
||||||
|
|
||||||
// First pass : Get the bits into RAM
|
// First pass : Get the bits into RAM
|
||||||
u32 segment_addr[32];
|
|
||||||
u32 base_addr = relocate ? vaddr : 0;
|
u32 base_addr = relocate ? vaddr : 0;
|
||||||
|
|
||||||
u32 total_image_size = 0;
|
u32 total_image_size = 0;
|
||||||
@ -398,7 +397,7 @@ ResultStatus AppLoader_ELF::Load() {
|
|||||||
// Reset read pointer in case this file has been read before.
|
// Reset read pointer in case this file has been read before.
|
||||||
file.Seek(0, SEEK_SET);
|
file.Seek(0, SEEK_SET);
|
||||||
|
|
||||||
u32 size = static_cast<u32>(file.GetSize());
|
size_t size = file.GetSize();
|
||||||
std::unique_ptr<u8[]> buffer(new u8[size]);
|
std::unique_ptr<u8[]> buffer(new u8[size]);
|
||||||
if (file.ReadBytes(&buffer[0], size) != size)
|
if (file.ReadBytes(&buffer[0], size) != size)
|
||||||
return ResultStatus::Error;
|
return ResultStatus::Error;
|
||||||
|
Loading…
Reference in New Issue
Block a user