mirror of https://github.com/libAthena/athena.git
* Removal of remaining exceptions
This commit is contained in:
parent
4d13caeaab
commit
1de67f30b8
|
@ -40,8 +40,6 @@ SkywardSwordFile* SkywardSwordFileReader::read()
|
|||
{
|
||||
SkywardSwordFile* file = NULL;
|
||||
|
||||
try
|
||||
{
|
||||
if (base::length() != 0xFBE0)
|
||||
{
|
||||
atError("File not the expected size of 0xFBE0");
|
||||
|
@ -79,13 +77,6 @@ SkywardSwordFile* SkywardSwordFileReader::read()
|
|||
base::seek(pos, SeekOrigin::Begin);
|
||||
file->addQuest(q);
|
||||
}
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
delete file;
|
||||
file = NULL;
|
||||
throw;
|
||||
}
|
||||
|
||||
return file;
|
||||
}
|
||||
|
|
|
@ -40,8 +40,6 @@ Sakura::SpriteFile* SpriteFileReader::readFile()
|
|||
{
|
||||
Sakura::SpriteFile* ret = NULL;
|
||||
|
||||
try
|
||||
{
|
||||
atUint32 magic = base::readUint32();
|
||||
|
||||
if (magic != Sakura::SpriteFile::Magic)
|
||||
|
@ -219,13 +217,6 @@ Sakura::SpriteFile* SpriteFileReader::readFile()
|
|||
}
|
||||
|
||||
ret->setSprites(sprites);
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
delete ret;
|
||||
ret = NULL;
|
||||
throw;
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
|
|
@ -51,8 +51,6 @@ WiiSave* WiiSaveReader::readSave()
|
|||
{
|
||||
WiiSave* ret = new WiiSave;
|
||||
|
||||
try
|
||||
{
|
||||
if (length() < 0xF0C0)
|
||||
{
|
||||
atError("Not a valid WiiSave");
|
||||
|
@ -110,14 +108,6 @@ WiiSave* WiiSaveReader::readSave()
|
|||
ret->setRoot(buildTree(files));
|
||||
|
||||
readCerts(totalSize);
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
delete ret;
|
||||
ret = NULL;
|
||||
throw;
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue