Skip to content

Commit b5e1093

Browse files
author
Ravbug
committed
Ensure paths have a drive letter (#56)
1 parent bf95082 commit b5e1093

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/globals.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@ struct wxWindow;
5454

5555
//where to find various Unity things on windows
5656
static const std::filesystem::path executable = "Editor\\Unity.exe";
57-
static const std::vector<std::filesystem::path> defaultInstall = {"\\Program Files\\Unity\\Hub\\Editor"};
57+
static const std::vector<std::filesystem::path> defaultInstall = { homedrive / "\\Program Files\\Unity\\Hub\\Editor"};
5858

59-
static const std::filesystem::path hubDefault = "\\Program Files\\Unity Hub\\Unity Hub.exe";
59+
static const std::filesystem::path hubDefault = homedrive / "\\Program Files\\Unity Hub\\Unity Hub.exe";
6060
static const std::filesystem::path templatesDir = "Editor\\Data\\Resources\\PackageManager\\ProjectTemplates\\";
6161

6262
/**

0 commit comments

Comments
 (0)