mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 09:28:15 +03:00
Reload window icon when mounting and unmounting assets
The window icon is simply another asset that can be customized by level makers. And in fact, one of my levels changes the window icon. It's simply named VVVVVV.png, but it doesn't sit in the graphics folder, rather it sits in the root VVVVVV directory. I noticed that this asset was missed when per-level assets loading was added, so I decided to add it in. There's a NULL check on screenbuffer because reloadresources() gets called before screenbuffer's init() does.
This commit is contained in:
@@ -3242,6 +3242,11 @@ void Graphics::reloadresources() {
|
||||
images.push_back(grphx.im_image11);
|
||||
images.push_back(grphx.im_image12);
|
||||
|
||||
if (screenbuffer != NULL)
|
||||
{
|
||||
screenbuffer->LoadIcon();
|
||||
}
|
||||
|
||||
music.init();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user