MCPcopy Create free account
hub / github.com/XorTroll/Goldleaf / GetFileIndexByName

Method GetFileIndexByName

Goldleaf/source/fs/fs_PFS0.cpp:124–133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

122 }
123
124 u32 PFS0::GetFileIndexByName(const std::string &file_name) {
125 u32 idx = 0;
126 for(const auto &pfs0_file: this->files) {
127 if(strcasecmp(pfs0_file.name.c_str(), file_name.c_str()) == 0) {
128 return idx;
129 }
130 idx++;
131 }
132 return InvalidFileIndex;
133 }
134
135}

Callers 2

PrepareInstallationMethod · 0.80
WriteContentsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected