It was a funky game for the 49ers, but they did more than enough to beat the Raiders.