This repository was archived by the owner on Apr 10, 2022. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
665667SELEXE:
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
673675EXITAPP:
674676 Application.Exit()
675677 End Sub
Original file line number Diff line number Diff line change 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 )
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
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
Original file line number Diff line number Diff 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" )>
You can’t perform that action at this time.
0 commit comments