The law is:

"If you have a ROM/ISO downloaded onto your computer, you must delete it in a period of 24 hours."

But, if you need an emulator to run it, it shouldn't be illegal.
Besides, a person made the emulator, why would it be illegal?