diff options
author | kobewi <kobewi4e@gmail.com> | 2022-06-03 01:33:42 +0200 |
---|---|---|
committer | kobewi <kobewi4e@gmail.com> | 2022-07-29 19:53:09 +0200 |
commit | c3606cb5f3ab82248cac0d748bb291aa978b0b58 (patch) | |
tree | 8d5e0c810a7cb1732dcd4754515cf5325bcea10f /tests/core/io/test_resource.h | |
parent | ba3734e69a2f2a4f6c4f908958268762fd805cd2 (diff) |
Swap arguments of ResourceSaver.save()
Diffstat (limited to 'tests/core/io/test_resource.h')
-rw-r--r-- | tests/core/io/test_resource.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/core/io/test_resource.h b/tests/core/io/test_resource.h index f94349fdd2..c880ca7d2a 100644 --- a/tests/core/io/test_resource.h +++ b/tests/core/io/test_resource.h @@ -76,8 +76,8 @@ TEST_CASE("[Resource] Saving and loading") { resource->set_meta("other_resource", child_resource); const String save_path_binary = OS::get_singleton()->get_cache_path().plus_file("resource.res"); const String save_path_text = OS::get_singleton()->get_cache_path().plus_file("resource.tres"); - ResourceSaver::save(save_path_binary, resource); - ResourceSaver::save(save_path_text, resource); + ResourceSaver::save(resource, save_path_binary); + ResourceSaver::save(resource, save_path_text); const Ref<Resource> &loaded_resource_binary = ResourceLoader::load(save_path_binary); CHECK_MESSAGE( |