X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=radiant%2Fplugin.cpp;h=2c3d6dd0cc5e05570c302caa3231f32e76589683;hb=2621000e558bcc3d533cfc5b168cbb0c73628bfa;hp=a43572aaf8c194154538b26ee36d7349521b4bbf;hpb=7fc621fc78d0e040dc2c12f38dc53dd9048215dc;p=xonotic%2Fnetradiant.git diff --git a/radiant/plugin.cpp b/radiant/plugin.cpp index a43572aa..2c3d6dd0 100644 --- a/radiant/plugin.cpp +++ b/radiant/plugin.cpp @@ -113,6 +113,10 @@ const char* TextureBrowser_getSelectedShader(){ return TextureBrowser_GetSelectedShader( GlobalTextureBrowser() ); } +const char* getGameFile(){ + return g_GamesDialog.m_sGameFile.c_str(); +} + class RadiantCoreAPI { _QERFuncTable_1 m_radiantcore; @@ -124,10 +128,12 @@ RadiantCoreAPI(){ m_radiantcore.getEnginePath = &EnginePath_get; m_radiantcore.getLocalRcPath = &LocalRcPath_get; m_radiantcore.getAppPath = &AppPath_get; + m_radiantcore.getDataPath = &DataPath_get; m_radiantcore.getGameToolsPath = &GameToolsPath_get; m_radiantcore.getSettingsPath = &SettingsPath_get; m_radiantcore.getMapsPath = &getMapsPath; + m_radiantcore.getGameFile = &getGameFile; m_radiantcore.getGameName = &gamename_get; m_radiantcore.getGameMode = &gamemode_get; @@ -138,15 +144,6 @@ RadiantCoreAPI(){ m_radiantcore.getGameDescriptionKeyValue = &GameDescription_getKeyValue; m_radiantcore.getRequiredGameDescriptionKeyValue = &GameDescription_getRequiredKeyValue; - m_radiantcore.attachGameToolsPathObserver = Radiant_attachGameToolsPathObserver; - m_radiantcore.detachGameToolsPathObserver = Radiant_detachGameToolsPathObserver; - m_radiantcore.attachEnginePathObserver = Radiant_attachEnginePathObserver; - m_radiantcore.detachEnginePathObserver = Radiant_detachEnginePathObserver; - m_radiantcore.attachGameNameObserver = Radiant_attachGameNameObserver; - m_radiantcore.detachGameNameObserver = Radiant_detachGameNameObserver; - m_radiantcore.attachGameModeObserver = Radiant_attachGameModeObserver; - m_radiantcore.detachGameModeObserver = Radiant_detachGameModeObserver; - m_radiantcore.XYWindowDestroyed_connect = XYWindowDestroyed_connect; m_radiantcore.XYWindowDestroyed_disconnect = XYWindowDestroyed_disconnect; m_radiantcore.XYWindowMouseDown_connect = XYWindowMouseDown_connect;