MCPcopy Create free account
hub / github.com/devkitPro/3ds-hbmenu / fileExists

Function fileExists

source/menu-entry.c:19–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17}
18
19bool fileExists(const char* path)
20{
21 struct stat st;
22 return stat(path, &st) == 0 && S_ISREG(st.st_mode);
23}
24
25bool menuEntryLoadExternalIcon(menuEntry_s* me, const char* filepath) {
26 FILE* iconFile = fopen(filepath, "rb");

Callers 2

menuEntryFileAssocLoadFunction · 0.85
menuEntryLoadFunction · 0.85

Calls 1

statClass · 0.70

Tested by

no test coverage detected