incbin an exe then OpenURL it?
BlitzMax Forums/BlitzMax Programming/incbin an exe then OpenURL it?
| ||
Is it possible to inbin an exe file and then use openurl to execute the incbin inside of the exe? I am trying to: incbin "level1.exe" and then: OpenURL("incbin::level1.exe") shouldn't this work? How can you do this with Linux? What is the executable extension of a linux exe? |
| ||
What is the executable extension of a linux exe? Linux does not care about extensions in the same way Windows does, and won't use them for something important like this. As a rule this means most binary executables there have no extension, because it serves no useful purpose. At any rate an extension is part of the filename, so if in doubt...look at the file? How can you do this with Linux? The rule with BlitzMax is that if it's in the main (not platform-specific) command set, it's supposed to work without modification on all three platforms. If it doesn't something is set up incorrectly. As for whether this is even possible, I have no idea. Test it and find out? EDIT: ha, totally missed the filename. BladeRunner is right: as with Blitz3D, using separate applications for levels is a terrible idea. Why would you even do that? Last edited 2012 |
| ||
Putting every level in a sepeate .exe seems like a very bad idea to me. You would need pipes and the like to communicate between your main and the levels. Don't do this. Load your level parameters from an extern source but let the main handle them. |
| ||
I know this from opening html-documents, which are included with INCBIN: It does NOT work!. Because the system cares about the handling of the file in this case, it has to be in the directory of the system. The only way to do things like this, is to copy it first anywhere into the directory:IncBin "test.html" .... FileCopy "incbin::test.html" , "C:\temp\test.html" OpenUrl "C:\temp\test.html" by the way I agree with BladeRunner. Don't do that for levels. |
| ||
As i mentioned in another thread, having multiple executables for different levels is not the way to do it. Your main executable is going to be exponentially larger than it needs to be, for a start. Also any changes you make to core code will need to be done multiple times and recompiled. |