mirror of
https://github.com/UltimMC/Launcher.git
synced 2025-12-20 18:57:14 +00:00
SCRATCH remove remaining references to MultiMC.h and fix legacy LWJGL
This commit is contained in:
@@ -24,7 +24,7 @@
|
||||
|
||||
#define RSS_URL "http://sourceforge.net/projects/java-game-lib/rss"
|
||||
|
||||
LWJGLVersionList::LWJGLVersionList(QObject *parent) : QAbstractListModel(parent)
|
||||
LWJGLVersionList::LWJGLVersionList(QObject *parent) : BaseVersionList(parent)
|
||||
{
|
||||
setLoading(false);
|
||||
}
|
||||
@@ -37,7 +37,7 @@ QVariant LWJGLVersionList::data(const QModelIndex &index, int role) const
|
||||
if (index.row() > count())
|
||||
return QVariant();
|
||||
|
||||
const PtrLWJGLVersion version = at(index.row());
|
||||
const PtrLWJGLVersion version = m_vlist.at(index.row());
|
||||
|
||||
switch (role)
|
||||
{
|
||||
@@ -151,7 +151,7 @@ void LWJGLVersionList::netRequestComplete()
|
||||
continue;
|
||||
}
|
||||
QLOG_INFO() << "Discovered LWGL version" << name << "at" << link;
|
||||
tempList.append(LWJGLVersion::Create(name, link));
|
||||
tempList.append(std::make_shared<LWJGLVersion>(name, link));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -171,17 +171,6 @@ void LWJGLVersionList::netRequestComplete()
|
||||
reply->deleteLater();
|
||||
}
|
||||
|
||||
const PtrLWJGLVersion LWJGLVersionList::getVersion(const QString &versionName)
|
||||
{
|
||||
for (int i = 0; i < count(); i++)
|
||||
{
|
||||
QString name = at(i)->name();
|
||||
if (name == versionName)
|
||||
return at(i);
|
||||
}
|
||||
return PtrLWJGLVersion();
|
||||
}
|
||||
|
||||
void LWJGLVersionList::failed(QString msg)
|
||||
{
|
||||
QLOG_ERROR() << msg;
|
||||
|
||||
Reference in New Issue
Block a user