Skip to main content

resolve_game_title_from_project_dir

Function resolve_game_title_from_project_dir 

Source
pub fn resolve_game_title_from_project_dir(
    project_dir: impl AsRef<Path>,
) -> String
Expand description

Return the display title for a game directory.

This is intended for platform/bundle UI code as well as runtime dialogs. It reads GAMENAME from Gameexe.ini or Gameexe.dat when possible. If the Gameexe file is missing, cannot be decoded, or does not contain a non-empty GAMENAME, the returned value is the project directory name. As a final fallback it returns Siglus.