-
Notifications
You must be signed in to change notification settings - Fork 862
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix unused resources clean up to keep resources used in effects #5560
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm as the tests are clean, but I'll let 4ian approve this one on the logic side
ExposeVideo(resourceName); | ||
return; | ||
} | ||
gd::LogWarning("Unexpected resource type: " + resourceType + " for: " + resourceName); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should this be a LogError? This feels more important than just a warning to me
REQUIRE(worker.bitmapFonts.size() == 1); | ||
REQUIRE(worker.bitmapFonts[0] == "res3"); | ||
REQUIRE(worker.images.size() == 1); | ||
REQUIRE(worker.images[0] == "res1"); | ||
REQUIRE(worker.audios.size() == 1); | ||
REQUIRE(worker.audios[0] == "res4"); | ||
} | ||
|
||
SECTION("Can find resource usage in external events") { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
love the tests
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1, nice and clear
Changes
Project::ExposeResources
intoResourceExposer
and make it useProjectBrowserHelper
.