From f450d339d20ee762a246350a27c2a2091eace4b3 Mon Sep 17 00:00:00 2001 From: Devine Lu Linvega Date: Thu, 22 Feb 2024 15:40:33 -0800 Subject: [PATCH] Added some docs --- README.md | 11 +++++++++-- src/potato.tal | 5 +++-- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index b2bb81e..9ee3104 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # A potato -A desktop environment, written in [Uxntal](https://wiki.xxiivv.com/site/uxntal.html). +[Potato](https://wiki.xxiivv.com/site/potato.html) is a desktop environment, written in [Uxntal](https://wiki.xxiivv.com/site/uxntal.html). ## Build @@ -24,12 +24,19 @@ Since this is designed to be used principally on a handheld devices without a wi - `B+Right`, open a window - `B+Left`, close a window +## Editing the theme + +Saving the theme, from the tile or theme editor will create a hidden file called [.theme](https://wiki.xxiivv.com/site/theme.html), which can be opened and edited in [Nasu](https://wiki.xxiivv.com/site/nasu.html). + +## Adding a wallpaper + +The wallpaper is an invisible file called `.wallpaper` in the working directory, the file is a [1bpp icn](https://wiki.xxiivv.com/site/icn_format.html) of the size of the desktop. The wallpaper image can be created with [Noodle](https://wiki.xxiivv.com/site/noodle.html). + ## TODO - Change cursor icon on alt mod for drag. - Fix mouse picking issue in Play app. - Terminal. -- Documentation. - Text Reader scrollbar should be clickable - Hex Viewer diff --git a/src/potato.tal b/src/potato.tal index 19ecaa7..58ce253 100644 --- a/src/potato.tal +++ b/src/potato.tal @@ -251,10 +251,11 @@ ( x ) .Screen/width DEI2 #00c0 SUB2 !add-win @open-rom ( file* -- ) - LDAk LIT "? EQU ?&err + LDAk [ LIT "? ] EQU ?&err ;load-rom-callback/src STA2 ;load-rom-callback ! - &err #0005 ADD2 ;dict/oversize-rom SWP2 !add-err + &err ( file* -- ) + #0005 ADD2 ;dict/oversize-rom SWP2 !add-err @load-rom-callback ( file* -- ) [ LIT2 &src $2 ] #0005 ADD2 make-src !load-rom -- 2.45.2