Function ResourceSaverSingleton.save
Saves a resource to disk to the given path, using a ResourceFormatSaver that recognizes the resource object.
The flags bitmask can be specified to customize the save behavior.
Returns constant OK on success.