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:
@@ -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)
|
||||
@@ -0,0 +1 @@
|
||||
uid://bprgpcfabdtn4
|
||||
Reference in New Issue
Block a user