From b01f17894cb265e9a7b38762c8c4d76a132f0939 Mon Sep 17 00:00:00 2001 From: Thad Ward Date: Mon, 1 Sep 2003 11:21:12 +0000 Subject: [PATCH] Fix slashes for safety. --- stepmania/src/Model.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/stepmania/src/Model.cpp b/stepmania/src/Model.cpp index a0ccbadb06..acb3ab6bf5 100644 --- a/stepmania/src/Model.cpp +++ b/stepmania/src/Model.cpp @@ -79,6 +79,7 @@ bool Model::LoadFromModelFile( CString sPath ) bool Model::LoadMilkshapeAscii( CString sPath ) { CString sDir, sThrowAway; + FixSlashesInPlace(sPath); splitrelpath( sPath, sDir, sThrowAway, sThrowAway ); FILE *file = fopen (sPath, "rt"); @@ -444,6 +445,7 @@ bool Model::LoadMilkshapeAscii( CString sPath ) bool Model::LoadMilkshapeAsciiBones( CString sAniName, CString sPath ) { CString sDir, sThrowAway; + FixSlashesInPlace(sPath); splitrelpath( sPath, sDir, sThrowAway, sThrowAway ); FILE *file = fopen (sPath, "rt");