Map importer now handles maps with multiple wads + remove the //Game type and replace with projects type. Also made it faster an async

This commit is contained in:
Antoine Pilote
2024-07-29 23:12:56 -04:00
parent 69d59266b9
commit 5fd8b3ead9
3 changed files with 93 additions and 37 deletions

View File

@@ -2,6 +2,7 @@
#include <src/Core/FileSystem.h>
#include <src/Core/FileSystem.h>
#include <atomic>
class MapImporterWindow
{
@@ -17,7 +18,9 @@ private:
std::vector<std::string> m_DetectedWads;
std::string m_OutputFile = "";
std::vector<std::string> ScanUsedWads();
std::map<std::string, std::string> m_WadToMaterialMap;
std::atomic<bool> m_Working = false;
std::atomic<int> m_Percentage;
std::string GetTransformedWadPath(const std::string& path);
};