MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / valid_file_name

Function valid_file_name

ogsr_engine/xrGame/console_commands.cpp:487–500  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

485};
486
487bool valid_file_name(LPCSTR file_name)
488{
489 LPCSTR I = file_name;
490 LPCSTR E = file_name + xr_strlen(file_name);
491 for (; I != E; ++I)
492 {
493 if (!strchr("/\\:*?\"<>|", *I))
494 continue;
495
496 return (false);
497 };
498
499 return (true);
500}
501
502#include "UIGameCustom.h"
503#include "HUDManager.h"

Callers 1

ExecuteMethod · 0.85

Calls 1

xr_strlenFunction · 0.50

Tested by

no test coverage detected