Re: [tsc-devel] Re: Was the Apple code removed from main.cpp?
Quintus |
Fri, 23 Oct 2015 17:24:24 UTC
datahead <…r@f…> writes:
> If we have every reason to believe that Apple systems should be able
> to find the resources due to our ResourceManager changes, I think this
> makes sense. I am not quite as familiar with this sub system, so I'll
> take your advice.
It just looks where the “tsc” executable is located (using an
OS-specific syscall) and then searches the directories relative to that
file. This is something I would say works on Apple systems the same way
as on other systems. The only thing that is missing is the OS-specific
syscall in the resource manager to make this work (if you tried to
compile on Apple, you’d get blown out by a preprocessor #error directive
signalling that you must implement the function returning the path to
the “tsc” executable for that OS first).
In case you wonder, I have protected all OS-specific functions in TSC
with #error lines. This allows someone who wants to port TSC to another
platform to spot very easily the points where OS-specific code is
required. All of these spots are marked with an #error directive that
will stop the compilation once encountered.
Vale,
Quintus
--
#!/sbin/quintus
Blog: http://www.guelkerdev.de
GnuPG key: F1D8799FBCC8BC4F