private static void Init() { ImportWorldWindow window = GetWindow <ImportWorldWindow>(); if (string.IsNullOrEmpty(window.altMshDirs[0])) { window.altMshDirs[0] = @"D:\BF2_ModTools\data\Common\mshs"; } if (string.IsNullOrEmpty(window.altMshDirs[1])) { window.altMshDirs[1] = @"D:\BF2_ModTools\data\Common\mshs\PC"; } window.Show(); MshImportOptionsWindow.Init(); }
private static void Init() { ImportWorldWindow window = GetWindow <ImportWorldWindow>(); for (int i = 0; i < window.altMshDirs.Length; i++) { window.altMshDirs[i] = PlayerPrefs.GetString("SWBF2Import_AltDirs_" + i); } if (string.IsNullOrEmpty(window.altMshDirs[0])) { window.altMshDirs[0] = @"C:\BF2_ModTools\data\Common\mshs"; } if (string.IsNullOrEmpty(window.altMshDirs[1])) { window.altMshDirs[1] = @"C:\BF2_ModTools\data\Common\mshs\PC"; } window.Show(); MshImportOptionsWindow.Init(); }