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

◆ GetSceneList()

TStringArray PluginConfigHandler::GetSceneList ( )
inlineprotected

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

100 {
101 if ( !FileExist( GetPathScenes() ) )
102 {
104 }
105
106 string file_name;
107 int file_attr;
108 int flags;
109 TStringArray list = new TStringArray;
110
111 string path_find_pattern = GetPathScenes()+"/*."+PluginSceneManager.SCENE_SUFIX; //*/
112 FindFileHandle file_handler = FindFile(path_find_pattern, file_name, file_attr, flags);
113
114 bool found = true;
115 while ( found )
116 {
117 int pos = file_name.IndexOf(".");
118
119 if ( pos > -1 )
120 {
121 list.Insert( file_name.Substring(0, pos) );
122 }
123
124 found = FindNextFile(file_handler, file_name, file_attr);
125 }
126
127 return list;
128 }
string GetPathScenes()
Определения PluginConfigScene.c:46
array< string > TStringArray
Определения EnScript.c:685
proto native bool MakeDirectory(string name)
Makes a directory.
enum FindFileFlags FindFile(string pattern, out string fileName, out FileAttr fileAttributes, FindFileFlags flags)
proto bool FindNextFile(FindFileHandle handle, out string fileName, out FileAttr fileAttributes)
int[] FindFileHandle
Определения EnSystem.c:503
proto bool FileExist(string name)
Check existence of file.
proto string Substring(int start, int len)
Substring of 'str' from 'start' position 'len' number of characters.
proto native int IndexOf(string sample)
Finds 'sample' in 'str'. Returns -1 when not found.

Перекрестные ссылки FileExist(), FindFile(), FindNextFile(), GetPathScenes(), string::IndexOf(), MakeDirectory() и string::Substring().