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

◆ SetMissionPath()

void CGame::SetMissionPath ( string path)
inlineprivate

Called from C++.

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

1173 {
1175
1176 int pos_end = 0;
1177 int pos_cur = 0;
1178
1179 while (pos_cur != -1)
1180 {
1181 pos_end = pos_cur;
1182 pos_cur = path.IndexOfFrom(pos_cur + 1 , "\\");
1183 }
1184
1185 m_MissionFolderPath = path.Substring(0, pos_end);
1186 }
string path
Определения OptionSelectorMultistate.c:142
string m_MissionPath
Определения DayZGame.c:929
string m_MissionFolderPath
Определения DayZGame.c:930
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.