EXI_DeviceAGP: Pass string by reference
This commit is contained in:
parent
43605f8716
commit
7dc5bc622f
|
@ -63,7 +63,7 @@ void CEXIAgp::LoadRom()
|
|||
INFO_LOG(EXPANSIONINTERFACE, "Loaded GBA sav: %s card: %d", gbapath.c_str(), m_slot);
|
||||
}
|
||||
|
||||
void CEXIAgp::LoadFileToROM(std::string filename)
|
||||
void CEXIAgp::LoadFileToROM(const std::string& filename)
|
||||
{
|
||||
File::IOFile pStream(filename, "rb");
|
||||
if (pStream)
|
||||
|
@ -83,7 +83,7 @@ void CEXIAgp::LoadFileToROM(std::string filename)
|
|||
}
|
||||
}
|
||||
|
||||
void CEXIAgp::LoadFileToEEPROM(std::string filename)
|
||||
void CEXIAgp::LoadFileToEEPROM(const std::string& filename)
|
||||
{
|
||||
File::IOFile pStream(filename, "rb");
|
||||
if (pStream)
|
||||
|
@ -98,7 +98,7 @@ void CEXIAgp::LoadFileToEEPROM(std::string filename)
|
|||
}
|
||||
}
|
||||
|
||||
void CEXIAgp::SaveFileFromEEPROM(std::string filename)
|
||||
void CEXIAgp::SaveFileFromEEPROM(const std::string& filename)
|
||||
{
|
||||
File::IOFile pStream(filename, "wb");
|
||||
if (pStream)
|
||||
|
|
|
@ -47,9 +47,9 @@ private:
|
|||
u8 m_eeprom_pos = 0;
|
||||
u16 m_eeprom_cmd = 0;
|
||||
|
||||
void LoadFileToROM(std::string filename);
|
||||
void LoadFileToEEPROM(std::string filename);
|
||||
void SaveFileFromEEPROM(std::string filename);
|
||||
void LoadFileToROM(const std::string& filename);
|
||||
void LoadFileToEEPROM(const std::string& filename);
|
||||
void SaveFileFromEEPROM(const std::string& filename);
|
||||
void LoadHash();
|
||||
void LoadRom();
|
||||
void DoHash(u8* data, u32 size);
|
||||
|
|
Loading…
Reference in New Issue