MCPcopy Create free account
hub / github.com/GarageGames/Torque2D / isMainDotCsPresent

Function isMainDotCsPresent

engine/source/platformAndroid/AndroidFileio.cpp:785–795  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

783}
784
785static bool isMainDotCsPresent(char *dir)
786{
787 char maincsbuf[MAX_MAC_PATH_LONG];
788 const char *maincsname = "/main.cs";
789 const U32 len = dStrlen(dir) + dStrlen(maincsname)+1;
790 AssertISV(len < MAX_MAC_PATH_LONG, "Sorry, path is too long, I can't run from this folder.");
791
792 dSprintf(maincsbuf,MAX_MAC_PATH_LONG,"%s%s", dir, maincsname);
793
794 return Platform::isFile(maincsbuf);
795}
796
797//-----------------------------------------------------------------------------
798/// Finds and sets the current working directory.

Callers

nothing calls this directly

Calls 2

dStrlenFunction · 0.70
dSprintfFunction · 0.70

Tested by

no test coverage detected