Fix the filesystem implementation in order to get blargSnes to run

    auto it = director.children.begin();
    const auto end_it = director.children.end();
    for (; it != end_it && end_it - it < count; ++i) {
    }
    int i = end_it - it;