[Gtkradiant] [Bug 367] New: need API for plugins to retrieve their installation path

gtkradiant@zerowing.idsoftware.com gtkradiant@zerowing.idsoftware.com
Sun, 27 Jan 2002 14:13:42 -0600


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

           Summary: need API for plugins to retrieve their installation path
           Product: GtkRadiant
           Version: 1.2-nightly
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: editor
        AssignedTo: ttimo@idsoftware.com
        ReportedBy: ttimo@idsoftware.com


That's needed when plugins need to load files of their own. We used to rely on
pfn_GetQERPath, but it doesn't do the job anymore due to multiple locations
being scanned for modules.

<TTimo> exclusion list stuff
<TTimo> that's not in the linux installer yet
<TTimo> gonna fix
<djbob> hmm
<djbob> something about that
<djbob> it's loaded on a per game basis atm
<djbob> as plugin cant get the app path
<djbob> so would it be possible to put them in the game packs, at least for the
moment?
  NICK  W2k[away] is now known as W2k
<TTimo> I don't understand
<TTimo> different files for different games is that what you mean
<djbob> well, the same, they just need to be installed in the game dirs
<djbob> instead of the main radiant one
<TTimo> ah
<TTimo> so you mean you need access to g_strAppPath
<TTimo> instead of g_strGameToolsPath you have now
<djbob> well
<djbob> do any of the plugins use that apart from bobtoolz?
<djbob> if not, we could switch it back to app for the moment
<TTimo> curry and pk3man seem to load stuff in bitmaps/ below their install
<TTimo> do they have a problem finding their files too
<djbob> lemme see
<djbob> seems not
<djbob> i have neither of the projects tho
<TTimo> what is the function used to retrieve the path
<TTimo> I guess we should just change it to give the path of the plugin
<djbob> g_FuncTable.m_pfnGetQERPath()
<TTimo> mh
<TTimo> that cannot just be changed like that
<djbob> indeed
<djbob> i dont know why it WAS
<djbob> i didnt even know till after 1.2.1 was released
<TTimo> we probably need to do something so that a plugin can explicitely
retrieve the path in which it has been installed
<djbob> yeah
<TTimo> could duplicate the install
<TTimo> but it would mean for other plugins too
<TTimo> that sucks



------- You are receiving this mail because: -------
Whoops!  I have no idea!