Files
OpenVulkano/openVulkanoCpp/Host/ExeAppendedZipLoader.hpp
2024-12-21 17:19:01 +02:00

24 lines
725 B
C++

/*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
#pragma once
#include "Host/ResourceLoader.hpp"
#include "IO/FileDescription.hpp"
#include <variant>
#include <vector>
namespace OpenVulkano
{
class ExeAppendedZipLoader : public ResourceLoader
{
public:
std::string GetResourcePath(const std::string& resourceName) override;
Array<char> GetResource(const std::string& exePath) override;
std::vector<std::pair<FileDescription, Array<char>>> GetZipArchiveFiles(const std::string& exePath);
virtual std::string GetCurrentExecutablePath() const = 0;
};
}