#include "Utilities.hpp" #include #include using namespace godot; using namespace OpenVic; Ref OpenVic::load_godot_image(String const& path) { if (path.begins_with("res://")) { ResourceLoader* loader = ResourceLoader::get_singleton(); return loader ? loader->load(path) : nullptr; } else { return Image::load_from_file(path); } }