| 241 | } |
| 242 | |
| 243 | static 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 | |
| 258 | static std::string FindBiosImage() |
| 259 | { |
no test coverage detected