🌏 Multi-encoding Support

This commit is contained in:
bitcookies 2024-05-16 15:58:08 +08:00
parent e298552328
commit b998ea3d5a
9 changed files with 32 additions and 28 deletions

View file

@ -312,4 +312,3 @@ public:
return Point(*this, pbX, cbX, pbY, cbY);
}
};

View file

@ -482,4 +482,4 @@ public:
}
}
);
};
};

View file

@ -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.");

View file

@ -9,14 +9,10 @@
void Help() {
_putts(TEXT("Please use the following command:\n"));
_putts(TEXT("Usage:"));
_putts(TEXT(" winrar-keygen.exe <Your Name> <Your License>"));
_putts(TEXT(" winrar-keygen.exe <Username> <License Name>"));
_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<WinRarConfig>::RegisterInfo& Info) {
@ -73,4 +69,3 @@ int _tmain(int argc, PTSTR argv[]) {
}
return 0;
}

View file

@ -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

Binary file not shown.

View file

@ -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
/////////////////////////////////////////////////////////////////////////////

View file

@ -120,6 +120,7 @@
<ConformanceMode>true</ConformanceMode>
<LanguageStandard>stdcpp17</LanguageStandard>
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
<AdditionalOptions>/utf-8 %(AdditionalOptions)</AdditionalOptions>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>

View file

@ -64,4 +64,4 @@
<ItemGroup>
<None Include="LICENSE" />
</ItemGroup>
</Project>
</Project>