Skip to content

Commit

Permalink
DeskTop: Rework and simplify Get Info dialog logic
Browse files Browse the repository at this point in the history
This dialog was implemented in an "interesting" way where each value
was drawn by preparing a string in the initiating proc, then drawing
it by jumping into a generic UI proc. This resulted in a lot of state
updating for no real benefit.

The theory of distinguishing the model and view is fine... but the
whole GET_FILE_INFO struct can be considered the model. The whole
lifecycle of the dialog is reworked. Doing it in a straightforward way
dramatically simplifies the code and saves a bunch of bytes too.

No functional changes. Saves 169 bytes.
  • Loading branch information
inexorabletash committed Jan 26, 2025
1 parent 416e8c1 commit 170c1a0
Show file tree
Hide file tree
Showing 2 changed files with 135 additions and 205 deletions.
2 changes: 1 addition & 1 deletion desktop/desktop.s
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
DEFSEG SegmentLoader, $2000, $0200
DEFSEG SegmentDeskTopAux, $4000, $8000
DEFSEG SegmentDeskTopLC, $D000, $2100
DEFSEG SegmentDeskTopMain, $4000, $7800
DEFSEG SegmentDeskTopMain, $4000, $7700
DEFSEG SegmentInitializer, $0800, $0900
DEFSEG SegmentInvoker, $0290, $0160

Expand Down
Loading

0 comments on commit 170c1a0

Please sign in to comment.