From 5303e7aab900f55a714b79735dfdb03b2de222c1 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Thu, 29 Dec 2005 02:10:18 +0000 Subject: [PATCH] This isn't right: it'll add a period to the end, even when there was no extension at all. Remove it; it wasn't meant to be committed to begin with. --- stepmania/src/RageUtil.cpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/stepmania/src/RageUtil.cpp b/stepmania/src/RageUtil.cpp index 7634ddc7eb..3cb9152cf7 100644 --- a/stepmania/src/RageUtil.cpp +++ b/stepmania/src/RageUtil.cpp @@ -733,14 +733,6 @@ void MakeValidFilename( CString &sName ) } sName = WStringToRString( wsName ); - if( Basename(sName).size() > 128 ) - { - /* The filename is too long. Truncate it, but leave the extension alone. */ - const RString& sExt = GetExtension( sName ); - sName = SetExtension( sName, "" ); - sName.erase( 128 ); - sName = sName + "." + sExt; - } } int g_argc = 0;