Dosbox reset without close

Developer's Forum, for discussion of bugs, code, and other developmental aspects of DOSBox.

Dosbox reset without close

Postby theelf » 2019-8-04 @ 12:54

Hi, sorry if this is not the right forum. Sorry my english

I was checking dosbox source, because i was thinking to add a "reset" function

I discover there is a "control-alt-home" that close dosbox, and open again, but this break all magic :happy:

My idea is just a reset keyboard combination, like a reset button, i want to forget im in windows, but sadly MANY games need a restart because no proper quit funcion, or hangs, etc and every time this happens, the magic is gone... im not in "DOS" anymore

Any ideas how to implement, will be appreciated. I dont ask developers to do, just i will try myself, but accept ideas

Thanks
User avatar
theelf
Member
 
Posts: 179
Joined: 2011-9-25 @ 19:39

Re: Dosbox reset without close

Postby theelf » 2019-9-02 @ 19:04

Hi, any ideas?

thanks
User avatar
theelf
Member
 
Posts: 179
Joined: 2011-9-25 @ 19:39

Re: Dosbox reset without close

Postby TheGreatCodeholio » 2019-9-03 @ 06:06

DOSBox-X has a good example on how to do this.

There's already code to exit DOSBox SVN if throwing an int(0), DOSBox-X throws an int(3) to break out of emulation and emulate a reset.

This might be a good starting point:

https://github.com/joncampbell123/dosbo ... .cpp#L1311
DOSBox-X project: more emulation better accuracy.
DOSLIB and DOSLIB2: Learn how to tinker and hack hardware and software from DOS.
User avatar
TheGreatCodeholio
Oldbie
 
Posts: 694
Joined: 2011-8-18 @ 20:15
Location: Seattle, WA


Return to DOSBox Development

Who is online

Users browsing this forum: No registered users and 2 guests