mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-25 06:35:30 +00:00
Escape content file names before sending them to the GUI
This commit is contained in:
parent
20310cf5c6
commit
1578fcbec7
@ -4,6 +4,7 @@
|
||||
#include <iosfwd>
|
||||
#include <iostream>
|
||||
#include <boost/filesystem/path.hpp>
|
||||
#include <MyGUI_TextIterator.h>
|
||||
|
||||
#include "components/loadinglistener/loadinglistener.hpp"
|
||||
|
||||
@ -24,7 +25,7 @@ struct ContentLoader
|
||||
virtual void load(const boost::filesystem::path& filepath, int& index)
|
||||
{
|
||||
std::cout << "Loading content file " << filepath.string() << std::endl;
|
||||
mListener.setLabel(filepath.string());
|
||||
mListener.setLabel(MyGUI::TextIterator::toTagsString(filepath.string()));
|
||||
}
|
||||
|
||||
protected:
|
||||
|
Loading…
x
Reference in New Issue
Block a user