MCPcopy Create free account
hub / github.com/EasyRPG/Player / Read

Method Read

src/platform.cpp:207–230  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

205}
206
207bool Platform::Directory::Read() {
208#if defined(__vita__)
209 assert(dir_handle >= 0);
210
211 valid_entry = ::sceIoDread(dir_handle, &entry) > 0;
212#elif defined(_WIN32)
213 assert(dir_handle != INVALID_HANDLE_VALUE);
214
215 if (!first_entry) {
216 valid_entry = FindNextFile(dir_handle, &entry) != 0;
217 } else {
218 valid_entry = true;
219 first_entry = false;
220 }
221#else
222 assert(dir_handle);
223
224 entry = ::readdir(dir_handle);
225
226 valid_entry = entry != nullptr;
227#endif
228
229 return valid_entry;
230}
231
232std::string Platform::Directory::GetEntryName() const {
233 assert(valid_entry);

Callers 3

GetDirectoryContentMethod · 0.45
platform.cppFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected