mirror of
https://github.com/libretro/Play-.git
synced 2024-12-13 20:22:25 +00:00
git-svn-id: http://svn.purei.org/purei/trunk@153 b36208d7-6611-0410-8bec-b1987f11c4a2
This commit is contained in:
parent
f0c904f881
commit
e7a02f3461
@ -1,6 +1,6 @@
|
||||
#include <assert.h>
|
||||
#include <string.h>
|
||||
#include <exception>
|
||||
#include <stdexcept>
|
||||
#include "ELF.h"
|
||||
|
||||
using namespace Framework;
|
||||
@ -22,12 +22,12 @@ CELF::CELF(CStream* pS)
|
||||
|
||||
if(m_Header.nId[0] != 0x7F || m_Header.nId[1] != 'E' || m_Header.nId[2] != 'L' || m_Header.nId[3] != 'F')
|
||||
{
|
||||
throw exception("This file isn't a valid ELF file.");
|
||||
throw runtime_error("This file isn't a valid ELF file.");
|
||||
}
|
||||
|
||||
if(m_Header.nId[4] != 1 || m_Header.nId[5] != 1)
|
||||
{
|
||||
throw exception("This ELF file format is not supported. Only 32-bits LSB ordered ELFs are supported.");
|
||||
throw runtime_error("This ELF file format is not supported. Only 32-bits LSB ordered ELFs are supported.");
|
||||
}
|
||||
|
||||
nCount = m_Header.nProgHeaderCount;
|
||||
|
@ -73,7 +73,7 @@ public:
|
||||
const void* FindSectionData(const char*);
|
||||
ELFPROGRAMHEADER* GetProgram(unsigned int);
|
||||
ELFHEADER m_Header;
|
||||
void* m_pData;
|
||||
char* m_pData;
|
||||
int m_nLenght;
|
||||
private:
|
||||
ELFSECTIONHEADER* m_pSection;
|
||||
|
Loading…
Reference in New Issue
Block a user