MCPcopy Create free account
hub / github.com/PCSX2/pcsx2 / LoadIrx

Function LoadIrx

pcsx2/ps2/BiosTools.cpp:243–256  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

241}
242
243static void LoadIrx(const std::string& filename, u8* dest, size_t maxSize)
244{
245 auto fp = FileSystem::OpenManagedCFile(filename.c_str(), "rb");
246 if (fp)
247 {
248 const s64 filesize = FileSystem::FSize64(fp.get());
249 const s64 readSize = std::min(filesize, static_cast<s64>(maxSize));
250 if (std::fread(dest, readSize, 1, fp.get()) == 1)
251 return;
252 }
253
254 Console.Warning("IRX Warning: %s could not be read", filename.c_str());
255 return;
256}
257
258static std::string FindBiosImage()
259{

Callers 1

CopyBIOSToMemoryFunction · 0.85

Calls 4

minFunction · 0.50
c_strMethod · 0.45
getMethod · 0.45
WarningMethod · 0.45

Tested by

no test coverage detected