MCPcopy Create free account
hub / github.com/TheOfficialFloW/VitaShell / isCustomHomebrew

Function isCustomHomebrew

refresh.c:44–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42#define MAX_DLC_PER_TITLE 1024
43
44int isCustomHomebrew(const char* path)
45{
46 uint32_t work[RIF_SIZE/4];
47
48 if (ReadFile(path, work, sizeof(work)) != sizeof(work))
49 return 0;
50
51 for (int i = 0; i < sizeof(work) / sizeof(uint32_t); i++)
52 if (work[i] != 0)
53 return 0;
54
55 return 1;
56}
57
58int refreshNeeded(const char *app_path, const char* content_type)
59{

Callers 1

refreshAppFunction · 0.85

Calls 1

ReadFileFunction · 0.85

Tested by

no test coverage detected