feat: add ability to change assets download server
Signed-off-by: clague <93119153+clague@users.noreply.github.com>
This commit is contained in:
parent
2c91629564
commit
4bf6e59f3b
6 changed files with 73 additions and 3 deletions
|
@ -298,7 +298,12 @@ QString AssetObject::getLocalPath()
|
|||
|
||||
QUrl AssetObject::getUrl()
|
||||
{
|
||||
return BuildConfig.RESOURCE_BASE + getRelPath();
|
||||
auto s = APPLICATION->settings();
|
||||
auto resourceURL = s->get("ResourceURLOverride").toString();
|
||||
if (resourceURL.isEmpty()) {
|
||||
return BuildConfig.DEFAULT_RESOURCE_BASE + getRelPath();
|
||||
}
|
||||
return resourceURL + getRelPath();
|
||||
}
|
||||
|
||||
QString AssetObject::getRelPath()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue