mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 20:10:06 +00:00
Fix backslash interpretation in IconFile and Image statements
This commit is contained in:
parent
c5a56680ea
commit
8326b2f2bf
3 changed files with 12 additions and 6 deletions
|
|
@ -3,6 +3,7 @@
|
|||
#include <scwx/qt/util/texture_atlas.hpp>
|
||||
#include <scwx/util/logger.hpp>
|
||||
|
||||
#include <QDir>
|
||||
#include <QUrl>
|
||||
#include <boost/unordered/unordered_flat_map.hpp>
|
||||
|
||||
|
|
@ -39,8 +40,9 @@ struct PlacefileImageInfo
|
|||
{
|
||||
// Resolve using base URL
|
||||
auto baseUrl = QUrl::fromUserInput(QString::fromStdString(baseUrlString));
|
||||
auto relativeUrl = QUrl(QString::fromStdString(imageFile));
|
||||
resolvedUrl_ = baseUrl.resolved(relativeUrl).toString().toStdString();
|
||||
auto relativeUrl =
|
||||
QUrl(QDir::fromNativeSeparators(QString::fromStdString(imageFile)));
|
||||
resolvedUrl_ = baseUrl.resolved(relativeUrl).toString().toStdString();
|
||||
}
|
||||
|
||||
void UpdateTextureInfo();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue