MCPcopy Create free account
hub / github.com/ClassiCube/ClassiCube / ExtractFromFile

Function ExtractFromFile

src/TexturePack.c:589–594  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

587#include "../misc/ps1/classicubezip.h"
588
589static cc_result ExtractFromFile(const cc_string* path) {
590 struct Stream stream;
591 Stream_ReadonlyMemory(&stream, ccTextures, ccTextures_length);
592
593 return ExtractFrom(&stream, path);
594}
595#elif !defined CC_BUILD_FILESYSTEM
596/* E.g. GBA/32X don't support textures at all */
597static cc_result ExtractFromFile(const cc_string* path) {

Callers 1

ExtractUserTexturesFunction · 0.85

Calls 5

Stream_ReadonlyMemoryFunction · 0.85
ExtractFromFunction · 0.85
Stream_OpenPathFunction · 0.85
Logger_IOWarn2Function · 0.85
Platform_EncodePathFunction · 0.70

Tested by

no test coverage detected