• Welcome to Valhalla Legends Archive.
 

read starcraft cdkey?

Started by aton, December 09, 2008, 01:09 PM

Previous topic - Next topic

aton

hi!

does anyone know in what file/registry key the cdkey is saved and how to read it?

brew

hi aton!
the cdkey isn't stored in the registry, but instead in an encrypted file in stardat.mpq.
<3 Zorm
Quote[01:08:05 AM] <@Zorm> haha, me get pussy? don't kid yourself quik
Scio te esse, sed quid sumne? :P

Barabajagal

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.

brew

Do I hear an echo, or is that me? =/
<3 Zorm
Quote[01:08:05 AM] <@Zorm> haha, me get pussy? don't kid yourself quik
Scio te esse, sed quid sumne? :P

aton

couldnt i use a starcraft function? starcraft needs to read the cdkey before loggin into bnet, right?

brew

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.
<3 Zorm
Quote[01:08:05 AM] <@Zorm> haha, me get pussy? don't kid yourself quik
Scio te esse, sed quid sumne? :P