How to make a copy of MAME core and make it create different folders?

I’m trying to make a mame2019 core so it’s separate than the main mame core with different cfg folders.

I made a copy of the core and renamed it to mame2019_libretro and then edited the .info file to change the database name and all other names accordingly. However, the core is still shown as “mame” and it still saves in the same folders.

I use mame to emulate different devices and need different core options. Core options can’t be saved as directory so all systems share the same core options. The only solution is to use an older core with a different name like mame2016 but this is too old and some systems or games are not supported.

You would have to change the internal name in the libretro.cpp and re-compile.

Can’t do that myself as this is way over my head.

But thanks for the response.