You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 11, 2023. It is now read-only.
MessageBox.Show("An error appeared while reading the configs. Without them, the editor wont start. Reinstall program!"+Environment.NewLine+"Details: "+e.Message
111
+
MessageBox.Show(
112
+
"An error appeared while reading the configs. Without them, the editor wont start. Reinstall program!"+
113
+
Environment.NewLine+"Details: "+e.Message
140
114
,"Error while reading configs."
141
115
,MessageBoxButton.OK
142
116
,MessageBoxImage.Warning);
@@ -145,89 +119,88 @@ public static Config[] Load()
145
119
}
146
120
else
147
121
{
148
-
MessageBox.Show("The Editor could not find the Configs.xml file. Without it, the editor wont start. Reinstall program.","File not found.",MessageBoxButton.OK,MessageBoxImage.Warning);
122
+
MessageBox.Show(
123
+
"The Editor could not find the Configs.xml file. Without it, the editor wont start. Reinstall program.",
124
+
"File not found.",MessageBoxButton.OK,MessageBoxImage.Warning);
string.Empty;//securestring? No! Because it's saved in plaintext and if you want to keep it a secret, you shouldn't automaticly uploade it anyways...
187
156
188
-
publicstringFTPHost="ftp://localhost/";
189
157
publicstringFTPUser=string.Empty;
190
-
publicstringFTPPassword=string.Empty;//securestring? No! Because it's saved in plaintext and if you want to keep it a secret, you shouldn't automaticly uploade it anyways...
191
-
publicstringFTPDir=string.Empty;
158
+
publicstringName=string.Empty;
192
159
193
-
publicboolRConUseSourceEngine=true;
160
+
publicintOptimizeLevel=2;
161
+
162
+
publicstringPostCmd=string.Empty;
163
+
publicstringPreCmd=string.Empty;
164
+
publicstringRConCommands=string.Empty;
194
165
publicstringRConIP="127.0.0.1";
195
-
publicushortRConPort=27015;
196
166
publicstringRConPassword=string.Empty;
197
-
publicstringRConCommands=string.Empty;
167
+
publicushortRConPort=27015;
168
+
169
+
publicboolRConUseSourceEngine=true;
170
+
publicstringServerArgs=string.Empty;
171
+
publicstringServerFile=string.Empty;
198
172
199
173
privateSMDefinitionSMDef;
200
174
175
+
publicstring[]SMDirectories=newstring[0];
176
+
177
+
publicboolStandard;
178
+
publicintVerboseLevel=1;
179
+
201
180
publicSMDefinitionGetSMDef()
202
181
{
203
-
if(SMDef==null)
204
-
{
205
-
LoadSMDef();
206
-
}
182
+
if(SMDef==null)LoadSMDef();
207
183
returnSMDef;
208
184
}
209
185
210
186
publicvoidInvalidateSMDef()
211
187
{
212
-
this.SMDef=null;
188
+
SMDef=null;
213
189
}
214
190
215
191
publicvoidLoadSMDef()
216
192
{
217
-
if(this.SMDef!=null)
218
-
{
219
-
return;
220
-
}
193
+
if(SMDef!=null)return;
221
194
try
222
195
{
223
-
SMDefinitiondef=newSMDefinition();
224
-
def.AppendFiles(SMDirectories);
225
-
SMDef=def;
196
+
vardef=newSMDefinition();
197
+
def.AppendFiles(SMDirectories);
198
+
SMDef=def;
226
199
}
227
200
catch(Exception)
228
201
{
229
-
this.SMDef=newSMDefinition();//this could be dangerous...
202
+
SMDef=newSMDefinition();//this could be dangerous...
<CheckBoxName="C_AutoCopy"HorizontalAlignment="Left"VerticalAlignment="Top"Margin="321,370,0,0"Content="Auto Copy after Compile"Checked="C_AutoCopy_Changed"Unchecked="C_AutoCopy_Changed" />
48
48
<CheckBoxName="C_DeleteAfterCopy"HorizontalAlignment="Left"VerticalAlignment="Top"Margin="321,399,0,0"Content="Delete old .smx after copy"Checked="C_DeleteAfterCopy_Changed"Unchecked="C_DeleteAfterCopy_Changed" />
49
+
<CheckBoxName="C_AutoUpload"HorizontalAlignment="Left"VerticalAlignment="Top"Margin="500,370,0,0"Content="Upload .smx after Compile"Checked="C_AutoUpload_Changed"Unchecked="C_AutoUpload_Changed" />
50
+
<CheckBoxName="C_AutoRCON"HorizontalAlignment="Left"VerticalAlignment="Top"Margin="500,399,0,0"Content="Send RCON Commands after Compile"Checked="C_AutoRCON_Changed"Unchecked="C_AutoRCON_Changed" />
0 commit comments