diff options
Diffstat (limited to 'src/core/loader/elf.h')
| -rw-r--r-- | src/core/loader/elf.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/core/loader/elf.h b/src/core/loader/elf.h new file mode 100644 index 000000000..d3cbf414d --- /dev/null +++ b/src/core/loader/elf.h | |||
| @@ -0,0 +1,32 @@ | |||
| 1 | // Copyright 2013 Dolphin Emulator Project / Citra Emulator Project | ||
| 2 | // Licensed under GPLv2 | ||
| 3 | // Refer to the license.txt file included. | ||
| 4 | |||
| 5 | #pragma once | ||
| 6 | |||
| 7 | #include "common/common_types.h" | ||
| 8 | #include "core/loader/loader.h" | ||
| 9 | |||
| 10 | //////////////////////////////////////////////////////////////////////////////////////////////////// | ||
| 11 | // Loader namespace | ||
| 12 | |||
| 13 | namespace Loader { | ||
| 14 | |||
| 15 | /// Loads an ELF/AXF file | ||
| 16 | class AppLoader_ELF : public AppLoader { | ||
| 17 | public: | ||
| 18 | AppLoader_ELF(const std::string& filename); | ||
| 19 | ~AppLoader_ELF(); | ||
| 20 | |||
| 21 | /** | ||
| 22 | * Load the bootable file | ||
| 23 | * @return ResultStatus result of function | ||
| 24 | */ | ||
| 25 | ResultStatus Load(); | ||
| 26 | |||
| 27 | private: | ||
| 28 | std::string filename; | ||
| 29 | bool is_loaded; | ||
| 30 | }; | ||
| 31 | |||
| 32 | } // namespace Loader | ||