Renamed textures to Textures
This commit is contained in:
@@ -65,7 +65,7 @@ namespace NuakeEditor
|
||||
"packageformat": { "extension": ".zip", "format": "zip" }
|
||||
},
|
||||
"textures": {
|
||||
"root": "textures",
|
||||
"root": "Textures",
|
||||
"extensions": [ ".jpg", ".png", ".tga" ]
|
||||
},
|
||||
"entities": {
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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))
|
||||
|
||||
@@ -36,7 +36,7 @@ extern "C" {
|
||||
#define KATANA_ERROR_MESSAGE_SIZE 100
|
||||
|
||||
typedef enum {
|
||||
KatanaRuleUnkown,
|
||||
KatanaRuleUnknown,
|
||||
KatanaRuleStyle,
|
||||
KatanaRuleImport,
|
||||
KatanaRuleMedia,
|
||||
|
||||
@@ -1376,7 +1376,7 @@ void katana_print_rule(KatanaParser* parser, KatanaRule* rule)
|
||||
break;
|
||||
case KatanaRuleSupports:
|
||||
break;
|
||||
case KatanaRuleUnkown:
|
||||
case KatanaRuleUnknown:
|
||||
break;
|
||||
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user