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.

godot.core.defs.GodotError save (
  const(String) path,
  Resource resource,
  const(long) flags = 0L
) nothrow @nogc;