Browse Source

Add a method to set the 'MainDotCsDir' when no main.cs is available

Lukas Joergensen 7 years ago
parent
commit
13eb392c98
1 changed files with 5 additions and 0 deletions
  1. 5 0
      Engine/source/platform/platformFileIO.cpp

+ 5 - 0
Engine/source/platform/platformFileIO.cpp

@@ -620,3 +620,8 @@ DefineEngineFunction( getUserHomeDirectory, const char *, (), , "getUserHomeDire
 {
 {
    return Platform::getUserHomeDirectory();
    return Platform::getUserHomeDirectory();
 }
 }
+
+DefineEngineFunction(setMainDotCsDir, void, (const char* path), , "setMainDotCsDir()")
+{
+   Platform::setMainDotCsDir(StringTable->insert(path));
+}