loadOrCreate

public static String loadOrCreate(Path file)

Load the existing backend ID from file, or create a new one and persist it if the file is absent / corrupt. Never returns null — falls through to an in-memory UUID on persistent I/O failure (which means relay entries from this session won't survive restart, but the RSPM session can still function).

Parameters

file

the storage path (typically plugins/ResourcePackManager/backend-id.txt)