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

◆ SceneDuplicate()

void PluginConfigHandler::SceneDuplicate ( string scene_name)
inlineprotected

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

82 {
83 string file_path = GetPathScenes()+"\\"+scene_name+"."+PluginSceneManager.SCENE_SUFIX;
84 string file_path_new = file_path;
85
86 int i = 0;
87 while ( FileExist(file_path_new) )
88 {
89 file_path_new = GetPathScenes()+"\\"+scene_name+"_copy"+i.ToString()+"."+PluginSceneManager.SCENE_SUFIX;
90 i++;
91 }
92
93 PluginFileHandler.FileDuplicate(file_path, file_path_new);
94 }
string GetPathScenes()
Определения PluginConfigScene.c:46
proto bool FileExist(string name)
Check existence of file.

Перекрестные ссылки FileExist() и GetPathScenes().