mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-06-29 01:54:20 +03:00
refactor: make Minecraft resource URL override consistent with other overrides
Signed-off-by: Octol1ttle <l1ttleofficial@outlook.com>
This commit is contained in:
parent
33deb1da3f
commit
3f0af19ed3
5 changed files with 21 additions and 7 deletions
|
|
@ -52,6 +52,7 @@
|
|||
|
||||
#include "Application.h"
|
||||
#include "net/NetRequest.h"
|
||||
#include "update/AssetUpdateTask.h"
|
||||
|
||||
namespace {
|
||||
QSet<QString> collectPathsFromDir(QString dirPath)
|
||||
|
|
@ -298,7 +299,7 @@ QString AssetObject::getLocalPath()
|
|||
|
||||
QUrl AssetObject::getUrl()
|
||||
{
|
||||
auto resourceURL = APPLICATION->settings()->get("ResourceURL").toString();
|
||||
auto resourceURL = AssetUpdateTask::resourceUrl();
|
||||
return resourceURL + getRelPath();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue