diff options
author | Justin Clarke Casey | 2008-07-29 14:28:08 +0000 |
---|---|---|
committer | Justin Clarke Casey | 2008-07-29 14:28:08 +0000 |
commit | e7b3e7b749388dd8029ed7de6208fdf557e91695 (patch) | |
tree | 2ae4dcc0bdf9567bb8dbc6e9905bb90696537d9a /OpenSim/Region/Application/OpenSim.cs | |
parent | Fixed the missing reference to a texture in TexturesAssetSet.xml , reported i... (diff) | |
download | opensim-SC-e7b3e7b749388dd8029ed7de6208fdf557e91695.zip opensim-SC-e7b3e7b749388dd8029ed7de6208fdf557e91695.tar.gz opensim-SC-e7b3e7b749388dd8029ed7de6208fdf557e91695.tar.bz2 opensim-SC-e7b3e7b749388dd8029ed7de6208fdf557e91695.tar.xz |
* Put in stub code for inventory backup.
* No user functionality yet (and not for quite some time)
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Application/OpenSim.cs | 27 |
1 files changed, 24 insertions, 3 deletions
diff --git a/OpenSim/Region/Application/OpenSim.cs b/OpenSim/Region/Application/OpenSim.cs index 27b6694..66c7c48 100644 --- a/OpenSim/Region/Application/OpenSim.cs +++ b/OpenSim/Region/Application/OpenSim.cs | |||
@@ -323,6 +323,10 @@ namespace OpenSim | |||
323 | case "save-oar": | 323 | case "save-oar": |
324 | SaveOar(cmdparams); | 324 | SaveOar(cmdparams); |
325 | break; | 325 | break; |
326 | |||
327 | case "save-inv": | ||
328 | SaveInv(cmdparams); | ||
329 | break; | ||
326 | 330 | ||
327 | case "plugin": | 331 | case "plugin": |
328 | m_sceneManager.SendCommandToPluginModules(cmdparams); | 332 | m_sceneManager.SendCommandToPluginModules(cmdparams); |
@@ -724,9 +728,13 @@ namespace OpenSim | |||
724 | } | 728 | } |
725 | } | 729 | } |
726 | 730 | ||
731 | /// <summary> | ||
732 | /// Load a whole region from an opensim archive. | ||
733 | /// </summary> | ||
734 | /// <param name="cmdparams"></param> | ||
727 | protected void LoadOar(string[] cmdparams) | 735 | protected void LoadOar(string[] cmdparams) |
728 | { | 736 | { |
729 | m_log.Warn("[CONSOLE]: Experimental functionality. Please don't rely on this."); | 737 | m_log.Warn("[CONSOLE]: Experimental functionality. Please don't rely on this yet."); |
730 | m_log.Warn("[CONSOLE]: See http://opensimulator.org/wiki/OpenSim_Archives for more details."); | 738 | m_log.Warn("[CONSOLE]: See http://opensimulator.org/wiki/OpenSim_Archives for more details."); |
731 | 739 | ||
732 | if (cmdparams.Length > 0) | 740 | if (cmdparams.Length > 0) |
@@ -739,9 +747,13 @@ namespace OpenSim | |||
739 | } | 747 | } |
740 | } | 748 | } |
741 | 749 | ||
750 | /// <summary> | ||
751 | /// Save a region to a file, including all the assets needed to restore it. | ||
752 | /// </summary> | ||
753 | /// <param name="cmdparams"></param> | ||
742 | protected void SaveOar(string[] cmdparams) | 754 | protected void SaveOar(string[] cmdparams) |
743 | { | 755 | { |
744 | m_log.Warn("[CONSOLE]: Experimental functionality. Please don't rely on this."); | 756 | m_log.Warn("[CONSOLE]: Experimental functionality. Please don't rely on this yet."); |
745 | m_log.Warn("[CONSOLE]: See http://opensimulator.org/wiki/OpenSim_Archives for more details."); | 757 | m_log.Warn("[CONSOLE]: See http://opensimulator.org/wiki/OpenSim_Archives for more details."); |
746 | 758 | ||
747 | if (cmdparams.Length > 0) | 759 | if (cmdparams.Length > 0) |
@@ -752,7 +764,16 @@ namespace OpenSim | |||
752 | { | 764 | { |
753 | m_sceneManager.SaveCurrentSceneToArchive(DEFAULT_OAR_BACKUP_FILENAME); | 765 | m_sceneManager.SaveCurrentSceneToArchive(DEFAULT_OAR_BACKUP_FILENAME); |
754 | } | 766 | } |
755 | } | 767 | } |
768 | |||
769 | /// <summary> | ||
770 | /// Save inventory to a file. | ||
771 | /// </summary> | ||
772 | /// <param name="cmdparams"></param> | ||
773 | protected void SaveInv(string[] cmdparams) | ||
774 | { | ||
775 | m_log.Error("[CONSOLE]: This has not been implemented yet!"); | ||
776 | } | ||
756 | 777 | ||
757 | private static string CombineParams(string[] commandParams, int pos) | 778 | private static string CombineParams(string[] commandParams, int pos) |
758 | { | 779 | { |