From 6b4d0c0f695e777136ff3036ac6237b5eed1934d Mon Sep 17 00:00:00 2001 From: emerycp Date: Fri, 7 Jul 2023 18:33:29 -0400 Subject: [PATCH] Renamed Exist method to FileExist --- Editor/src/Windows/EditorInterface.cpp | 2 +- Nuake/src/Resource/Project.cpp | 2 +- Nuake/src/Resource/Project.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Editor/src/Windows/EditorInterface.cpp b/Editor/src/Windows/EditorInterface.cpp index ef0db267..5379053c 100644 --- a/Editor/src/Windows/EditorInterface.cpp +++ b/Editor/src/Windows/EditorInterface.cpp @@ -1248,7 +1248,7 @@ namespace Nuake { void NewProject() { - if (Engine::GetProject() && Engine::GetProject()->Exist()) + if (Engine::GetProject() && Engine::GetProject()->FileExist()) Engine::GetProject()->Save(); std::string selectedProject = FileDialog::SaveFile("Project file\0*.project"); diff --git a/Nuake/src/Resource/Project.cpp b/Nuake/src/Resource/Project.cpp index 79f5fd5d..c1294a12 100644 --- a/Nuake/src/Resource/Project.cpp +++ b/Nuake/src/Resource/Project.cpp @@ -53,7 +53,7 @@ namespace Nuake projectFile.close(); } - bool Project::Exist() + bool Project::FileExist() { struct stat buffer{}; return (stat (this->FullPath.c_str(), &buffer) == 0); diff --git a/Nuake/src/Resource/Project.h b/Nuake/src/Resource/Project.h index e35a568c..ee3fb232 100644 --- a/Nuake/src/Resource/Project.h +++ b/Nuake/src/Resource/Project.h @@ -26,7 +26,7 @@ namespace Nuake void Save(); void SaveAs(const std::string& FullPath); - bool Exist(); + bool FileExist(); static Ref New(const std::string& Name, const std::string& Description, const std::string& FullPath); static Ref New();