Function ResourceFormatLoader.load

Loads a resource when the engine finds this loader to be compatible. If the loaded resource is the result of an import, original_path will target the source file. Returns a Resource object on success, or an error constant in case of failure.

Variant load (
  const(String) path,
  const(String) original_path
) nothrow @nogc;