Skip to content

Commit 8c5763a

Browse files
committed
Fix: Mac build broken.
1 parent d95539f commit 8c5763a

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

.gitattributes

+2-1
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,5 @@
2424
*.zip binary
2525
*.pdf binary
2626
*.bin binary
27-
*.dat binary
27+
*.dat binary
28+
*.tgz binary

Dependencies/MacBundle.tgz

3 Bytes
Binary file not shown.

openBVE/OpenBve/UserInterface/formMain.Start.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ private void textboxRouteFolder_TextChanged(object sender, EventArgs e) {
3535
rf = Folder;
3636

3737
routeWatcher = new FileSystemWatcher();
38-
routeWatcher.Path = Folder + "\\";
38+
routeWatcher.Path = Folder;
3939
routeWatcher.NotifyFilter = NotifyFilters.LastWrite | NotifyFilters.FileName | NotifyFilters.DirectoryName;
4040
routeWatcher.Filter = "*.*";
4141
routeWatcher.Changed += onRouteFolderChanged;
@@ -288,7 +288,7 @@ private void textboxTrainFolder_TextChanged(object sender, EventArgs e) {
288288
tf = Folder;
289289

290290
trainWatcher = new FileSystemWatcher();
291-
trainWatcher.Path = Folder + "\\";
291+
trainWatcher.Path = Folder;
292292
trainWatcher.NotifyFilter = NotifyFilters.LastWrite | NotifyFilters.FileName | NotifyFilters.DirectoryName;
293293
trainWatcher.Filter = "*.*";
294294
trainWatcher.Changed += onTrainFolderChanged;

0 commit comments

Comments
 (0)