private static void MapDataSave(string mapName = "", string mapPath = "") { mapDataFilePath = mapPath; mapDataFileName = mapName; XCPManager.currentXCP.xpcMaps[mapDataXCPIndex] = MapDataQuery.QueryMapData(); MapDataExportToFile(XCPManager.currentXCP.xpcMaps[mapDataXCPIndex], mapPath, mapDataFileName + ".berrymap"); UiManager.ShowNotification("Map Saved", 0); ScenePrimer.curPrimerComponent.PrimerMapUpdate(); mapDataIsSaved = true; }