def rom_shortcut_name(rom):
  """Calculates what a ROM's name should be when represented as a shortcut in
  Steam. For the most part this is just the name of the ROM itself, but some
  Console's provide a prefix which should be appended to the name of the ROM
  itself."""
  prefix = rom.console.prefix
  if prefix:
    return "%s %s" % (prefix, rom.name)
  else:
    return rom.name