| 1121 | } |
| 1122 | |
| 1123 | static 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 | |
| 1140 | static bool LoadInternalStructuresState(zip_t* zf, s64 index, Error* error) |
| 1141 | { |
no test coverage detected