Skip to content
This repository was archived by the owner on Apr 10, 2022. It is now read-only.

Commit b1f3883

Browse files
committed
Fixed bug for v1.2.7
1 parent 6c1c2d2 commit b1f3883

3 files changed

Lines changed: 15 additions & 13 deletions

File tree

sFall Configuration/MainForm.vb

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -652,15 +652,17 @@ Public Class MainForm
652652
End Sub
653653

654654
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
655-
On Error GoTo CUSTEXE
655+
On Error GoTo FO2EXE
656656
Check_Exe()
657657
Save_ini()
658-
Process.Start("fallout2.exe")
658+
Process.Start(GetIni_Param("sFallConfigatorGameExe"))
659659
GoTo EXITAPP
660-
CUSTEXE:
660+
FO2EXE:
661661
On Error GoTo -1
662662
On Error GoTo SELEXE
663-
Process.Start(GetIni_Param("sFallConfigatorGameExe"))
663+
Check_CRC("fallout2.exe")
664+
Save_ini()
665+
Process.Start("fallout2.exe")
664666
GoTo EXITAPP
665667
SELEXE:
666668
OpenFileDialog1.Filter = "Exe files|*.exe"
@@ -669,7 +671,7 @@ SELEXE:
669671
SetGameExe_Ini(OpenFileDialog1.SafeFileName)
670672
Check_Exe()
671673
Save_ini()
672-
Process.Start(GetIni_Param("sFallConfigatorGameExe")) 'GoTo CUSTEXE
674+
Process.Start(GetIni_Param("sFallConfigatorGameExe")) 'GoTo FO2EXE
673675
EXITAPP:
674676
Application.Exit()
675677
End Sub

sFall Configuration/Module.vb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,9 @@
108108

109109
Friend Sub Check_Exe()
110110
Dim game_exe As String = vbNullString
111-
If Not (IO.File.Exists(Main_Path & "\fallout2.exe")) Then game_exe = GetIni_Param("sFallConfigatorGameExe")
111+
game_exe = GetIni_Param("sFallConfigatorGameExe")
112112
If game_exe = vbNullString Then game_exe = "fallout2.exe"
113-
Check_CRC(game_exe)
113+
If IO.File.Exists(Main_Path & "\" & game_exe) Then Check_CRC(game_exe)
114114
End Sub
115115

116116
Friend Sub Check_CRC(ByVal game_exe As String)
@@ -126,7 +126,7 @@
126126
Next
127127
If Not (equal) Then
128128
If MainForm.TextBox1.Text.Length > 0 Then
129-
MainForm.TextBox1.Text = "0x" & crc(n) & ", " & MainForm.TextBox1.Text 'заносим в тексбох
129+
MainForm.TextBox1.Text &= ", " & "0x" & crc(n) '& ", " & MainForm.TextBox1.Text 'заносим в тексбох
130130
Else
131131
MainForm.TextBox1.Text = "0x" & crc(n)
132132
End If
@@ -138,8 +138,8 @@
138138

139139
Friend Function Get_CRC(ByVal path As String) As String
140140
Dim Bytes() As Byte = IO.File.ReadAllBytes(path)
141-
Dim LineCrc As String = Hex(CalcCRC(Bytes, &H1EDC6F41)).ToUpper
142-
LineCrc &= "|" & Hex(CalcCRC(Bytes, &HEDB88320UI)).ToUpper
141+
Dim LineCrc As String = Hex(CalcCRC(Bytes, &HEDB88320UI)).ToUpper
142+
LineCrc &= "|" & Hex(CalcCRC(Bytes, &H1EDC6F41)).ToUpper
143143
Return LineCrc
144144
End Function
145145

sFall Configuration/My Project/AssemblyInfo.vb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Imports System.Runtime.InteropServices
1212
<Assembly: AssemblyDescription("")>
1313
<Assembly: AssemblyCompany("Venik's")>
1414
<Assembly: AssemblyProduct("sFall Tools")>
15-
<Assembly: AssemblyCopyright("Copyright © Fakels 2015 - 2016")>
15+
<Assembly: AssemblyCopyright("Copyright © Fakels 2015 - 2017")>
1616
<Assembly: AssemblyTrademark("")>
1717

1818
<Assembly: ComVisible(False)>
@@ -31,5 +31,5 @@ Imports System.Runtime.InteropServices
3131
' используя "*", как показано ниже:
3232
' <Assembly: AssemblyVersion("1.0.*")>
3333

34-
<Assembly: AssemblyVersion("1.2.6.0")>
35-
<Assembly: AssemblyFileVersion("1.2.6.0")>
34+
<Assembly: AssemblyVersion("1.2.7.0")>
35+
<Assembly: AssemblyFileVersion("1.2.7.0")>

0 commit comments

Comments
 (0)