ported PrtView plugin
[xonotic/netradiant.git] / radiant / plugin.cpp
index 3cf53115310f9a187fbe547c1f83c3e60d39fd5f..cd85e2a5658f77534ea4b4503c809c26fea31f64 100644 (file)
@@ -93,6 +93,11 @@ const char* GameDescription_getRequiredKeyValue(const char* key)
   return g_pGameDescription->getRequiredKeyValue(key);
 }
 
+const char* mapname_get()
+{
+  return Map_Name(g_map);
+}
+
 class RadiantCoreAPI
 {
   _QERFuncTable_1 m_radiantcore;
@@ -110,6 +115,8 @@ public:
     m_radiantcore.getGameName = &gamename_get;
     m_radiantcore.getGameMode = &gamemode_get;
 
+    m_radiantcore.getMapName = &mapname_get;
+
     m_radiantcore.getGameDescriptionKeyValue = &GameDescription_getKeyValue;
     m_radiantcore.getRequiredGameDescriptionKeyValue = &GameDescription_getRequiredKeyValue;