You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-12-02 16:48:55 +00:00
Merge pull request #86079 from dsnopek/required-args
Add `RequiredParam<T>` and `RequiredResult<T>` to mark `Object *` arguments and return values as required
This commit is contained in:
@@ -167,7 +167,7 @@ void ResourceLoader::_bind_methods() {
|
||||
|
||||
////// ResourceSaver //////
|
||||
|
||||
Error ResourceSaver::save(const Ref<Resource> &p_resource, const String &p_path, BitField<SaverFlags> p_flags) {
|
||||
Error ResourceSaver::save(RequiredParam<Resource> p_resource, const String &p_path, BitField<SaverFlags> p_flags) {
|
||||
return ::ResourceSaver::save(p_resource, p_path, p_flags);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user