Unless you're in a country where the laws are abysmally bad, that shouldn't be an issue. In the USA, at least, it's a legal right to reverse engineer for compatibility purposes. Making a compatibility program/plugin for an unsupported platform sounds valid enough to me.