The rulers of western Africa prior to the European empires were not running some kind of scout camp. They were engaged in the slave trade. They showed zero sign of developing the country's economic resources. Did Senegal ultimately benefit from French rule? Yes, it's clear. And the counterfactual idea that somehow the indigenous rulers would have been more successful in economic development doesn't have any credibility at all.