diff --git a/Editor/src/Windows/FileSystemUI.cpp b/Editor/src/Windows/FileSystemUI.cpp index c2680c78..89bfef01 100644 --- a/Editor/src/Windows/FileSystemUI.cpp +++ b/Editor/src/Windows/FileSystemUI.cpp @@ -245,7 +245,7 @@ namespace Nuake if (ImGui::MenuItem("Delete")) { - if (FileSystem::RemoveFile(file->GetAbsolutePath()) != 0) + if (FileSystem::DeleteFileFromPath(file->GetAbsolutePath()) != 0) { Logger::Log("Failed to remove file: " + file->GetRelativePath(), "editor", CRITICAL); } diff --git a/Nuake/src/Core/FileSystem.cpp b/Nuake/src/Core/FileSystem.cpp index a8d49aae..c2ed7bac 100644 --- a/Nuake/src/Core/FileSystem.cpp +++ b/Nuake/src/Core/FileSystem.cpp @@ -173,7 +173,7 @@ namespace Nuake fileWriter.close(); } - int FileSystem::RemoveFile(const std::string& path) + int FileSystem::DeleteFileFromPath(const std::string& path) { return std::remove(path.c_str()); } diff --git a/Nuake/src/Core/FileSystem.h b/Nuake/src/Core/FileSystem.h index c0f0bade..f337058f 100644 --- a/Nuake/src/Core/FileSystem.h +++ b/Nuake/src/Core/FileSystem.h @@ -46,7 +46,7 @@ namespace Nuake static bool BeginWriteFile(const std::string path); static bool WriteLine(const std::string line); static void EndWriteFile(); - static int RemoveFile(const std::string& path); + static int DeleteFileFromPath(const std::string& path); static int DeleteFolder(const std::string& path); };