summaryrefslogtreecommitdiffstats
path: root/src/core/hle/romfs.h
diff options
context:
space:
mode:
authorwwylele <wwylele@gmail.com>2017-06-15 18:09:05 +0200
committerwwylele <wwylele@gmail.com>2017-06-26 00:38:12 +0200
commit9549eed0be790ff96574c23dd02ae7f9e00b2ca3 (patch)
tree87e5ac816f332fb4e1bad23dddec347a35f703a6 /src/core/hle/romfs.h
parentapt/shared_font: don't relocate zero offset (diff)
downloadyuzu-9549eed0be790ff96574c23dd02ae7f9e00b2ca3.tar
yuzu-9549eed0be790ff96574c23dd02ae7f9e00b2ca3.tar.gz
yuzu-9549eed0be790ff96574c23dd02ae7f9e00b2ca3.tar.bz2
yuzu-9549eed0be790ff96574c23dd02ae7f9e00b2ca3.tar.lz
yuzu-9549eed0be790ff96574c23dd02ae7f9e00b2ca3.tar.xz
yuzu-9549eed0be790ff96574c23dd02ae7f9e00b2ca3.tar.zst
yuzu-9549eed0be790ff96574c23dd02ae7f9e00b2ca3.zip
Diffstat (limited to '')
-rw-r--r--src/core/hle/romfs.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/core/hle/romfs.h b/src/core/hle/romfs.h
new file mode 100644
index 000000000..ee9f29760
--- /dev/null
+++ b/src/core/hle/romfs.h
@@ -0,0 +1,22 @@
+// Copyright 2017 Citra Emulator Project
+// Licensed under GPLv2 or any later version
+// Refer to the license.txt file included.
+
+#pragma once
+
+#include <string>
+#include <vector>
+#include "common/common_types.h"
+
+namespace RomFS {
+
+/**
+ * Gets the pointer to a file in a RomFS image.
+ * @param romfs The pointer to the RomFS image
+ * @param path A vector containing the directory names and file name of the path to the file
+ * @return the pointer to the file
+ * @todo reimplement this with a full RomFS manager
+ */
+const u8* GetFilePointer(const u8* romfs, const std::vector<std::u16string>& path);
+
+} // namespace RomFS