Bennu Game Development

English Forums => Documentation => Topic started by: SplinterGU on September 12, 2007, 05:47:10 PM

Title: [LANG][TOOL] .imp/.import files
Post by: SplinterGU on September 12, 2007, 05:47:10 PM
These files are a list of modules to load.

They can be of 2 types, global or by module.

Global, they have the name "bgdc.imp" and or "bgdc.import", and they should be in the compiler's directory.

Local, they are by project, the name is "<the prg's name>.imp" and or "<the prg's name>.import", and they should be in the .prg's directory.

The names of the modules should specify without extension, for example, for "mod_cd.dll" or "mod_cd.so", only "mod_cd" is necessary to put. (Without ")

One module by line should be specified.

NOTE:
This feature is optional, you can use the classic "import" keyword in your prg.
This file only is useful in compiler's time.
Title: Re: .imp/.import files
Post by: Sandman on September 12, 2007, 06:53:52 PM
This is cool.

Does the original import file work without the ".dll" or ".so" part as well? And what are all the advantages over the original import system?
Title: Re: .imp/.import files
Post by: SplinterGU on September 12, 2007, 06:55:37 PM
Only that you not need modify your proyects...
It's same that use import in your prg.