#869 Make the track loader a standard class

to be defined
new
nobody
None
enhancement
trivial
Gaming framework
2.0.0
2014-06-09
2013-12-25
rcrdo
No

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
module.

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

1 Attachments

Discussion

  • rcrdo
    rcrdo
    2013-12-25

    Zipped since the original diff is 300KB+

     
  • simon wood
    simon wood
    2014-06-09

    • Description has changed:

    Diff:

    • assigned_to: Boris Antonevich --> nobody