Skip to content

Commit

Permalink
fixed a bug where checkpathexists changed the working directory
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric Edelman committed May 16, 2012
1 parent ae57274 commit 5a53ebc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/uslscore/USFileSys.cpp
Expand Up @@ -32,9 +32,10 @@ bool USFileSys::CheckFileExists ( cc8* path ) {
//----------------------------------------------------------------//
bool USFileSys::CheckPathExists ( cc8* path ) {

STLString currentPath = USFileSys::GetCurrentPath ();
bool exists = USFileSys::SetCurrentPath ( path );

USFileSys::SetCurrentPath ( USFileSys::GetCurrentPath ());
USFileSys::SetCurrentPath ( currentPath );
return exists;
}

Expand Down

0 comments on commit 5a53ebc

Please sign in to comment.