romfs.h 622 B

12345678910111213141516171819202122
  1. // Copyright 2017 Citra Emulator Project
  2. // Licensed under GPLv2 or any later version
  3. // Refer to the license.txt file included.
  4. #pragma once
  5. #include <string>
  6. #include <vector>
  7. #include "common/common_types.h"
  8. namespace RomFS {
  9. /**
  10. * Gets the pointer to a file in a RomFS image.
  11. * @param romfs The pointer to the RomFS image
  12. * @param path A vector containing the directory names and file name of the path to the file
  13. * @return the pointer to the file
  14. * @todo reimplement this with a full RomFS manager
  15. */
  16. const u8* GetFilePointer(const u8* romfs, const std::vector<std::u16string>& path);
  17. } // namespace RomFS