- Ja es pot tancar la finestra amb el botó de tancar finestra normal
- Ara la finestra de debug nomes es mostra mentre s'està debugant - [NEW] "peek address" i "poke address value" des de la consola, per a modificar o consultar la memòria
This commit is contained in:
6
main.cpp
6
main.cpp
@@ -23,7 +23,7 @@ int main(int argc, char *argv[])
|
||||
z80::connect_port(0xfe, zx_ula::port_in, zx_ula::port_out);
|
||||
|
||||
SDL_Init(SDL_INIT_EVERYTHING);
|
||||
z80debug::show();
|
||||
z80debug::init();
|
||||
zxscreen::init();
|
||||
|
||||
zx_ula::sound_init();
|
||||
@@ -43,6 +43,10 @@ int main(int argc, char *argv[])
|
||||
while (SDL_PollEvent(&e))
|
||||
{
|
||||
if (e.type == SDL_QUIT) { should_exit=true; break; }
|
||||
if ((e.type==SDL_WINDOWEVENT) && (e.window.event==SDL_WINDOWEVENT_CLOSE)) {
|
||||
should_exit=true; break;
|
||||
}
|
||||
|
||||
if (z80debug::debugging()) {
|
||||
if ((e.type==SDL_WINDOWEVENT) && ((e.window.event==SDL_WINDOWEVENT_SHOWN) || (e.window.event==SDL_WINDOWEVENT_EXPOSED))) {
|
||||
z80debug::refresh();
|
||||
|
||||
Reference in New Issue
Block a user