Dayz 1.25
Dayz Code Explorer by KGB
Загрузка...
Поиск...
Не найдено
Класс DayZTool
+ Граф наследования:DayZTool:

Закрытые члены

void RunDayZBat (string filepath, bool wait=false)
 
override void Configure ()
 
void DialogOk ()
 

Подробное описание

Методы

◆ Configure()

override void Configure ( )
inlineprivate
36 {
37 Workbench.ScriptDialog("Mission directory","", this);
38 }
Definition workbenchApi.c:7
static proto int ScriptDialog(string caption, string text, Class data)

Перекрестные ссылки Workbench::ScriptDialog().

◆ DialogOk()

void DialogOk ( )
inlineprivate
42 {
43 }

◆ RunDayZBat()

void RunDayZBat ( string filepath,
bool wait = false )
inlineprivate
4 {
5 if (filepath.Length() < 2) return;
6
7 filepath.Replace("\\", "/");
8
9 if (filepath[1] != ":")
10 {
11 string cwd;
13 filepath = cwd + "/" + filepath;
14 }
15
16 int index = filepath.IndexOf("/");
17 int last_index = index;
18
19 while(index != -1)
20 {
22 index = filepath.IndexOfFrom(last_index + 1, "/");
23 }
24
25 if (last_index == -1) return;
26
27 string path = filepath.Substring(0, last_index);
28 string bat = filepath.Substring(last_index + 1, filepath.Length() - last_index - 1);
29 /*Print(filepath);
30 Print(path);
31 Print(bat);*/
32 Workbench.RunCmd("cmd /c \"cd " + path + " & call " + bat + "\"", wait);
33 }
string path
Definition OptionSelectorMultistate.c:135
Definition EntityAI.c:95
static proto void GetCwd(out string currentDir)
static proto native int RunCmd(string command, bool wait=false)

Перекрестные ссылки Workbench::GetCwd(), path и Workbench::RunCmd().


Объявления и описания членов класса находятся в файле: