Skip to content

Commit

Permalink
Fix #249
Browse files Browse the repository at this point in the history
  • Loading branch information
katahiromz committed Jul 21, 2024
1 parent 6703da9 commit b695730
Show file tree
Hide file tree
Showing 13 changed files with 354 additions and 0 deletions.
1 change: 1 addition & 0 deletions HISTORY-ID.txt
Original file line number Diff line number Diff line change
Expand Up @@ -314,3 +314,4 @@
- Auto filling resource name from filename.
- Added resource language setting.
- Fixed freeze on Enter key.
- Supported x64.
1 change: 1 addition & 0 deletions HISTORY-ITA.txt
Original file line number Diff line number Diff line change
Expand Up @@ -314,3 +314,4 @@
- Auto filling resource name from filename.
- Added resource language setting.
- Fixed freeze on Enter key.
- Supported x64.
1 change: 1 addition & 0 deletions HISTORY-JPN.txt
Original file line number Diff line number Diff line change
Expand Up @@ -658,3 +658,4 @@
- ファイル名からリソース名を埋める。
- リソース言語設定を追加。
- Enter キーを押したときのフリーズを修正。
- x64 のサポート。
1 change: 1 addition & 0 deletions HISTORY-KOR.txt
Original file line number Diff line number Diff line change
Expand Up @@ -315,3 +315,4 @@
- Auto filling resource name from filename.
- Added resource language setting.
- Fixed freeze on Enter key.
- Supported x64.
1 change: 1 addition & 0 deletions HISTORY-PTB.txt
Original file line number Diff line number Diff line change
Expand Up @@ -314,3 +314,4 @@
- Auto filling resource name from filename.
- Added resource language setting.
- Fixed freeze on Enter key.
- Supported x64.
1 change: 1 addition & 0 deletions HISTORY.txt
Original file line number Diff line number Diff line change
Expand Up @@ -314,3 +314,4 @@
- Auto filling resource name from filename.
- Added resource language setting.
- Fixed freeze on Enter key.
- Supported x64.
328 changes: 328 additions & 0 deletions installer64.iss

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ target_link_libraries(RisohEditor
libega gdi32 comctl32 msimg32 winmm gdiplus vfw32 wininet
oledlg msimg32 advapi32 shlwapi version urlmon)
target_compile_definitions(RisohEditor PRIVATE -DUNICODE -D_UNICODE)
if(CMAKE_SIZEOF_VOID_P EQUAL 8)
set_target_properties(RisohEditor PROPERTIES OUTPUT_NAME "RisohEditor64")
endif()

# RisohEditorPortable.exe
add_executable(RisohEditorPortable WIN32
Expand All @@ -35,6 +38,9 @@ target_link_libraries(RisohEditorPortable
libega gdi32 comctl32 msimg32 winmm gdiplus vfw32 wininet
oledlg msimg32 advapi32 shlwapi version urlmon)
target_compile_definitions(RisohEditorPortable PRIVATE -DPORTABLE -DUNICODE -D_UNICODE)
if(CMAKE_SIZEOF_VOID_P EQUAL 8)
set_target_properties(RisohEditorPortable PROPERTIES OUTPUT_NAME "RisohEditorPortable64")
endif()

option(ATL_SUPPORT "Add ATL support" OFF)

Expand Down
8 changes: 8 additions & 0 deletions src/RisohEditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9729,14 +9729,22 @@ BOOL MMainWnd::DoSaveExeAs(LPCWSTR pszExeFile, BOOL bCompression)
// if src and dest are non-executable, then dump tiny exe or dll to dest
if (IsDotExe(dest))
{
#ifdef _WIN64
if (DumpTinyExeOrDll(m_hInst, dest, IDR_TINYEXE64))
#else
if (DumpTinyExeOrDll(m_hInst, dest, IDR_TINYEXE))
#endif
{
return DoSaveInner(dest, bCompression);
}
}
else
{
#ifdef _WIN64
if (DumpTinyExeOrDll(m_hInst, dest, IDR_TINYDLL64))
#else
if (DumpTinyExeOrDll(m_hInst, dest, IDR_TINYDLL))
#endif
{
return DoSaveInner(dest, bCompression);
}
Expand Down
4 changes: 4 additions & 0 deletions src/RisohEditor_res.rc
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,10 @@ IDR_TINYEXE RCDATA "res/RCData_106.bin"

IDR_TINYDLL RCDATA "res/RCData_107.bin"

IDR_TINYEXE64 RCDATA "res/RCData_108.bin"

IDR_TINYDLL64 RCDATA "res/RCData_109.bin"

//////////////////////////////////////////////////////////////////////////////
// RT_GROUP_CURSOR

Expand Down
Binary file added src/res/RCData_108.bin
Binary file not shown.
Binary file added src/res/RCData_109.bin
Binary file not shown.
2 changes: 2 additions & 0 deletions src/resource.h
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@
#define IDR_UNKNOWNRESID 105
#define IDR_TINYEXE 106
#define IDR_TINYDLL 107
#define IDR_TINYEXE64 108
#define IDR_TINYDLL64 109

#define IDS_APPNAME 101
#define IDS_TITLEWITHFILE 102
Expand Down

0 comments on commit b695730

Please sign in to comment.