First implementation of read/write file access. We need better security for this though, you could potentially overwrite any file on the local machine the user of world has write access to atm.

This commit is contained in:
KimLS committed 2014-10-23 14:35:16 -07:00
1 parent 5a7a2b0aef
commit 91ecf759e3
3 files changed
+56 -9

No files matched your search

+2 -1
View File
@@ -17,7 +17,8 @@ void register_authorized_methods()
authorized_methods["Zone.GetInitialEntityPositions"] = std::make_pair(10, handle_method_zone);
authorized_methods["Zone.MoveEntity"] = std::make_pair(10, handle_method_zone);
authorized_methods["Zone.Action"] = std::make_pair(10, handle_method_zone);
authorized_methods["Quest.GetScript"] = std::make_pair(10, handle_method_world);
authorized_methods["World.GetFileContents"] = std::make_pair(10, handle_method_world);
authorized_methods["World.SaveFileContents"] = std::make_pair(10, handle_method_world);
}
void register_unauthorized_methods()