adapt mac game_func

adapt mac game_func