5 if (filepath.
Length() < 2)
return;
9 if (filepath[1] !=
":")
13 filepath = cwd +
"/" + filepath;
16 int index = filepath.
IndexOf(
"/");
17 int last_index = index;
25 if (last_index == -1)
return;
28 string bat = filepath.
Substring(last_index + 1, filepath.
Length() - last_index - 1);
49 [
Attribute(
"day_z_data_missions/killDayZ.bat",
"fileeditbox",
"Path to missions dir",
"")]
52 [
Attribute(
"day_z_data_missions/_default_single/default_SampleMap3_Empty.bat",
"fileeditbox",
"Path to missions dir",
"")]
65 [
Attribute(
"day_z_data_missions/_default_single/default_SampleMap3_Empty.bat",
"fileeditbox",
"Path to missions dir",
"")]
77 [
Attribute(
"day_z_data_missions/killDayZ.bat",
"fileeditbox",
"Path to missions dir",
"")]
static proto native int RunCmd(string command, bool wait=false)
static proto void GetCwd(out string currentDir)
static proto int ScriptDialog(string caption, string text, Class data)
proto native int Length()
Returns length of string.
proto int Replace(string sample, string replace)
Replace all occurrances of 'sample' in 'str' by 'replace'.
proto string Substring(int start, int len)
Substring of 'str' from 'start' position 'len' number of characters.
proto native int IndexOfFrom(int start, string sample)
Finds 'sample' in 'str' from 'start' position. Returns -1 when not found.
proto native int IndexOf(string sample)
Finds 'sample' in 'str'. Returns -1 when not found.