The attached patch kills the track module and defines a TrackLoader
singleton class as part of tgfdata.
It seems to me that using the 'module' abstraction serves little
purpose in this case. With the patch applied loading a track is as
simple as 'TrackLoader::load(filename)' whereas the current approach
requires a lot of boilerplate code to first load and verify the
Moreover there is no more need for all the pointer setting/getting and
passing that was happening in the two racing modules, in tgfdata's
tracks.cpp, in the legacymenu module and in the trackgen tool.
Thanks for your feedback !
ps. the attached patch depends on the changes in ticket #868