mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-05 03:24:56 +08:00
Support hd background
This commit is contained in:
@@ -23,7 +23,11 @@ object BackgroundBitmap {
|
||||
var width: Int
|
||||
var height = 0
|
||||
|
||||
val bgLayout = file.findFile("resource")?.findFile("BackgroundLayout.txt")
|
||||
var bgLayout = file.findFile("resource")?.findFile("HD_BackgroundLayout.txt")
|
||||
if (bgLayout == null) {
|
||||
bgLayout = file.findFile("resource")?.findFile("BackgroundLayout.txt")
|
||||
}
|
||||
|
||||
if (bgLayout == null) {
|
||||
val dir = file.findFile("resource")?.findFile("background")
|
||||
for (i in 0 until BACKGROUND_ROWS) {
|
||||
|
||||
Reference in New Issue
Block a user