diff --git a/EllipticCurveGF2m.hpp b/EllipticCurveGF2m.hpp index 7c00355..9542786 100644 --- a/EllipticCurveGF2m.hpp +++ b/EllipticCurveGF2m.hpp @@ -312,4 +312,3 @@ public: return Point(*this, pbX, cbX, pbY, cbY); } }; - diff --git a/WinRarConfig.hpp b/WinRarConfig.hpp index a71a835..93112b6 100644 --- a/WinRarConfig.hpp +++ b/WinRarConfig.hpp @@ -482,4 +482,4 @@ public: } } ); -}; \ No newline at end of file +}; diff --git a/WinRarKeygen.hpp b/WinRarKeygen.hpp index 924b47c..4500ea9 100644 --- a/WinRarKeygen.hpp +++ b/WinRarKeygen.hpp @@ -238,7 +238,7 @@ public: RegInfo.Checksum ); - // The length has been limited to 60 + // The length has been limited to 60 (issues #6) // This problem has been fixed, this prompt should no longer appear if (RegInfo.HexData.length() % 54 != 0) { throw std::runtime_error("InternalError: The length of register data is not correct."); diff --git a/_tmain.cpp b/_tmain.cpp index 626be7a..82b7eeb 100644 --- a/_tmain.cpp +++ b/_tmain.cpp @@ -9,14 +9,10 @@ void Help() { _putts(TEXT("Please use the following command:\n")); _putts(TEXT("Usage:")); - _putts(TEXT(" winrar-keygen.exe ")); + _putts(TEXT(" winrar-keygen.exe ")); _putts(TEXT("")); _putts(TEXT("Example:")); - _putts(TEXT(" winrar-keygen.exe \"Github\" \"Github.com\"\n")); - _putts(TEXT(" or:")); - _putts(TEXT(" winrar-keygen.exe \"Github\" \"Github.com\" > rarreg.key\n")); - _putts(TEXT(" or:")); - _putts(TEXT(" winrar-keygen.exe \"Github\" \"Github.com\" | Out-File -Encoding ASCII rarreg.key\n")); + _putts(TEXT(" winrar-keygen.exe \"Github\" \"Single PC usage license\"\n")); } void PrintRegisterInfo(const WinRarKeygen::RegisterInfo& Info) { @@ -73,4 +69,3 @@ int _tmain(int argc, PTSTR argv[]) { } return 0; } - diff --git a/resource.h b/resource.h index 41e4b5b..c43b955 100644 --- a/resource.h +++ b/resource.h @@ -2,13 +2,14 @@ // Microsoft Visual C++ 生成的包含文件。 // 供 winrar-keygen.rc 使用 // -#define IDI_ICON1 101 +#define IDB_PNG1 102 +#define IDI_ICON1 103 // Next default values for new objects // #ifdef APSTUDIO_INVOKED #ifndef APSTUDIO_READONLY_SYMBOLS -#define _APS_NEXT_RESOURCE_VALUE 102 +#define _APS_NEXT_RESOURCE_VALUE 105 #define _APS_NEXT_COMMAND_VALUE 40001 #define _APS_NEXT_CONTROL_VALUE 1001 #define _APS_NEXT_SYMED_VALUE 101 diff --git a/winrar-keygen.aps b/winrar-keygen.aps index 405c443..87108c9 100644 Binary files a/winrar-keygen.aps and b/winrar-keygen.aps differ diff --git a/winrar-keygen.rc b/winrar-keygen.rc index b513564..5c23172 100644 --- a/winrar-keygen.rc +++ b/winrar-keygen.rc @@ -45,24 +45,14 @@ END #endif // APSTUDIO_INVOKED -///////////////////////////////////////////////////////////////////////////// -// -// Icon -// - -// Icon with lowest ID value placed first to ensure application icon -// remains consistent on all systems. -IDI_ICON1 ICON "icon.ico" - - ///////////////////////////////////////////////////////////////////////////// // // Version // VS_VERSION_INFO VERSIONINFO - FILEVERSION 2,1,3,0 - PRODUCTVERSION 2,1,3,0 + FILEVERSION 3,0,0,0 + PRODUCTVERSION 3,0,0,0 FILEFLAGSMASK 0x3fL #ifdef _DEBUG FILEFLAGS 0x1L @@ -79,12 +69,12 @@ BEGIN BEGIN VALUE "CompanyName", "WinRAR Keygen" VALUE "FileDescription", "WinRAR Key Generation Tool" - VALUE "FileVersion", "2.1.3.0" + VALUE "FileVersion", "3.0.0.0" VALUE "InternalName", "winrar-keygen.exe" - VALUE "LegalCopyright", "Copyright (C) 2022 MIT License" + VALUE "LegalCopyright", "Copyright (C) 2024 MIT License" VALUE "OriginalFilename", "winrar-keygen.exe" VALUE "ProductName", "WinRAR Keygen" - VALUE "ProductVersion", "2.1.3.0" + VALUE "ProductVersion", "3.0.0.0" END END BLOCK "VarFileInfo" @@ -93,6 +83,24 @@ BEGIN END END + +///////////////////////////////////////////////////////////////////////////// +// +// PNG +// + +IDB_PNG1 PNG "D:\\Users\\haoning\\Documents\\GitHub\\@pudding0503\\winrar-keygen\\icon.png" + + +///////////////////////////////////////////////////////////////////////////// +// +// Icon +// + +// Icon with lowest ID value placed first to ensure application icon +// remains consistent on all systems. +IDI_ICON1 ICON "icon.ico" + #endif // 中文(简体,中国) resources ///////////////////////////////////////////////////////////////////////////// diff --git a/winrar-keygen.vcxproj b/winrar-keygen.vcxproj index 6866719..cb4ac3e 100644 --- a/winrar-keygen.vcxproj +++ b/winrar-keygen.vcxproj @@ -120,6 +120,7 @@ true stdcpp17 MultiThreadedDebug + /utf-8 %(AdditionalOptions) Console diff --git a/winrar-keygen.vcxproj.filters b/winrar-keygen.vcxproj.filters index 894aa19..b96c737 100644 --- a/winrar-keygen.vcxproj.filters +++ b/winrar-keygen.vcxproj.filters @@ -64,4 +64,4 @@ - \ No newline at end of file +