#include "stdafx.h" #include "SMPackageUtil.h" #include "Registry.h" void WriteStepManiaInstallDirs( const CStringArray& asInstallDirsToWrite ) { CRegistry Reg; Reg.SetRootKey(HKEY_LOCAL_MACHINE); Reg.SetKey("Software\\StepMania\\smpackage\\Installations", TRUE); // create if not already present unsigned i; for( i=0; i<100; i++ ) { CString sName = ssprintf("%d",i); // Reg.DeleteKey( sName ); // delete key is broken in this library, so just write over it with "" Reg.WriteString( sName, "" ); } for( i=0; i