Remove hacks for GlueTheGiant, will need to be handled differently

This commit is contained in:
falkTX 2022-07-25 17:25:37 +01:00
parent 8ed1859f92
commit 65244f1979
2 changed files with 26 additions and 20 deletions

View file

@ -56,22 +56,6 @@ std::string system(std::string filename) {
// get plugin resource
std::string plugin(plugin::Plugin* plugin, std::string filename) {
DISTRHO_SAFE_ASSERT_RETURN(plugin != nullptr, {});
// always use dark scheme
if (plugin->slug == "GlueTheGiant")
{
if (filename == "res/BusDepot.svg"
|| filename == "res/BusRoute.svg"
|| filename == "res/EnterBus.svg"
|| filename == "res/ExitBus.svg"
|| filename == "res/GigBus.svg"
|| filename == "res/MetroCityBus.svg"
|| filename == "res/MiniBus.svg"
|| filename == "res/Road.svg"
|| filename == "res/SchoolBus.svg")
{
filename = filename.substr(0, filename.size()-4) + "_Night.svg";
}
}
return system::join(plugin->path, filename);
}