DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ SetMissionPath()

void CGame::SetMissionPath ( string path)
inlineprivate

Called from C++.

См. определение в файле DayZGame.c строка 1161

1162 {
1164
1165 int pos_end = 0;
1166 int pos_cur = 0;
1167
1168 while (pos_cur != -1)
1169 {
1170 pos_end = pos_cur;
1171 pos_cur = path.IndexOfFrom(pos_cur + 1 , "\\");
1172 }
1173
1174 m_MissionFolderPath = path.Substring(0, pos_end);
1175 }
string path
Определения OptionSelectorMultistate.c:142
string m_MissionPath
Определения DayZGame.c:927
string m_MissionFolderPath
Определения DayZGame.c:928
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.

Перекрестные ссылки m_MissionFolderPath, m_MissionPath и path.