Since I got MZ before getting MV, my plugins are written with MZ in mind, and the bigger the plugins get, the more likely that they CAN'T work with MV. Is there a good way to detect if a plugin is being used in one over the other? I figure the most obvious way is to try calling a function native to MZ, and deciding MV is being used if that fails... but I'd like something a bit less... random-looking? A dev who doesn't look at the code wouldn't notice or care, but a fellow code monkey might be wondering why a ColorManager call(for example) was being tried when there was nothing in the plugin dealing with colors.
Basically I'd like to make all my plugins compatible with both engines without having to code and release a separate version. Ideally I'd detect the engine at startup, have MV and MZ versions of functions with exclusive code, and call the right one based on the engine detected.
Kinda got inspired by reading up on FOSSIL, and thought about doing pretty much the reverse, "retro-proofing" my plugins.
Basically I'd like to make all my plugins compatible with both engines without having to code and release a separate version. Ideally I'd detect the engine at startup, have MV and MZ versions of functions with exclusive code, and call the right one based on the engine detected.
Kinda got inspired by reading up on FOSSIL, and thought about doing pretty much the reverse, "retro-proofing" my plugins.