From 9d6756bbad20f2f1a616a2b63f42afa7f6a801cb Mon Sep 17 00:00:00 2001 From: ohyzha Date: Sat, 21 Dec 2024 16:14:33 +0200 Subject: [PATCH] rename files --- ...ndedZipLoader.cpp => ExeAppendedZipResourceLoader.cpp} | 8 ++++---- ...ndedZipLoader.hpp => ExeAppendedZipResourceLoader.hpp} | 2 +- ...derLinux.cpp => ExeAppendedZipResourceLoaderLinux.cpp} | 0 ...derLinux.hpp => ExeAppendedZipResourceLoaderLinux.hpp} | 0 ...indows.cpp => ExeAppendedZipResourceLoaderWindows.cpp} | 6 +++--- ...indows.hpp => ExeAppendedZipResourceLoaderWindows.hpp} | 4 ++-- 6 files changed, 10 insertions(+), 10 deletions(-) rename openVulkanoCpp/Host/{ExeAppendedZipLoader.cpp => ExeAppendedZipResourceLoader.cpp} (82%) rename openVulkanoCpp/Host/{ExeAppendedZipLoader.hpp => ExeAppendedZipResourceLoader.hpp} (91%) rename openVulkanoCpp/Host/Linux/{ExeAppendedZipLoaderLinux.cpp => ExeAppendedZipResourceLoaderLinux.cpp} (100%) rename openVulkanoCpp/Host/Linux/{ExeAppendedZipLoaderLinux.hpp => ExeAppendedZipResourceLoaderLinux.hpp} (100%) rename openVulkanoCpp/Host/Windows/{ExeAppendedZipLoaderWindows.cpp => ExeAppendedZipResourceLoaderWindows.cpp} (70%) rename openVulkanoCpp/Host/Windows/{ExeAppendedZipLoaderWindows.hpp => ExeAppendedZipResourceLoaderWindows.hpp} (70%) diff --git a/openVulkanoCpp/Host/ExeAppendedZipLoader.cpp b/openVulkanoCpp/Host/ExeAppendedZipResourceLoader.cpp similarity index 82% rename from openVulkanoCpp/Host/ExeAppendedZipLoader.cpp rename to openVulkanoCpp/Host/ExeAppendedZipResourceLoader.cpp index 1ab4c03..1fa0bac 100644 --- a/openVulkanoCpp/Host/ExeAppendedZipLoader.cpp +++ b/openVulkanoCpp/Host/ExeAppendedZipResourceLoader.cpp @@ -4,7 +4,7 @@ * file, You can obtain one at https://mozilla.org/MPL/2.0/. */ -#include "ExeAppendedZipLoader.hpp" +#include "ExeAppendedZipResourceLoader.hpp" #include "Base/Logger.hpp" #include "IO/Archive/ArchiveReader.hpp" #include @@ -12,12 +12,12 @@ namespace OpenVulkano { - std::string ExeAppendedZipLoader::GetResourcePath(const std::string& resourceName) + std::string ExeAppendedZipResourceLoader::GetResourcePath(const std::string& resourceName) { return GetCurrentExecutablePath(); } - Array ExeAppendedZipLoader::GetResource(const std::string& exeName) + Array ExeAppendedZipResourceLoader::GetResource(const std::string& exeName) { std::string ext = std::filesystem::path(exeName).extension().string(); if (ext != ".exe" && ext != "") @@ -41,7 +41,7 @@ namespace OpenVulkano return zipData; } - std::vector>> ExeAppendedZipLoader::GetZipArchiveFiles(const std::string& exePath) + std::vector>> ExeAppendedZipResourceLoader::GetZipArchiveFiles(const std::string& exePath) { Array zipData = GetResource(exePath); ArchiveReader reader(zipData.Data(), zipData.Size(), nullptr, ArchiveType::ZIP); diff --git a/openVulkanoCpp/Host/ExeAppendedZipLoader.hpp b/openVulkanoCpp/Host/ExeAppendedZipResourceLoader.hpp similarity index 91% rename from openVulkanoCpp/Host/ExeAppendedZipLoader.hpp rename to openVulkanoCpp/Host/ExeAppendedZipResourceLoader.hpp index 9adede4..c9021d7 100644 --- a/openVulkanoCpp/Host/ExeAppendedZipLoader.hpp +++ b/openVulkanoCpp/Host/ExeAppendedZipResourceLoader.hpp @@ -13,7 +13,7 @@ namespace OpenVulkano { - class ExeAppendedZipLoader : public ResourceLoader + class ExeAppendedZipResourceLoader : public ResourceLoader { public: std::string GetResourcePath(const std::string& resourceName) override; diff --git a/openVulkanoCpp/Host/Linux/ExeAppendedZipLoaderLinux.cpp b/openVulkanoCpp/Host/Linux/ExeAppendedZipResourceLoaderLinux.cpp similarity index 100% rename from openVulkanoCpp/Host/Linux/ExeAppendedZipLoaderLinux.cpp rename to openVulkanoCpp/Host/Linux/ExeAppendedZipResourceLoaderLinux.cpp diff --git a/openVulkanoCpp/Host/Linux/ExeAppendedZipLoaderLinux.hpp b/openVulkanoCpp/Host/Linux/ExeAppendedZipResourceLoaderLinux.hpp similarity index 100% rename from openVulkanoCpp/Host/Linux/ExeAppendedZipLoaderLinux.hpp rename to openVulkanoCpp/Host/Linux/ExeAppendedZipResourceLoaderLinux.hpp diff --git a/openVulkanoCpp/Host/Windows/ExeAppendedZipLoaderWindows.cpp b/openVulkanoCpp/Host/Windows/ExeAppendedZipResourceLoaderWindows.cpp similarity index 70% rename from openVulkanoCpp/Host/Windows/ExeAppendedZipLoaderWindows.cpp rename to openVulkanoCpp/Host/Windows/ExeAppendedZipResourceLoaderWindows.cpp index 30e1238..92dadc6 100644 --- a/openVulkanoCpp/Host/Windows/ExeAppendedZipLoaderWindows.cpp +++ b/openVulkanoCpp/Host/Windows/ExeAppendedZipResourceLoaderWindows.cpp @@ -4,17 +4,17 @@ * file, You can obtain one at https://mozilla.org/MPL/2.0/. */ -#include "ExeAppendedZipLoaderWindows.hpp" +#include "ExeAppendedZipResourceLoaderWindows.hpp" #include namespace OpenVulkano { namespace { - void* HANDLE = ResourceLoader::RegisterResourceLoader(std::make_unique()); + void* HANDLE = ResourceLoader::RegisterResourceLoader(std::make_unique()); } - std::string OpenVulkano::ExeAppendedZipLoaderWindows::GetCurrentExecutablePath() const + std::string OpenVulkano::ExeAppendedZipResourceLoaderWindows::GetCurrentExecutablePath() const { CHAR nameBuf[MAX_PATH] = {}; DWORD len = GetModuleFileNameA(NULL, nameBuf, MAX_PATH); diff --git a/openVulkanoCpp/Host/Windows/ExeAppendedZipLoaderWindows.hpp b/openVulkanoCpp/Host/Windows/ExeAppendedZipResourceLoaderWindows.hpp similarity index 70% rename from openVulkanoCpp/Host/Windows/ExeAppendedZipLoaderWindows.hpp rename to openVulkanoCpp/Host/Windows/ExeAppendedZipResourceLoaderWindows.hpp index 4e89e2e..c1ff2c0 100644 --- a/openVulkanoCpp/Host/Windows/ExeAppendedZipLoaderWindows.hpp +++ b/openVulkanoCpp/Host/Windows/ExeAppendedZipResourceLoaderWindows.hpp @@ -6,11 +6,11 @@ #pragma once -#include "Host/ExeAppendedZipLoader.hpp" +#include "Host/ExeAppendedZipResourceLoader.hpp" namespace OpenVulkano { - class ExeAppendedZipLoaderWindows final : public ExeAppendedZipLoader + class ExeAppendedZipResourceLoaderWindows final : public ExeAppendedZipResourceLoader { public: std::string GetCurrentExecutablePath() const override;