diff options
Diffstat (limited to 'backends/platform/ps2/ps2loader.h')
-rw-r--r-- | backends/platform/ps2/ps2loader.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/backends/platform/ps2/ps2loader.h b/backends/platform/ps2/ps2loader.h index 7c412e7b05..cb4e2416eb 100644 --- a/backends/platform/ps2/ps2loader.h +++ b/backends/platform/ps2/ps2loader.h @@ -99,17 +99,17 @@ protected: void seterror(const char *fmt, ...); void unload(); - bool relocate(int fd, unsigned long offset, unsigned long size, void *); - bool load(int fd); - - bool readElfHeader(int fd, Elf32_Ehdr *ehdr); - bool readProgramHeaders(int fd, Elf32_Ehdr *ehdr, Elf32_Phdr *phdr, int num); - bool loadSegment(int fd, Elf32_Phdr *phdr); - Elf32_Shdr *loadSectionHeaders(int fd, Elf32_Ehdr *ehdr); - int loadSymbolTable(int fd, Elf32_Ehdr *ehdr, Elf32_Shdr *shdr); - bool loadStringTable(int fd, Elf32_Shdr *shdr); + bool relocate(Common::SeekableReadStream, unsigned long offset, unsigned long size, void *); + bool load(Common::SeekableReadStream); + + bool readElfHeader(Common::SeekableReadStream, Elf32_Ehdr *ehdr); + bool readProgramHeaders(Common::SeekableReadStream, Elf32_Ehdr *ehdr, Elf32_Phdr *phdr, int num); + bool loadSegment(Common::SeekableReadStream, Elf32_Phdr *phdr); + Elf32_Shdr *loadSectionHeaders(Common::SeekableReadStream, Elf32_Ehdr *ehdr); + int loadSymbolTable(Common::SeekableReadStream, Elf32_Ehdr *ehdr, Elf32_Shdr *shdr); + bool loadStringTable(Common::SeekableReadStream, Elf32_Shdr *shdr); void relocateSymbols(Elf32_Addr offset, Elf32_Addr shortsOffset); - bool relocateRels(int fd, Elf32_Ehdr *ehdr, Elf32_Shdr *shdr); + bool relocateRels(Common::SeekableReadStream, Elf32_Ehdr *ehdr, Elf32_Shdr *shdr); public: bool open(const char *path); |