Fixed an issue where reloading using Ctrl+r would sometimes not update modified image files.

This commit is contained in:
Leon Styhre 2022-08-14 21:31:59 +02:00
parent 899ace3eb6
commit 0dfdf1c20c

View file

@ -94,6 +94,7 @@ bool SystemView::input(InputConfig* config, Input input)
if (config->getDeviceId() == DEVICE_KEYBOARD && input.value && input.id == SDLK_r &&
SDL_GetModState() & KMOD_LCTRL && Settings::getInstance()->getBool("Debug")) {
LOG(LogDebug) << "SystemView::input(): Reloading all";
TextureResource::manualUnloadAll();
ViewController::getInstance()->reloadAll();
return true;
}