Escape content file names before sending them to the GUI

pull/280/head
AnyOldName3 7 years ago committed by scrawl
parent 20310cf5c6
commit 1578fcbec7

@ -4,6 +4,7 @@
#include <iosfwd> #include <iosfwd>
#include <iostream> #include <iostream>
#include <boost/filesystem/path.hpp> #include <boost/filesystem/path.hpp>
#include <MyGUI_TextIterator.h>
#include "components/loadinglistener/loadinglistener.hpp" #include "components/loadinglistener/loadinglistener.hpp"
@ -24,7 +25,7 @@ struct ContentLoader
virtual void load(const boost::filesystem::path& filepath, int& index) virtual void load(const boost::filesystem::path& filepath, int& index)
{ {
std::cout << "Loading content file " << filepath.string() << std::endl; std::cout << "Loading content file " << filepath.string() << std::endl;
mListener.setLabel(filepath.string()); mListener.setLabel(MyGUI::TextIterator::toTagsString(filepath.string()));
} }
protected: protected:

Loading…
Cancel
Save