Skip to content

Commit f58e252

Browse files
committed
add missing project err
1 parent 1b9be56 commit f58e252

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/ProjectManager.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
#include "IconsForkAwesome.h"
44
#include "Options.hpp"
55
#include "ProjectManager.hpp"
6+
#include <filesystem>
67
#include <format>
78
#include <iostream>
89
#include <scene/EditorScene.hpp>
@@ -56,6 +57,12 @@ void Init(){
5657

5758
// Load Project Banners
5859
for(auto project : ProjectsJson["projects"]){
60+
61+
if(!std::filesystem::exists(std::filesystem::path(project.get<std::string>()))){
62+
ImGui::InsertNotification({ImGuiToastType::Error, 3000, std::format("Found Missing Project\nPath: {}", project.get<std::string>()).data()});
63+
continue;
64+
}
65+
5966
uint32_t thumbId;
6067
glGenTextures(1, &thumbId);
6168
glBindTexture(GL_TEXTURE_2D, thumbId);

0 commit comments

Comments
 (0)