Profile, Startoptionen und vorsichtiges Lesen

Die Befehlszeile wählt ein Profil, einen Namen und einen Direktstart.
Zwei Fenster auf einem Rechner sind so zwei Spieler. Ein Schlüssel oder
Spielstand, der sich gerade nicht lesen lässt, wird nicht mehr ersetzt.
Name und zuletzt genutzte Adresse bleiben gespeichert.

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
This commit is contained in:
Steven Wroblewski
2026-10-01 20:57:03 +02:00
parent a43ce66a89
commit d5debc5bcb
8 changed files with 229 additions and 9 deletions
+13
View File
@@ -0,0 +1,13 @@
class_name HeldFileStore
extends SaveStore
## A SaveStore that cannot read the file named `unreadable`, as if another
## program held it.
var unreadable := ""
func _read_file(path: String) -> PackedByteArray:
if path.get_file() == unreadable:
last_read_error = ERR_FILE_CANT_READ
return PackedByteArray()
return super(path)