mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-24 22:14:36 +02:00
boost 1.46 compile fixes.
This commit is contained in:
parent
5e0b0e49b2
commit
4647d4af2c
@ -1371,7 +1371,7 @@ int CPlayerInterface::getLastIndex( std::string namePrefix)
|
||||
{
|
||||
if(is_regular(dir->status()))
|
||||
{
|
||||
std::string name = dir->path().leaf();
|
||||
std::string name = dir->path().leaf().string();
|
||||
if(starts_with(name, namePrefix) && ends_with(name, ".vlgm1"))
|
||||
{
|
||||
char nr = name[namePrefix.size()];
|
||||
|
@ -837,7 +837,7 @@ void SelectionTab::getFiles(std::vector<FileInfo> &out, const std::string &dirna
|
||||
for ( fs::directory_iterator file (tie); file!=end_iter; ++file )
|
||||
{
|
||||
if(fs::is_regular_file(file->status())
|
||||
&& boost::ends_with(file->path().filename(), ext))
|
||||
&& boost::ends_with(file->path().filename().string(), ext))
|
||||
{
|
||||
std::time_t date = 0;
|
||||
try
|
||||
|
@ -45,7 +45,7 @@ std::vector<CCampaignHeader> CCampaignHandler::getCampaignHeaders(GetMode mode)
|
||||
for ( fs::directory_iterator file (tie); file!=end_iter; ++file )
|
||||
{
|
||||
if(fs::is_regular_file(file->status())
|
||||
&& boost::ends_with(file->path().filename(), ext))
|
||||
&& boost::ends_with(file->path().filename().string(), ext))
|
||||
{
|
||||
ret.push_back( getHeader( file->path().string(), false ) );
|
||||
}
|
||||
|
@ -300,7 +300,7 @@ void CLodHandler::init(const std::string lodFile, const std::string dirName)
|
||||
if(boost::filesystem::is_regular(dir->status()))
|
||||
{
|
||||
Entry e;
|
||||
e.realName = dir->path().leaf();
|
||||
e.realName = dir->path().leaf().string();
|
||||
initEntry(e, e.realName);
|
||||
|
||||
if(vstd::contains(entries, e)) //file present in .lod - overwrite its entry
|
||||
|
Loading…
Reference in New Issue
Block a user