diff --git a/backends/frotz/main.cpp b/backends/frotz/main.cpp index 7a13290d1bb520e70d97bb31635649dedc892992..dcd67a1730a2d35f5f1bc7efd4db1f8556139a8c 100644 --- a/backends/frotz/main.cpp +++ b/backends/frotz/main.cpp @@ -235,7 +235,11 @@ class FrotzNetworkPlugin : public NetworkPlugin { directory_iterator end_itr; for (directory_iterator itr(p); itr != end_itr; ++itr) { if (extension(itr->path()) == ".z5") { +#if BOOST_FILESYSTEM_VERSION == 2 games.push_back(itr->path().leaf()); +#else + games.push_back(itr->path().filename().string()); +#endif } } return games;