2014-06-17 08:35:10 +05:30
|
|
|
// Copyright 2013 Dolphin Emulator Project / Citra Emulator Project
|
2014-03-25 20:17:12 +05:30
|
|
|
// Licensed under GPLv2
|
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2014-06-17 15:53:46 +05:30
|
|
|
#include "common/common_types.h"
|
2014-06-19 04:28:09 +05:30
|
|
|
#include "core/loader/loader.h"
|
2014-06-17 08:35:10 +05:30
|
|
|
|
2014-06-19 04:28:09 +05:30
|
|
|
////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Loader namespace
|
2014-06-17 08:35:10 +05:30
|
|
|
|
2014-06-19 04:28:09 +05:30
|
|
|
namespace Loader {
|
2014-06-17 08:35:10 +05:30
|
|
|
|
2014-06-19 04:28:09 +05:30
|
|
|
/// Loads an ELF/AXF file
|
2014-07-04 22:50:40 +05:30
|
|
|
class AppLoader_ELF final : public AppLoader {
|
2014-06-17 08:35:10 +05:30
|
|
|
public:
|
2014-06-20 03:16:05 +05:30
|
|
|
AppLoader_ELF(const std::string& filename);
|
2014-07-04 22:55:30 +05:30
|
|
|
~AppLoader_ELF() override;
|
2014-06-17 08:35:10 +05:30
|
|
|
|
2014-06-19 04:28:09 +05:30
|
|
|
/**
|
|
|
|
* Load the bootable file
|
|
|
|
* @return ResultStatus result of function
|
|
|
|
*/
|
2014-07-04 22:55:30 +05:30
|
|
|
ResultStatus Load() override;
|
2014-06-17 08:35:10 +05:30
|
|
|
|
2014-06-19 04:28:09 +05:30
|
|
|
private:
|
|
|
|
std::string filename;
|
|
|
|
bool is_loaded;
|
2014-03-25 20:17:12 +05:30
|
|
|
};
|
2014-06-17 08:48:10 +05:30
|
|
|
|
|
|
|
} // namespace Loader
|