Added wren binding to raycast function

This commit is contained in:
Antoine Pilote
2023-07-24 00:56:27 -04:00
parent fc8628fb4f
commit 5103101a0d
7 changed files with 92 additions and 51 deletions

View File

@@ -84,6 +84,7 @@ namespace Nuake
void WelcomeWindow::LoadQueuedProject()
{
FileSystem::SetRootDirectory(FileSystem::GetParentPath(queuedProjectPath));
auto project = Project::New();
auto projectFileData = FileSystem::ReadFile(queuedProjectPath, true);
try
@@ -274,14 +275,9 @@ namespace Nuake
{
assert(SelectedProject < std::size(_Projects));
using namespace Nuake;
SaveRecentFile();
std::string projectPath = _Projects[SelectedProject].Path;
FileSystem::SetRootDirectory(FileSystem::GetParentPath(projectPath));
queuedProjectPath = projectPath;
queuedProjectPath = _Projects[SelectedProject].Path;;
}
}
}