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

Function CheckFileExistsInState

pcsx2/SaveState.cpp:1123–1138  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1121}
1122
1123static zip_int64_t CheckFileExistsInState(zip_t* zf, const char* name, bool required)
1124{
1125 zip_int64_t index = zip_name_locate(zf, name, /*ZIP_FL_NOCASE*/ 0);
1126 if (index >= 0)
1127 {
1128 DevCon.WriteLn(Color_Green, " ... found '%s'", name);
1129 return index;
1130 }
1131
1132 if (required)
1133 Console.WriteLn(Color_Red, " ... not found '%s'!", name);
1134 else
1135 DevCon.WriteLn(Color_Red, " ... not found '%s'!", name);
1136
1137 return index;
1138}
1139
1140static bool LoadInternalStructuresState(zip_t* zf, s64 index, Error* error)
1141{

Callers 1

SaveState_UnzipFromDiskFunction · 0.85

Calls 2

zip_name_locateFunction · 0.85
WriteLnMethod · 0.45

Tested by

no test coverage detected