mirror of
https://github.com/antopilo/Nuake.git
synced 2026-09-15 20:08:54 +03:00
Renamed Exist method to FileExist
This commit is contained in:
@@ -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");
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -26,7 +26,7 @@ namespace Nuake
|
||||
|
||||
void Save();
|
||||
void SaveAs(const std::string& FullPath);
|
||||
bool Exist();
|
||||
bool FileExist();
|
||||
|
||||
static Ref<Project> New(const std::string& Name, const std::string& Description, const std::string& FullPath);
|
||||
static Ref<Project> New();
|
||||
|
||||
Reference in New Issue
Block a user