File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 2222#include " player.h"
2323
2424#include " fmt/format.h"
25+ #include " filesystem/filesystem.hpp"
2526
2627#include < cstdlib>
2728#include < cmath>
2829#include < cstring>
2930#include < cstdio>
3031#include < cstdlib>
3132
32- #include < fstream>
3333#include < memory>
3434#include < new>
3535
@@ -248,6 +248,8 @@ static const filter_map_t filterCurveMap =
248248};
249249#endif
250250
251+ namespace fs = ghc::filesystem;
252+
251253#ifdef FEAT_FILTER_RANGE
252254double getRecommendedFilterRange (const std::string& author)
253255{
@@ -269,7 +271,7 @@ double getRecommendedFilterCurve(const std::string& author)
269271
270272std::unique_ptr<uint8_t []> loadRom (const std::string &romPath, const int size)
271273{
272- std ::ifstream is (romPath. c_str () , std::ios::binary); // FIXME use fs
274+ fs ::ifstream is (romPath, std::ios::binary);
273275
274276 if (is.is_open ())
275277 {
You can’t perform that action at this time.
0 commit comments