You must export your changes from the program, then import them into your cartridge/emulator environment.
It's not difficult to understand. If the emulator does not pick up the changes, then you did not import your save data to the emulator correctly. Restoring save states does not reload the save file, only restarting emulation does -- assuming the emulator's implementation reads the save file from disk at that time.