Skip to content

Commit f0411bd

Browse files
committed
Remove last use of std stream
1 parent 82d08d7 commit f0411bd

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/player.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,14 @@
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
252254
double getRecommendedFilterRange(const std::string& author)
253255
{
@@ -269,7 +271,7 @@ double getRecommendedFilterCurve(const std::string& author)
269271

270272
std::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
{

0 commit comments

Comments
 (0)