using uuid to generate unique filename

This commit is contained in:
minjaesong
2021-10-08 22:21:49 +09:00
parent a1402f98bd
commit d4f75c1bd5

View File

@@ -307,8 +307,8 @@ open class TerrarumIngame(batch: SpriteBatch) : IngameInstance(batch) {
// go to spawn position
printdbg(this, "World Spawn position: (${world.spawnX}, ${world.spawnY})")
val worldSavefileName = savegameNickname
val playerSavefileName = actorGamer.actorValue.getAsString(AVKey.NAME) ?: "Player-${actorGamer.uuid}"
val worldSavefileName = "$savegameNickname-${world.worldIndex}"
val playerSavefileName = (actorGamer.actorValue.getAsString(AVKey.NAME) ?: "Player") + "-${actorGamer.uuid}"
worldDisk = VDUtil.createNewDisk(
1L shl 60,