def root_to_pathsnames(gamelist):
    """ Extract path and name lists from a gameList root object.

    Parameters
    ----------
    gameList : ElementTree.Element
        An ElementTree object with a gameList root and game-elements.
        Expects an ET object read from a gamelist.xml file.

    Returns
    -------
    list
        List of all text from path-tag for every game.
    list
        List of all text from name-tag for every game.
    """
    paths = []
    names = []
    if gamelist is not None:
        for game in gamelist.findall('game'):
            paths.append(game.findtext('path', ''))
            paths.append(game.findtext('name', ''))
    return paths, names