This seems to be legacy code from what I can tell. Someone in IRC said it was from a time before scripts could be compiled. Regardless, the easiest solution is replacing it with something like:
Con::evaluate("exec(\"main.cs\");");
Of course some of the code above it would have to be reworked for this case, but that's the general idea. Once it's executed through normal means it can be swapped out for a compiled version.
Andrew Mac
This seems to be legacy code from what I can tell. Someone in IRC said it was from a time before scripts could be compiled. Regardless, the easiest solution is replacing it with something like:
Con::evaluate("exec(\"main.cs\");");Of course some of the code above it would have to be reworked for this case, but that's the general idea. Once it's executed through normal means it can be swapped out for a compiled version.