summaryrefslogtreecommitdiff
path: root/src/core/loader/3dsx.h
diff options
context:
space:
mode:
authorGravatar bunnei2017-10-12 21:21:49 -0400
committerGravatar bunnei2017-10-12 21:21:49 -0400
commit72b03025ac4ef0d8633c2f3e55b513cd149c59e5 (patch)
treef1fbeb915a0b3df8e4e988a6a562a763e18ea666 /src/core/loader/3dsx.h
parenthle: Remove a large amount of 3ds-specific service code. (diff)
downloadyuzu-72b03025ac4ef0d8633c2f3e55b513cd149c59e5.tar.gz
yuzu-72b03025ac4ef0d8633c2f3e55b513cd149c59e5.tar.xz
yuzu-72b03025ac4ef0d8633c2f3e55b513cd149c59e5.zip
Remove lots more 3DS-specific code.
Diffstat (limited to 'src/core/loader/3dsx.h')
-rw-r--r--src/core/loader/3dsx.h46
1 files changed, 0 insertions, 46 deletions
diff --git a/src/core/loader/3dsx.h b/src/core/loader/3dsx.h
deleted file mode 100644
index 1e59bbb9d..000000000
--- a/src/core/loader/3dsx.h
+++ /dev/null
@@ -1,46 +0,0 @@
1// Copyright 2014 Dolphin Emulator Project / Citra Emulator Project
2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included.
4
5#pragma once
6
7#include <string>
8#include "common/common_types.h"
9#include "core/loader/loader.h"
10
11////////////////////////////////////////////////////////////////////////////////////////////////////
12// Loader namespace
13
14namespace Loader {
15
16/// Loads an 3DSX file
17class AppLoader_THREEDSX final : public AppLoader {
18public:
19 AppLoader_THREEDSX(FileUtil::IOFile&& file, const std::string& filename,
20 const std::string& filepath)
21 : AppLoader(std::move(file)), filename(std::move(filename)), filepath(filepath) {}
22
23 /**
24 * Returns the type of the file
25 * @param file FileUtil::IOFile open file
26 * @return FileType found, or FileType::Error if this loader doesn't know it
27 */
28 static FileType IdentifyType(FileUtil::IOFile& file);
29
30 FileType GetFileType() override {
31 return IdentifyType(file);
32 }
33
34 ResultStatus Load(Kernel::SharedPtr<Kernel::Process>& process) override;
35
36 ResultStatus ReadIcon(std::vector<u8>& buffer) override;
37
38 ResultStatus ReadRomFS(std::shared_ptr<FileUtil::IOFile>& romfs_file, u64& offset,
39 u64& size) override;
40
41private:
42 std::string filename;
43 std::string filepath;
44};
45
46} // namespace Loader