File tree 3 files changed +6
-7
lines changed
src/com/unciv/app/desktop
3 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ object BuildConfig {
7
7
const val appCodeNumber = 1089
8
8
const val appVersion = " 4.15.1"
9
9
10
- const val gdxVersion = " 1.12 .1"
10
+ const val gdxVersion = " 1.13 .1"
11
11
const val ktorVersion = " 2.3.12"
12
12
const val coroutinesVersion = " 1.8.1"
13
13
Original file line number Diff line number Diff line change 1
1
2
2
import com.unciv.build.BuildConfig
3
- import com.unciv.build.BuildConfig.gdxVersion
4
3
5
4
plugins {
6
5
id(" kotlin" )
@@ -23,11 +22,6 @@ java {
23
22
targetCompatibility = JavaVersion .VERSION_1_8
24
23
}
25
24
26
- dependencies {
27
- // See https://libgdx.com/news/2021/07/devlog-7-lwjgl3#do-i-need-to-do-anything-else
28
- api(" com.badlogicgames.gdx:gdx-lwjgl3-glfw-awt-macos:$gdxVersion " )
29
- }
30
-
31
25
val mainClassName = " com.unciv.app.desktop.DesktopLauncher"
32
26
val assetsDir = file(" ../android/assets" )
33
27
val discordDir = file(" discord_rpc" )
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ package com.unciv.app.desktop
3
3
import com.badlogic.gdx.backends.lwjgl3.Lwjgl3ApplicationConfiguration
4
4
import com.badlogic.gdx.files.FileHandle
5
5
import com.badlogic.gdx.graphics.glutils.HdpiMode
6
+ import com.badlogic.gdx.utils.SharedLibraryLoader
6
7
import com.unciv.app.desktop.DesktopScreenMode.Companion.getMaximumWindowBounds
7
8
import com.unciv.json.json
8
9
import com.unciv.logic.files.SETTINGS_FILE_NAME
@@ -18,13 +19,17 @@ import com.unciv.ui.components.fonts.Fonts
18
19
import com.unciv.ui.screens.basescreen.BaseScreen
19
20
import com.unciv.utils.Display
20
21
import com.unciv.utils.Log
22
+ import org.lwjgl.system.Configuration
21
23
import java.io.File
22
24
import kotlin.system.exitProcess
23
25
24
26
internal object DesktopLauncher {
25
27
26
28
@JvmStatic
27
29
fun main (arg : Array <String >) {
30
+ if (SharedLibraryLoader .isMac) {
31
+ Configuration .GLFW_LIBRARY_NAME .set(" glfw_async" )
32
+ }
28
33
29
34
// The uniques checker requires the file system to be seet up, which happens after lwjgw initializes it
30
35
if (arg.isNotEmpty() && arg[0 ] == " mod-ci" ) {
You can’t perform that action at this time.
0 commit comments