pathText will have unified dir separator depending on the OS

This commit is contained in:
CuriousTorvald
2022-12-09 20:42:11 +09:00
committed by GitHub
parent b2479028af
commit 9c84e8f597

View File

@@ -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()
}
}
}