You are not logged in.

Read the FAQ and Knowledge Base before posting.
WiFi not emulated and not supported!!
We won't make a 3DS/2DS emulator.



#1 2017-02-28 21:15:55

PypeBros
Member
Registered: 2010-12-11
Posts: 13

--load-type and --cflash-path

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.


10 years of homebrew thanks to desmume

Offline

#2 2017-02-28 21:24:15

zeromus
Radical Ninja
Registered: 2009-01-05
Posts: 4,558

Re: --load-type and --cflash-path

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.

Offline

#3 2017-02-28 21:31:47

PypeBros
Member
Registered: 2010-12-11
Posts: 13

Re: --load-type and --cflash-path

As far as I've been able to see, tryPatch ended up being called, with a NULL pointer instead of romdata.


10 years of homebrew thanks to desmume

Offline

#4 2017-02-28 22:32:16

zeromus
Radical Ninja
Registered: 2009-01-05
Posts: 4,558

Re: --load-type and --cflash-path

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

Offline

#5 2017-02-28 22:42:04

PypeBros
Member
Registered: 2010-12-11
Posts: 13

Re: --load-type and --cflash-path

sounds fair. If I got bored of adding one more word on the command line, I'll just find a workaround on my own copy ;-)

Live long and prosper.


10 years of homebrew thanks to desmume

Offline

Board footer

Powered by FluxBB