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

◆ SetMissionPath()

void CGame::SetMissionPath ( string path)
inlineprivate

Called from C++.

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

1208 {
1210
1211 int pos_end = 0;
1212 int pos_cur = 0;
1213
1214 while (pos_cur != -1)
1215 {
1216 pos_end = pos_cur;
1217 pos_cur = path.IndexOfFrom(pos_cur + 1 , "\\");
1218 }
1219
1220 m_MissionFolderPath = path.Substring(0, pos_end);
1221 }
string path
Определения OptionSelectorMultistate.c:142
string m_MissionPath
Определения DayZGame.c:946
string m_MissionFolderPath
Определения DayZGame.c:947
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.