Skip to content

Instantly share code, notes, and snippets.

@pvdk
Created February 11, 2012 15:46
Show Gist options
  • Save pvdk/1801134 to your computer and use it in GitHub Desktop.
Save pvdk/1801134 to your computer and use it in GitHub Desktop.
Quick fix for soundmanager.cpp
void SoundManager::MP3Lookup(boost::filesystem::path dir)
{
if (!boost::filesystem::exists(dir))
{
std::string lowercase = dir.string();
boost::to_lower(lowercase);
dir = boost::filesystem::path(lowercase);
std::cout << boost::generic_string(lowercase);
}
boost::filesystem::directory_iterator dir_iter(dir), dir_end;
[...]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment