|
From: James T. <ja...@fl...> - 2023-07-07 05:28:06
|
> On 4 Jul 2023, at 22:12, Florent Rougon <f.r...@fr...> wrote: > > So, we'd add one field, say: > > custom_scenery_path VARCHAR > > FGAirport would make this path publically accessible (or the empty > string if only the default apt.dat.gz is used for the airport in > question), say via FGAirport::customSceneryPath() which would return a > null SGPath for the default apt.dat.gz (I'll modify the type of > NavDataCache::DatFilesGroupInfo::paths in NavDataCache.hxx so that > NavDataCache::updateListsOfDatFiles() can mark the “default dat file” in > a special way [for the apt, fix and nav types — the other types aren't > searched in scenery dirs]). And finally, XMLLoader::findAirportData() > could query FGAirport::customSceneryPath() in order to know if the > airport has apt.dat data from a custom scenery dir and, in such a case, > which dir it is (namely, the path I noted as 'p' above). > > (There will be a few little changes to APTLoader and NavDataCache, but > in parts I know well.) > > Does that sound good? Yes, absolutely fine with me, and a good solution. Kind regards, James |