Skip to content

Commit

Permalink
Fixed: Opening Resourc file on Designer
Browse files Browse the repository at this point in the history
  • Loading branch information
XusinboyBekchanov committed Aug 28, 2022
1 parent 9712731 commit efc55e6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
6 changes: 5 additions & 1 deletion src/TabWindow.bas
Original file line number Diff line number Diff line change
Expand Up @@ -4594,7 +4594,11 @@ Function GetResNamePath(ByRef ResName As WString, ByRef ResourceFile As WString)
Return FilePath
Else
Var Fn = FreeFile_
If Open(ResourceFile For Input Encoding "utf-8" As #Fn) = 0 Then
Var Result = Open(ResourceFile For Input Encoding "utf-8" As #Fn)
If Result <> 0 Then Result = Open(ResourceFile For Input Encoding "utf-32" As #Fn)
If Result <> 0 Then Result = Open(ResourceFile For Input Encoding "utf-16" As #Fn)
If Result <> 0 Then Result = Open(ResourceFile For Input As #Fn)
If Result = 0 Then
Dim As WString * 1024 sLine
Dim As Integer Pos1
Dim As String Image
Expand Down
8 changes: 6 additions & 2 deletions src/frmImageManager.frm
Original file line number Diff line number Diff line change
Expand Up @@ -290,8 +290,12 @@ Private Sub frmImageManager.Form_Show(ByRef Sender As Form)
If FolderName = "" Then ExeFileName = IIf(FolderName = "", ExePath & Slash & "Projects" & Slash, FolderName) & ExeFileName
Dim As Dictionary ResNamePaths
If CurrentImageList = 0 Then
Var Fn = FreeFile_, Pos1 = 0
If Open(ResourceFile For Input Encoding "utf-8" As #Fn) = 0 Then
Var Fn = FreeFile_, Pos1 = 0, Result = 0
Result = Open(ResourceFile For Input Encoding "utf-8" As #Fn)
If Result <> 0 Then Result = Open(ResourceFile For Input Encoding "utf-32" As #Fn)
If Result <> 0 Then Result = Open(ResourceFile For Input Encoding "utf-16" As #Fn)
If Result <> 0 Then Result = Open(ResourceFile For Input As #Fn)
If Result = 0 Then
Dim As WString * 1024 FilePath
Dim As WString * 1024 sLine
Dim As String Image
Expand Down

0 comments on commit efc55e6

Please sign in to comment.