Renamed textures to Textures

This commit is contained in:
antopilo
2024-09-16 20:12:02 -04:00
parent 38484415f1
commit da995b99c8
5 changed files with 8 additions and 8 deletions

View File

@@ -65,7 +65,7 @@ namespace NuakeEditor
"packageformat": { "extension": ".zip", "format": "zip" }
},
"textures": {
"root": "textures",
"root": "Textures",
"extensions": [ ".jpg", ".png", ".tga" ]
},
"entities": {

View File

@@ -240,7 +240,7 @@ std::vector<std::string> MapImporterWindow::ScanUsedWads()
std::string MapImporterWindow::GetTransformedWadPath(const std::string& path)
{
const std::string& baseTextureDir = "/textures/";
const std::string& baseTextureDir = "/Textures/";
using namespace Nuake;
if (m_WadToMaterialMap.find(path) != m_WadToMaterialMap.end())
@@ -285,7 +285,7 @@ std::string MapImporterWindow::GetTransformedWadPath(const std::string& path)
if (entry.is_regular_file() && stem == upperInput)
{
std::filesystem::path relativePath = std::filesystem::relative(entry.path(), FileSystem::Root + "/textures/");
std::filesystem::path relativePath = std::filesystem::relative(entry.path(), FileSystem::Root + "/Textures/");
std::filesystem::path pathWithoutExtension = relativePath;
pathWithoutExtension = pathWithoutExtension.parent_path(); // Remove the file name

View File

@@ -358,11 +358,11 @@ namespace Nuake
auto pathSplits = String::Split(std::string(wadPath.begin(), wadPath.end() - 4), '/');
pathSplits = String::Split(pathSplits[std::size(pathSplits) - 1], '\\');
WadName = pathSplits[std::size(pathSplits) - 1];
TargetDirectory = "/textures/" + WadName + "/";
TargetDirectory = "/Textures/" + WadName + "/";
if (!FileSystem::DirectoryExists("/textures/"))
if (!FileSystem::DirectoryExists("/Textures/"))
{
FileSystem::MakeDirectory("/textures/");
FileSystem::MakeDirectory("/Textures/");
}
if (!FileSystem::DirectoryExists(TargetDirectory))

View File

@@ -36,7 +36,7 @@ extern "C" {
#define KATANA_ERROR_MESSAGE_SIZE 100
typedef enum {
KatanaRuleUnkown,
KatanaRuleUnknown,
KatanaRuleStyle,
KatanaRuleImport,
KatanaRuleMedia,

View File

@@ -1376,7 +1376,7 @@ void katana_print_rule(KatanaParser* parser, KatanaRule* rule)
break;
case KatanaRuleSupports:
break;
case KatanaRuleUnkown:
case KatanaRuleUnknown:
break;
default: