mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-03-07 20:31:51 +09:00
pathText will have unified dir separator depending on the OS
This commit is contained in:
@@ -24,7 +24,7 @@ class NoModuleDefaultTitlescreen(batch: FlippingSpriteBatch) : IngameInstance(ba
|
||||
|
||||
private var init = false
|
||||
|
||||
private val pathText = App.loadOrderDir
|
||||
private val pathText = App.loadOrderDir.let { if (App.operationSystem == "WINDOWS") it.replace('/','\\') else it.replace('\\','/') }
|
||||
private val pathFile = File(App.loadOrderDir)//.parentFile
|
||||
private val pathButtonW = App.fontGameFBO.getWidth(pathText)
|
||||
private val pathButtonH = 20
|
||||
@@ -113,4 +113,4 @@ class NoModuleDefaultTitlescreen(batch: FlippingSpriteBatch) : IngameInstance(ba
|
||||
|
||||
fbo.dispose()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user