hi!
does anyone know in what file/registry key the cdkey is saved and how to read it?
hi aton!
the cdkey isn't stored in the registry, but instead in an encrypted file in stardat.mpq.
The CDKey is encrypted into various files in the Font folder of StarDat.mpq. I haven't bothered to find out much more than that.
Do I hear an echo, or is that me? =/
couldnt i use a starcraft function? starcraft needs to read the cdkey before loggin into bnet, right?
On initalization of the SNP, the cdkey is read then decrypted, and passed to the battle.snp startup function in a struct as the first parameter. If you want to retrieve the CDKey, this is pretty straightfoward. Writing the cdkey however.. not so much.