Hello. I just realised that trying to use a dldi-function without --load-type=1 would end up in desmume crashing (version 0.9.11, ubuntu 16.04) because there would be no ROM image to patch. I thought it could be helpful to automate the setting of load_type to 1 as soon as a --cflash-* command is found on the list of arguments.
Good job on the emulator, btw.
the whole internal distinctions between load types is garbage and will be fixed in the future. I'm surprised this crashes (I would expect desmume to skip the patch and your rom to just malfunction) and I dont know why it does, but it won't after the load types are fixed so that patches can apply in either scenario.
oh well, since you took the time to report it, and gave me a hint, I spent the 2 seconds it took to fix it. fix it from crashing, anyway. now it will just malfunction as designed