seemingly working world teleporter (no saving... ui tho)

This commit is contained in:
minjaesong
2023-07-03 00:10:46 +09:00
parent 9c396e7b8d
commit fcaf4c97f1
7 changed files with 37 additions and 14 deletions

View File

@@ -57,6 +57,7 @@ class PlayerSavingThread(
val gzout = GZIPOutputStream(tgaout)
PixmapIO2._writeTGA(gzout, IngameRenderer.fboRGBexport, true, true)
IngameRenderer.fboRGBexport.dispose()
// App.disposables.add(IngameRenderer.fboRGBexport)
val thumbContent = EntryFile(tgaout.toByteArray64())
val thumb =
DiskEntry(VDFileID.PLAYER_SCREENSHOT, VDFileID.ROOT, ingame.world.creationTime, time_t, thumbContent)