@@ -15,6 +15,9 @@ Public Class Extras
15
15
'End Chunk
16
16
17
17
Dim DropboxPath As String = GetDropBoxPath()
18
+
19
+ Dim OpenRCT2Folder As String = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments) & "/OpenRCT2"
20
+
18
21
Private Sub Extras_Load(sender As Object , e As EventArgs) Handles MyBase .Load
19
22
Me .Icon = My.Resources.cat_paw
20
23
Me .FormBorderStyle = System.Windows.Forms.FormBorderStyle.Fixed3D
@@ -112,10 +115,21 @@ Public Class Extras
112
115
Next
113
116
Catch ex As Exception
114
117
'If there is no pre-existing files or the directory does not exist this will error out.
118
+ End Try
119
+ Try
120
+ For Each Save In Directory.EnumerateFiles(OpenRCT2Folder & "/save" )
121
+ File.Copy(Save, DropBoxSavePath & "/" & Path.GetFileName(Save), True )
122
+ Next
123
+ Catch ex As Exception
124
+
115
125
End Try
116
126
Try
117
127
Directory.Delete(SavePathOriginal, True )
118
128
Catch ex As Exception
129
+ End Try
130
+ Try
131
+ Directory.Delete(OpenRCT2Folder & "/save" , True )
132
+ Catch ex As Exception
119
133
120
134
End Try
121
135
Dim CreateSymLink As New ProcessStartInfo
@@ -124,6 +138,8 @@ Public Class Extras
124
138
CreateSymLink.Verb = ( "runas" )
125
139
CreateSymLink.WorkingDirectory = ""
126
140
Process.Start(CreateSymLink)
141
+ CreateSymLink.Arguments = ( "/c mklink /J """ & OpenRCT2Folder & "/save" & """ """ & DropBoxSavePath & """" )
142
+ Process.Start(CreateSymLink)
127
143
MsgBox( "Saves moved to Dropbox and Linked!" , , "Saves Moved!" )
128
144
ElseIf Response = DialogResult.No Then
129
145
'They answered no... so no.
0 commit comments