d1196d1996
different versions of the code for wxWindows and non-wxWindows and the GDB stub did not accept any command line options at all. - IMPORTANT CHANGE: the quick start option used to cause two things: 1) read the bochsrc immediately, 2) start simulation immediately without going into the config interface. This has changed in a subtle way. Now, we always try to read the bochsrc immediately. Then if the quick start option is on, we start the simulation immediately. - add "Restore Factory Default Configuration" in text config menu. It was already there in wx. Now the default choice is always "5. Begin simulation" and because the bochsrc is always read now, this works. - When the user chooses "Read configuration file" from either text mode or wx interfaces, reset all bochs parameters first, then read in the new file. This means that every time you read a configuration file you are starting from a consistent "blank slate". - move much of the code from bx_do_text_config_interface into bx_init_main so that wxWindows and non-wxWindows code uses the same logic. There was only a tiny bit left in bx_do_text_config_interface so I eliminated it. - move the "help" message into a separate function print_usage() - detect all flags (cmdline args that start with -) in a loop, instead of a big if/else. This makes it easy to add others. - fix problem with Carbon gui, so that -psn arg gets ignored - print usage if you type -h, --help, or if flags are not recognized - code that called io->set_log_action (that sets the log action for all devices) was only called if the configuration interface was on; I'm not sure why. Now it is called all the time. - the wxWindows equivalent of main() is called MyApp::OnInit. Now OnInit and main() are very similar. They both call bx_init_siminterface, then bx_init_main (and quit if it fails), then show the config interface if quickstart is off, and then simulate. - modified: main.cc gui/control.cc gui/wxmain.cc |
||
---|---|---|
.. | ||
bitmaps | ||
keymaps | ||
amigagui.h | ||
amigaos.cc | ||
beos.cc | ||
carbon.cc | ||
control.cc | ||
control.h | ||
gui.cc | ||
gui.h | ||
icon_bochs.h | ||
keymap.cc | ||
keymap.h | ||
macintosh.cc | ||
Makefile.in | ||
nogui.cc | ||
rfb.cc | ||
rfb.h | ||
rfbproto.h | ||
sdl.cc | ||
sdl.h | ||
sdlkeys.h | ||
siminterface.cc | ||
siminterface.h | ||
term.cc | ||
win32.cc | ||
wx.cc | ||
wxdialog.cc | ||
wxdialog.h | ||
wxmain.cc | ||
wxmain.h | ||
x.cc |