Skip to content

Add 'pause' and 'resume' options to the emulator#23

Merged
vancha merged 7 commits into
masterfrom
those-eyes/asynchronous-file-manager-fix
Dec 9, 2025
Merged

Add 'pause' and 'resume' options to the emulator#23
vancha merged 7 commits into
masterfrom
those-eyes/asynchronous-file-manager-fix

Conversation

@THOSE-EYES
Copy link
Copy Markdown
Collaborator

What has been done

This PR adds several new options for emulation control. Menu bar entries were added for such options, opened file manager was made to pause program execution.

This commit adds checks for the 'running' flag of the Application struct
in order to ignore such messages when the application is not running.
This commit introduces a new menu bar category 'Emulation', which
contains two buttons: 'Pause' and 'Resume'. This buttons can control
emulation states.
This commit updates the Application struct by making the 'cpu' field
Option<Cpu>. This allows to check if the CPU is initialized.
This commit makes the 'Pause' and 'Resume' buttons disableable when the
conditions to be able to complete the action are not met.
This commit resumes program execution when there are no files to load.
@THOSE-EYES THOSE-EYES self-assigned this Dec 8, 2025
@THOSE-EYES THOSE-EYES requested a review from vancha December 8, 2025 11:49
This commit automatically cleans the framebuffer in case the file was
reloaded.
This commit adds reinitialization of the CPU instance instead of
creating a new one inside the Application instance.
@vancha vancha merged commit 899abe8 into master Dec 9, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants