[Gtkradiant] [Bug 145] move the interfaces description to a config file

gtkradiant@zerowing.idsoftware.com gtkradiant@zerowing.idsoftware.com
Mon, 13 Aug 2001 10:57:27 -0500


http://zerowing.idsoftware.com/bugzilla/show_bug.cgi?id=145

ttimo@idsoftware.com changed:

           What    |Old Value                   |New Value
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
           Platform|                            |All
            Summary|move the required interfaces|move the interfaces
                   |description out in a config |description to a config file
                   |file                        |
   Target Milestone|1.1-TA.1                    |1.2



------- Additional Comments From ttimo@idsoftware.com  2001-08-13 10:57 -------
I was saying .. 
using baseq3/scripts/interfaces.xconf (just a wild guess on the name)

for Quake3 the file would be:
<?xml version="1.0" ?>
<config version="1">
  <interface>
    <major>
    filesystem module
    </major>
    <minor>
    quake3
    </minor>
  </interface>
  <interface>
    <major>
    shader module
    </major>
  </interface>
  <interface>
    <major>
    image module
    </major>
    <minor>
    jpg
    </minor>
  </interface>
  <interface>
    <major>
    image module
    </major>
    <minor>
    tga
    </minor>
  </interface>
  <interface>
    <major>
    map module
    </major>
    <minor>
    quake3
    </minor>
  </interface>
</config>

instead of:

  { { &QERFileSystemTable_GUID, "filesystem module", "quake3" },
    &g_FileSystemTable, sizeof (g_FileSystemTable), NULL },
  { { &QERShadersTable_GUID, "shader module", NULL },
    &g_ShadersTable, sizeof (g_ShadersTable), NULL },
  { { &QERPlugImageTable_GUID, "image module", "jpg" },
    &g_ImageTable1, sizeof (g_ImageTable1), NULL },
  { { &QERPlugImageTable_GUID, "image module", "tga" },
    &g_ImageTable2, sizeof (g_ImageTable2), NULL },
  { { &QERPlugMapTable_GUID, "map module", "quake3" },
    &g_MapTable, sizeof(g_MapTable), NULL }

plus all related minor changes, maybe thinking of a standardized way of reading 
the file and grabbing the right function table pointers given their minor/major 
name. We still have them static and hardcoded into the editor, it shouldn't be 
a pain.