mirror of
https://github.com/yairm210/Unciv.git
synced 2025-02-21 20:18:28 +07:00
LibGDX 1.13.1
This commit is contained in:
parent
612375d85d
commit
ff30d123c0
@ -7,7 +7,7 @@ object BuildConfig {
|
||||
const val appCodeNumber = 1089
|
||||
const val appVersion = "4.15.1"
|
||||
|
||||
const val gdxVersion = "1.12.1"
|
||||
const val gdxVersion = "1.13.1"
|
||||
const val ktorVersion = "2.3.12"
|
||||
const val coroutinesVersion = "1.8.1"
|
||||
|
||||
|
@ -1,6 +1,5 @@
|
||||
|
||||
import com.unciv.build.BuildConfig
|
||||
import com.unciv.build.BuildConfig.gdxVersion
|
||||
|
||||
plugins {
|
||||
id("kotlin")
|
||||
@ -23,11 +22,6 @@ java {
|
||||
targetCompatibility = JavaVersion.VERSION_1_8
|
||||
}
|
||||
|
||||
dependencies {
|
||||
// See https://libgdx.com/news/2021/07/devlog-7-lwjgl3#do-i-need-to-do-anything-else
|
||||
api("com.badlogicgames.gdx:gdx-lwjgl3-glfw-awt-macos:$gdxVersion")
|
||||
}
|
||||
|
||||
val mainClassName = "com.unciv.app.desktop.DesktopLauncher"
|
||||
val assetsDir = file("../android/assets")
|
||||
val discordDir = file("discord_rpc")
|
||||
|
@ -3,6 +3,7 @@ package com.unciv.app.desktop
|
||||
import com.badlogic.gdx.backends.lwjgl3.Lwjgl3ApplicationConfiguration
|
||||
import com.badlogic.gdx.files.FileHandle
|
||||
import com.badlogic.gdx.graphics.glutils.HdpiMode
|
||||
import com.badlogic.gdx.utils.SharedLibraryLoader
|
||||
import com.unciv.app.desktop.DesktopScreenMode.Companion.getMaximumWindowBounds
|
||||
import com.unciv.json.json
|
||||
import com.unciv.logic.files.SETTINGS_FILE_NAME
|
||||
@ -18,6 +19,7 @@ import com.unciv.ui.components.fonts.Fonts
|
||||
import com.unciv.ui.screens.basescreen.BaseScreen
|
||||
import com.unciv.utils.Display
|
||||
import com.unciv.utils.Log
|
||||
import org.lwjgl.system.Configuration
|
||||
import java.io.File
|
||||
import kotlin.system.exitProcess
|
||||
|
||||
@ -25,6 +27,9 @@ internal object DesktopLauncher {
|
||||
|
||||
@JvmStatic
|
||||
fun main(arg: Array<String>) {
|
||||
if (SharedLibraryLoader.isMac) {
|
||||
Configuration.GLFW_LIBRARY_NAME.set("glfw_async")
|
||||
}
|
||||
|
||||
// The uniques checker requires the file system to be seet up, which happens after lwjgw initializes it
|
||||
if (arg.isNotEmpty() && arg[0] == "mod-ci") {
|
||||
|
Loading…
Reference in New Issue
Block a user