Remake of the cache clear function of ImageManager

Hello everybody,

i remade parts of the cache clear function of the ImageManager:
brogar_imagecache.zip

This plugin is licensed under LGPL3,
see https://www.gnu.org/licenses/lgpl-3.0.html
You can use it for commercial and non-commercial projects.
It would be nice if you mentioned my name, but it isn't necessary.

Most of the Code of this plugin is directly from RPGMaker MZ,
so the MZ license is included as well.
The plugin probably does not work with RPGMaker MV.

----

This plugin will change the way the clear function of the
ImageManager works. It will behave the same for systems with
up to 4 GB of RAM, but with systems larger than 4GB, it will
ignore the clear command when there are not enough images in
the cache (200 x amount of GB above 4G😎.
So for example it allows 800 pictures on a system with 8GB and
will delete the whole cache once that limit is reached
Could you please add your terms?
Hmm, this will become handy for mobile devices. Too bad I don't have a 4GB Ram device to test it.
@slimmmeiske2: added the terms, thanks for reminding me 🙂

@Lee Sang: How much Ram does your device have? You could adapt the plugin for testing with smaller devices, but i didn't do that since i tested it on PC, because i found it strange having 8, 16 or 32GB and having RPGMaker delete everything on map change even when it was only 350MB large 😛 I chose 4GB as the limit, because on PC windows takes up about that amount most of the time. On mobile devices the operating system usually takes up much less Ram.

Original thread: https://forums.rpgmakerweb.com/threads/remake-of-the-cache-clear-function-of-imagemanager.156268/