From c982e6e41f00015be92d4d4cdd90416abb5fb55d Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Tue, 17 Feb 2004 22:13:12 +0000 Subject: [PATCH] fix Profile::SaveMachinePublicKeyToDir --- stepmania/src/Profile.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/stepmania/src/Profile.cpp b/stepmania/src/Profile.cpp index 07c866f8f2..1daefd3869 100644 --- a/stepmania/src/Profile.cpp +++ b/stepmania/src/Profile.cpp @@ -1013,7 +1013,8 @@ void Profile::SaveStatsWebPageToDir( CString sDir ) const void Profile::SaveMachinePublicKeyToDir( CString sDir ) const { - FileCopy( CRYPTMAN->GetPublicKeyFileName(), "public.key.rsa" ); + if( IsAFile(CRYPTMAN->GetPublicKeyFileName()) ) + FileCopy( CRYPTMAN->GetPublicKeyFileName(), sDir+"public.key.rsa" ); } void Profile::AddScreenshot( Screenshot screenshot )