diff --git a/StarCitizen Helper/Controls/WL_Modification.vb b/StarCitizen Helper/Controls/WL_Modification.vb index 4475573..d0ff275 100644 --- a/StarCitizen Helper/Controls/WL_Modification.vb +++ b/StarCitizen Helper/Controls/WL_Modification.vb @@ -224,10 +224,12 @@ Public Class WL_Modification RaiseEvent _Event_GameExeFile_Update_Before(Value) If _VARS.ConfigFileIsOK = False Then Exit Property If Len(Value) < _VARS.FileNameMinLen + _VARS.FilePathMinLen Then GoTo Finalize + If LCase(Strings.Right(Value, Len(Property_GameExeFileName))) <> LCase(Property_GameExeFileName) Then _LOG._sAdd("MODIFICATION", _LANG._Get("Modification_MSG_IncorrectGameExePath", Property_GameExeFileName), Value, 1) : GoTo Finalize + If _FSO._FileExits(Value) = False Then GoTo Finalize + _JSETTINGS._SetValue("configuration.main", "exe_path", Value, True) If _JSETTINGS._GetValue("configuration.main.exe_path", Nothing) Is Nothing Then GoTo Finalize - If _FSO._FileExits(Value) = False Then GoTo Finalize Me.sGameExeFilePath = Value Me.sGameExeFileName = CType(_FSO._GetFileInfo(Me.sGameExeFilePath).ValueObject, FileInfo).Name Me.sGameExeFolderPath = CType(_FSO._GetFileInfo(Me.sGameExeFilePath).ValueObject, FileInfo).Directory.FullName diff --git a/StarCitizen Helper/Resources/default_chinese.txt b/StarCitizen Helper/Resources/default_chinese.txt index 9da1b05..72ad7e2 100644 --- a/StarCitizen Helper/Resources/default_chinese.txt +++ b/StarCitizen Helper/Resources/default_chinese.txt @@ -272,6 +272,7 @@ Modification_OpenFileDialog_GameFile = 游戏启动文件 Modification_MSG_CoreNotFound = {0}核心未发现, 请检查窗口下方使用提示 Modification_MSG_VersionUnspecified = 未知版本 Modification_ListName_LocalizationType = 本地化变更 +Modification_MSG_IncorrectGameExePath = Wrong path to game file: {0} #SysLanguage Pack_MSG_CreateLangFolder = 已为软件本地化包创建文件夹:\n\t{0} diff --git a/StarCitizen Helper/Resources/default_english.txt b/StarCitizen Helper/Resources/default_english.txt index 63debe6..bd0b1bc 100644 --- a/StarCitizen Helper/Resources/default_english.txt +++ b/StarCitizen Helper/Resources/default_english.txt @@ -272,6 +272,7 @@ Modification_OpenFileDialog_GameFile = Game exec file Modification_MSG_CoreNotFound = {0} not found, check instruction at the bottom of the window Modification_MSG_VersionUnspecified = unknown version Modification_ListName_LocalizationType = Localization variations +Modification_MSG_IncorrectGameExePath = Wrong path to game file: {0} #SysLanguage Pack_MSG_CreateLangFolder = Created folder for application language packs:\n\t{0} diff --git a/StarCitizen Helper/Resources/default_korean.txt b/StarCitizen Helper/Resources/default_korean.txt index 89f588b..427f35f 100644 --- a/StarCitizen Helper/Resources/default_korean.txt +++ b/StarCitizen Helper/Resources/default_korean.txt @@ -272,6 +272,7 @@ Modification_OpenFileDialog_GameFile = 게임 실행파일 Modification_MSG_CoreNotFound = {0} 을/를 찾을 수 없습니다. 창 하단의 지침을 확인하십시오. Modification_MSG_VersionUnspecified = 알 수 없는 버전 Modification_ListName_LocalizationType = Localization variations +Modification_MSG_IncorrectGameExePath = Wrong path to game file: {0} #SysLanguage Pack_MSG_CreateLangFolder = 애플리케이션 언어팩을 위한 폴더 생성됨:\n\t{0} diff --git a/StarCitizen Helper/Resources/default_russian.txt b/StarCitizen Helper/Resources/default_russian.txt index 1232337..78fb07a 100644 --- a/StarCitizen Helper/Resources/default_russian.txt +++ b/StarCitizen Helper/Resources/default_russian.txt @@ -272,6 +272,7 @@ Modification_OpenFileDialog_GameFile = Modification_MSG_CoreNotFound = {0}, Modification_MSG_VersionUnspecified = Modification_ListName_LocalizationType = +Modification_MSG_IncorrectGameExePath = : {0} #SysLanguage Pack_MSG_CreateLangFolder = :\n\t{0}