1
0
forked from 0ad/0ad
0ad/source/dcdt/se/sr_path_array.cpp

29 lines
595 B
C++

#include "precompiled.h"
# include "sr_path_array.h"
//# define SR_USE_TRACE1
# include "sr_trace.h"
//====================== SrPathArray ==========================
void SrPathArray::basedir_from_filename ( const char* file )
{
_basedir = file;
_basedir.remove_file_name();
_basedir.make_valid_path();
}
bool SrPathArray::adjust_path ( SrString& file )
{
SrInput in;
if ( open(in,file) )
{ file = in.filename();
return true;
}
else
{ return false;
}
}
//=========================== EOF ===============================