2
0
mirror of https://github.com/Laupetin/OpenAssetTools.git synced 2025-11-23 21:22:07 +00:00

chore: do not make filename constants separate variables

This commit is contained in:
Jan Laupetin
2025-11-10 20:40:50 +01:00
parent 9114cf5d7d
commit 049fa2b8ae
3 changed files with 6 additions and 11 deletions

View File

@@ -79,8 +79,7 @@ namespace BSP
try
{
json entJs;
std::string entityFileName = "entities.json";
std::string entityFilePath = BSPUtil::getFileNameForBSPAsset(entityFileName);
const auto entityFilePath = BSPUtil::getFileNameForBSPAsset("entities.json");
const auto entFile = m_search_path.Open(entityFilePath);
if (!entFile.IsOpen())
{
@@ -96,8 +95,7 @@ namespace BSP
return nullptr;
json spawnJs;
std::string spawnFileName = "spawns.json";
std::string spawnFilePath = BSPUtil::getFileNameForBSPAsset(spawnFileName);
const auto spawnFilePath = BSPUtil::getFileNameForBSPAsset("spawns.json");
const auto spawnFile = m_search_path.Open(spawnFilePath);
if (!spawnFile.IsOpen())
{