Merge branch 'develop'
This commit is contained in:
commit
997054a535
@ -6,8 +6,8 @@
|
|||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>600</width>
|
<width>610</width>
|
||||||
<height>400</height>
|
<height>391</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
@ -23,6 +23,9 @@
|
|||||||
<property name="rightMargin">
|
<property name="rightMargin">
|
||||||
<number>0</number>
|
<number>0</number>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="bottomMargin">
|
||||||
|
<number>6</number>
|
||||||
|
</property>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QPlainTextEdit" name="text">
|
<widget class="QPlainTextEdit" name="text">
|
||||||
<property name="font">
|
<property name="font">
|
||||||
@ -49,6 +52,12 @@
|
|||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout">
|
<layout class="QHBoxLayout" name="horizontalLayout">
|
||||||
|
<property name="leftMargin">
|
||||||
|
<number>6</number>
|
||||||
|
</property>
|
||||||
|
<property name="rightMargin">
|
||||||
|
<number>6</number>
|
||||||
|
</property>
|
||||||
<item>
|
<item>
|
||||||
<spacer name="horizontalSpacer">
|
<spacer name="horizontalSpacer">
|
||||||
<property name="orientation">
|
<property name="orientation">
|
||||||
@ -65,14 +74,14 @@
|
|||||||
<item>
|
<item>
|
||||||
<widget class="QPushButton" name="btnKillMinecraft">
|
<widget class="QPushButton" name="btnKillMinecraft">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Kill Minecraft</string>
|
<string>&Kill Minecraft</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QPushButton" name="closeButton">
|
<widget class="QPushButton" name="closeButton">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Close</string>
|
<string>&Close</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
@ -80,6 +89,11 @@
|
|||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
|
<tabstops>
|
||||||
|
<tabstop>text</tabstop>
|
||||||
|
<tabstop>closeButton</tabstop>
|
||||||
|
<tabstop>btnKillMinecraft</tabstop>
|
||||||
|
</tabstops>
|
||||||
<resources/>
|
<resources/>
|
||||||
<connections/>
|
<connections/>
|
||||||
</ui>
|
</ui>
|
||||||
|
@ -40,7 +40,7 @@ void LegacyUpdate::lwjglStart()
|
|||||||
LegacyInstance *inst = (LegacyInstance *)m_inst;
|
LegacyInstance *inst = (LegacyInstance *)m_inst;
|
||||||
|
|
||||||
lwjglVersion = inst->lwjglVersion();
|
lwjglVersion = inst->lwjglVersion();
|
||||||
lwjglTargetPath = PathCombine("lwjgl", lwjglVersion);
|
lwjglTargetPath = PathCombine(MMC->settings()->get("LWJGLDir").toString(), lwjglVersion);
|
||||||
lwjglNativesPath = PathCombine(lwjglTargetPath, "natives");
|
lwjglNativesPath = PathCombine(lwjglTargetPath, "natives");
|
||||||
|
|
||||||
// if the 'done' file exists, we don't have to download this again
|
// if the 'done' file exists, we don't have to download this again
|
||||||
@ -361,7 +361,10 @@ void LegacyUpdate::ModTheJar()
|
|||||||
setStatus("Installing mods - backing up minecraft.jar...");
|
setStatus("Installing mods - backing up minecraft.jar...");
|
||||||
if (!baseJar.exists() && !QFile::copy(runnableJar.filePath(), baseJar.filePath()))
|
if (!baseJar.exists() && !QFile::copy(runnableJar.filePath(), baseJar.filePath()))
|
||||||
{
|
{
|
||||||
emitFailed("Failed to back up minecraft.jar");
|
emitFailed("It seems both the active and base jar are gone. A fresh base jar will be used on next run.");
|
||||||
|
inst->setShouldRebuild(true);
|
||||||
|
inst->setShouldUpdate(true);
|
||||||
|
inst->setShouldUseCustomBaseJar(false);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user