Skip to content

Commit

Permalink
Merge pull request #13 from SCKorea/feature-pyropreview
Browse files Browse the repository at this point in the history
BUGFIX: Fix not recognized the patch if LIVE folder is not existed
  • Loading branch information
marona42 authored Dec 20, 2024
2 parents 5b2488a + 9f67f1a commit eedcf5b
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
4 changes: 2 additions & 2 deletions SCTools/SCTool_Redesigned/App.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ private static AppSettings GetAppSettings()

if (executableDir == null || LocalappDir == null)
{
throw new NullReferenceException("Dirctory path is empty");
throw new NullReferenceException("Directory path is empty");
}

//_appSettings = JsonHelper.ReadFile<AppSettings>(Path.Combine(executableDir, AppSettingsFileName)) ?? new AppSettings();
Expand All @@ -88,7 +88,7 @@ public static bool SaveAppSettings(AppSettings settings)

if (executableDir == null || LocalappDir == null)
{
throw new NullReferenceException("Dirctory path is empty");
throw new NullReferenceException("Directory path is empty");
}

if (Directory.Exists(LocalappDir))
Expand Down
2 changes: 1 addition & 1 deletion SCTools/SCTool_Redesigned/Pages/selectDir.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ private string getDir()
string infofile = App.LocalappDir + "build.info";
if (!File.Exists(infofile))
{
App.Logger.Warn("StarCitizeen build info File does not exist. Maybe not installed?");
App.Logger.Warn("StarCitizen build info File does not exist. Maybe not installed?");
throw new FileNotFoundException("build.info");
}
string[] _buildinfo = File.ReadAllLines(infofile);
Expand Down
4 changes: 2 additions & 2 deletions SCTools/SCTool_Redesigned/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,5 @@
// 모든 값을 지정하거나 아래와 같이 '*'를 사용하여 빌드 번호 및 수정 번호를
// 기본값으로 할 수 있습니다.
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.3.4.4")]
[assembly: AssemblyFileVersion("1.3.4.4")]
[assembly: AssemblyVersion("1.3.4.5")]
[assembly: AssemblyFileVersion("1.3.4.5")]
6 changes: 4 additions & 2 deletions SCTools/SCTool_Redesigned/Windows/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,8 @@ private void SetInstallbtnLabel()
++isNewVersion;
}

var gameFolder = Path.Combine(App.Settings.GameFolder, mode.ToString());
//var gameFolder = Path.Combine(App.Settings.GameFolder, mode.ToString());
var gameFolder = Path.Combine(App.Settings.GameFolder, "4.0_PREVIEW");
var localizationFile = Path.Combine(gameFolder, "data", "Localization", App.Settings.GetOfficialLanauages()[App.Settings.GameLanguage], "global.ini");
var userConfigPath = Path.Combine(gameFolder, "user.cfg");

Expand Down Expand Up @@ -636,7 +637,8 @@ private bool IsLocalizationInstalled()
{
var patch = data.Installations.FirstOrDefault();

var gameFolder = Path.Combine(App.Settings.GameFolder, mode.ToString());
//var gameFolder = Path.Combine(App.Settings.GameFolder, mode.ToString());
var gameFolder = Path.Combine(App.Settings.GameFolder, "4.0_PREVIEW");
var localizationFile = Path.Combine(gameFolder, "data", "Localization", App.Settings.GetOfficialLanauages()[App.Settings.GameLanguage], "global.ini");
var userConfigPath = Path.Combine(gameFolder, "user.cfg");

Expand Down

0 comments on commit eedcf5b

Please sign in to comment.