Read and write CD key in lowercase

This commit is contained in:
kk1201 authored and Tim Angus committed 2026-07-19 17:21:30 +01:00
1 parent 67e4fa9785
commit 588393618d
1 file changed
+4
+4
View File
@@ -2485,6 +2485,8 @@ void Com_ReadCDKey( const char *filename ) {
FS_Read( buffer, 16, f );
FS_FCloseFile( f );
Q_strlwr(buffer);
if (CL_CDKeyValidate(buffer, NULL)) {
Q_strncpyz( cl_cdkey, buffer, 17 );
} else {
@@ -2555,6 +2557,8 @@ static void Com_WriteCDKey( const char *filename, const char *ikey ) {
goto out;
}
Q_strlwr(key);
FS_Write( key, 16, f );
FS_Printf( f, "\n// generated by " PRODUCT_NAME ", do not modify\r\n" );