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

Method LoadFile

3rdparty/simpleini/include/SimpleIni.h:1409–1426  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1407
1408template<class SI_CHAR, class SI_STRLESS, class SI_CONVERTER>
1409SI_Error
1410CSimpleIniTempl<SI_CHAR,SI_STRLESS,SI_CONVERTER>::LoadFile(
1411 const char * a_pszFile
1412 )
1413{
1414 FILE * fp = NULL;
1415#if __STDC_WANT_SECURE_LIB__ && !_WIN32_WCE
1416 fopen_s(&fp, a_pszFile, "rb");
1417#else // !__STDC_WANT_SECURE_LIB__
1418 fp = fopen(a_pszFile, "rb");
1419#endif // __STDC_WANT_SECURE_LIB__
1420 if (!fp) {
1421 return SI_FILE;
1422 }
1423 SI_Error rc = LoadFile(fp);
1424 fclose(fp);
1425 return rc;
1426}
1427
1428#ifdef SI_HAS_WIDE_FILE
1429template<class SI_CHAR, class SI_STRLESS, class SI_CONVERTER>

Callers 1

LoadMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected