Game Development Community

Hiding the *main* main.cs in a dso

by Ken Finney · in Torque Game Engine · 09/05/2001 (8:34 pm) · 3 replies

examples/main.cs doesn't get compiled into a dso form. Is there an easy way to do this ?

Regards,
CERDIP

#1
09/05/2001 (10:18 pm)
Well, since main.cs is referenced directly in source code (game/main.cc - in initGame() around Line 355) there might not be a very easy way of doing it (depends on whether or not Con::executef(...) works the same way on compiled scripts as it does uncompiled scripts)

To get a dso of it you might be able to make a copy of it, put the copy in a subdirectory, and then put an exec() command in the real main.cs calling the copy.. the resulting DSO (assuming it compiles) would be what you were looking for...

-nohbdy
#2
09/06/2001 (9:14 am)
Hi,

If you are wanting to do this to hide script code, all I did was make the main.cs be a stub with one line, simply exec'ing the first of the compiled scripts.

David
#3
09/06/2001 (6:52 pm)
thanks David - I tried that, and it didn't go for some reason. I'll revisit it again on the weekend.