Skip to content

Commit

Permalink
Fixing enabling "Edit mode" not working.
Browse files Browse the repository at this point in the history
  • Loading branch information
jovibor committed May 22, 2023
1 parent c6fc206 commit d34bec5
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 4 deletions.
1 change: 1 addition & 0 deletions Pepper/CPepperDoc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ BOOL CPepperDoc::OnOpenDocument(LPCTSTR lpszPathName)
}
}

libPE.CloseFile();
m_stFileLoader.LoadFile(lpszPathName, this);
UpdateAllViews(nullptr);

Expand Down
2 changes: 2 additions & 0 deletions Pepper/Pepper.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@
<ClCompile Include="dep\HexCtrl\HexCtrl\src\Dialogs\CHexDlgEncoding.cpp" />
<ClCompile Include="dep\HexCtrl\HexCtrl\src\Dialogs\CHexDlgFillData.cpp" />
<ClCompile Include="dep\HexCtrl\HexCtrl\src\Dialogs\CHexDlgGoTo.cpp" />
<ClCompile Include="dep\HexCtrl\HexCtrl\src\Dialogs\CHexDlgModify.cpp" />
<ClCompile Include="dep\HexCtrl\HexCtrl\src\Dialogs\CHexDlgOpers.cpp" />
<ClCompile Include="dep\HexCtrl\HexCtrl\src\Dialogs\CHexDlgSearch.cpp" />
<ClCompile Include="dep\HexCtrl\HexCtrl\src\Dialogs\CHexDlgTemplMgr.cpp" />
Expand Down Expand Up @@ -213,6 +214,7 @@
<ClInclude Include="dep\HexCtrl\HexCtrl\src\Dialogs\CHexDlgEncoding.h" />
<ClInclude Include="dep\HexCtrl\HexCtrl\src\Dialogs\CHexDlgFillData.h" />
<ClInclude Include="dep\HexCtrl\HexCtrl\src\Dialogs\CHexDlgGoTo.h" />
<ClInclude Include="dep\HexCtrl\HexCtrl\src\Dialogs\CHexDlgModify.h" />
<ClInclude Include="dep\HexCtrl\HexCtrl\src\Dialogs\CHexDlgOpers.h" />
<ClInclude Include="dep\HexCtrl\HexCtrl\src\Dialogs\CHexDlgSearch.h" />
<ClInclude Include="dep\HexCtrl\HexCtrl\src\Dialogs\CHexDlgTemplMgr.h" />
Expand Down
6 changes: 6 additions & 0 deletions Pepper/Pepper.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,9 @@
<ClCompile Include="Utility.ixx">
<Filter>Header Files</Filter>
</ClCompile>
<ClCompile Include="dep\HexCtrl\HexCtrl\src\Dialogs\CHexDlgModify.cpp">
<Filter>HexCtrl</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<ClInclude Include="res\resource.h">
Expand Down Expand Up @@ -180,6 +183,9 @@
<ClInclude Include="dep\HexCtrl\HexCtrl\HexCtrl.h">
<Filter>HexCtrl</Filter>
</ClInclude>
<ClInclude Include="dep\HexCtrl\HexCtrl\src\Dialogs\CHexDlgModify.h">
<Filter>HexCtrl</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="res\Pepper.rc">
Expand Down
6 changes: 3 additions & 3 deletions Pepper/Utility.ixx
Original file line number Diff line number Diff line change
Expand Up @@ -577,10 +577,10 @@ export namespace Util
{ 18, { sizeof(DWORD), 68, L"ManagedNativeHeader.Size" } }
};

//All HexCtrl dialogs' IDs for hiding/showing in Views, when tab is disactivated/activated.
//All HexCtrl dialogs' IDs for hiding/showing in Views, when tab is deactivated/activated.
inline const std::vector<HEXCTRL::EHexWnd> g_vecHexDlgs {
HEXCTRL::EHexWnd::DLG_BKMMANAGER, HEXCTRL::EHexWnd::DLG_DATAINTERP, HEXCTRL::EHexWnd::DLG_FILLDATA,
HEXCTRL::EHexWnd::DLG_OPERS, HEXCTRL::EHexWnd::DLG_SEARCH, HEXCTRL::EHexWnd::DLG_ENCODING,
HEXCTRL::EHexWnd::DLG_BKMMANAGER, HEXCTRL::EHexWnd::DLG_DATAINTERP, HEXCTRL::EHexWnd::DLG_MODIFY,
HEXCTRL::EHexWnd::DLG_SEARCH, HEXCTRL::EHexWnd::DLG_ENCODING,
HEXCTRL::EHexWnd::DLG_GOTO, HEXCTRL::EHexWnd::DLG_TEMPLMGR };


Expand Down

0 comments on commit d34bec5

Please sign in to comment.