pub fn set_ghost_character(
characters_dir: &Path,
character_name: &str,
) -> Result<(), Box<dyn Error>>Expand description
Sets the ghost character by reordering player_types.txt so that all entries
for the given character name are moved to the top of the list.
This implementation uses AST manipulation to preserve comments and unknown fields.