mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 22:29:39 -06:00
Add a namespace to OpenFStream
For consistency with the other functions in FileUtil.h.
This commit is contained in:
@ -268,8 +268,8 @@ void Wiimote::WriteData(const wm_write_data* const wd)
|
||||
{
|
||||
// TODO Only write parts of the Mii block
|
||||
std::ofstream file;
|
||||
OpenFStream(file, File::GetUserPath(D_SESSION_WIIROOT_IDX) + "/mii.bin",
|
||||
std::ios::binary | std::ios::out);
|
||||
File::OpenFStream(file, File::GetUserPath(D_SESSION_WIIROOT_IDX) + "/mii.bin",
|
||||
std::ios::binary | std::ios::out);
|
||||
file.write((char*)m_eeprom + 0x0FCA, 0x02f0);
|
||||
file.close();
|
||||
}
|
||||
|
@ -144,7 +144,7 @@ void Wiimote::SpeakerData(const wm_speaker_data* sd)
|
||||
File::Delete("rmtdump.wav");
|
||||
File::Delete("rmtdump.bin");
|
||||
atexit(stopdamnwav);
|
||||
OpenFStream(ofile, "rmtdump.bin", ofile.binary | ofile.out);
|
||||
File::OpenFStream(ofile, "rmtdump.bin", ofile.binary | ofile.out);
|
||||
wav.Start("rmtdump.wav", 6000);
|
||||
}
|
||||
wav.AddMonoSamples(samples.get(), sd->length * 2);
|
||||
|
@ -18,7 +18,7 @@ bool CSVSignatureDB::Load(const std::string& file_path)
|
||||
{
|
||||
std::string line;
|
||||
std::ifstream ifs;
|
||||
OpenFStream(ifs, file_path, std::ios_base::in);
|
||||
File::OpenFStream(ifs, file_path, std::ios_base::in);
|
||||
|
||||
if (!ifs)
|
||||
return false;
|
||||
|
@ -128,7 +128,7 @@ void MEGASignatureDB::Clear()
|
||||
bool MEGASignatureDB::Load(const std::string& file_path)
|
||||
{
|
||||
std::ifstream ifs;
|
||||
OpenFStream(ifs, file_path, std::ios_base::in);
|
||||
File::OpenFStream(ifs, file_path, std::ios_base::in);
|
||||
|
||||
if (!ifs)
|
||||
return false;
|
||||
|
@ -53,7 +53,7 @@ static bool LoadMap(const std::string& file_path, Map& map,
|
||||
std::function<bool(const std::string& game_id)> predicate)
|
||||
{
|
||||
std::ifstream txt;
|
||||
OpenFStream(txt, file_path, std::ios::in);
|
||||
File::OpenFStream(txt, file_path, std::ios::in);
|
||||
|
||||
if (!txt.is_open())
|
||||
return false;
|
||||
|
Reference in New Issue
Block a user