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

Function irxImportHLE

pcsx2/IopBios.cpp:1345–1389  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1343 // clang-format on
1344
1345 irxHLE irxImportHLE(const std::string& libname, u16 index)
1346 {
1347 // debugging output
1348 // clang-format off
1349 MODULE(loadcore)
1350 EXPORT_H( 6, RegisterLibraryEntries)
1351 EXPORT_H( 7, ReleaseLibraryEntries);
1352 END_MODULE
1353 MODULE(sysmem)
1354 EXPORT_H( 14, Kprintf)
1355 END_MODULE
1356
1357 // Special case with ioman and iomanX
1358 // They are mostly compatible excluding stat structures
1359 if(libname == "ioman" || libname == "iomanx")
1360 {
1361 const bool use_ioman = libname == "ioman";
1362 using namespace ioman;
1363 switch(index)
1364 {
1365 EXPORT_H( 4, open)
1366 EXPORT_H( 5, close)
1367 EXPORT_H( 6, read)
1368 EXPORT_H( 7, write)
1369 EXPORT_H( 8, lseek)
1370 EXPORT_H( 10, remove)
1371 EXPORT_H( 11, mkdir)
1372 EXPORT_H( 12, rmdir)
1373 EXPORT_H( 13, dopen)
1374 EXPORT_H( 14, dclose)
1375 case 15: // dread
1376 if(use_ioman)
1377 return dread_HLE;
1378 else
1379 return dreadx_HLE;
1380 case 16: // getStat
1381 if(use_ioman)
1382 return getStat_HLE;
1383 else
1384 return getStatx_HLE;
1385 }
1386 }
1387 // clang-format on
1388 return 0;
1389 }
1390
1391 irxDEBUG irxImportDebug(const std::string& libname, u16 index)
1392 {

Callers 2

irxImportExecFunction · 0.85
psxRecompileIrxImportFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected