|
|
|
@ -13,10 +13,8 @@
|
|
|
|
|
|
|
|
|
|
#include "3dsx.h"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
namespace Loader {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* File layout:
|
|
|
|
|
* - File header
|
|
|
|
@ -207,19 +205,19 @@ int THREEDSXReader::Load3DSXFile(const std::string& filename, u32 base_addr)
|
|
|
|
|
return ERROR_NONE;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// AppLoader_DSX constructor
|
|
|
|
|
AppLoader_THREEDSX::AppLoader_THREEDSX(const std::string& filename) : filename(filename) {
|
|
|
|
|
}
|
|
|
|
|
/// AppLoader_DSX constructor
|
|
|
|
|
AppLoader_THREEDSX::AppLoader_THREEDSX(const std::string& filename) : filename(filename) {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// AppLoader_DSX destructor
|
|
|
|
|
AppLoader_THREEDSX::~AppLoader_THREEDSX() {
|
|
|
|
|
}
|
|
|
|
|
/// AppLoader_DSX destructor
|
|
|
|
|
AppLoader_THREEDSX::~AppLoader_THREEDSX() {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Loads a 3DSX file
|
|
|
|
|
* @return Success on success, otherwise Error
|
|
|
|
|
*/
|
|
|
|
|
ResultStatus AppLoader_THREEDSX::Load() {
|
|
|
|
|
/**
|
|
|
|
|
* Loads a 3DSX file
|
|
|
|
|
* @return Success on success, otherwise Error
|
|
|
|
|
*/
|
|
|
|
|
ResultStatus AppLoader_THREEDSX::Load() {
|
|
|
|
|
LOG_INFO(Loader, "Loading 3DSX file %s...", filename.c_str());
|
|
|
|
|
FileUtil::IOFile file(filename, "rb");
|
|
|
|
|
if (file.IsOpen()) {
|
|
|
|
@ -229,6 +227,6 @@ int THREEDSXReader::Load3DSXFile(const std::string& filename, u32 base_addr)
|
|
|
|
|
return ResultStatus::Error;
|
|
|
|
|
}
|
|
|
|
|
return ResultStatus::Success;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
} // namespace Loader
|
|
|
|
|