ref: e4692c657276e50efb09c1c7182aad44c4faeb19
parent: dfe46cdd3b407e88dadd2171ca8770439c00bb5c
author: qwx <qwx@sciops.net>
date: Thu Mar 4 04:39:34 EST 2021
add index and bury some obsolete stuff
--- /dev/null
+++ b/INDEX
@@ -1,0 +1,56 @@
+9fs-9paste 9fs(4) add 9paste.net service
+9nusbrc-nesusbjoy recognize my nes/snes controller
+acme-col colors
+colors-col colors
+doom-autorun doom(1) add autorun config option
+doom-chat doom(1) quick hackfix for chat
+doom-limits doom(1) raise static limits
+doom-mouseglitches doom(1) fix(?) weird mouse movement glitches
+doom-mousegrab doom(1) more aggressive mouse containment for faster terminals
+doom-naivescaleup doom(1) raise scale limits
+doom-nodclick doom(1) remove mouse double click and button 3 forward (→ wl3d-like controls)
+doom-skywallhit doom(1) fix erroneous sky checks for projectiles
+doom-spy doom(1) spy view on multiplayer (buggy)
+doom-udpip doom(1) simply udp/ip networking
+dport-run local fix for aijuboard displayport config
+faces-col colors
+file-mod file(1) recognize mod files
+file-opus file(1) recognize opus files
+fplot-col colors
+graveyard do not exhume
+ircrc-jpmfix ircrc(1) fixes hanging connections at startup (from jpm)
+ircrc-print-log ircrc(1) print bikeshedding and logs
+kbdfs-fshalt kbdfs(8) emergency killswitch for unresponsive rio
+kbmap-col colors
+libdraw-menucol colors
+libplumb-basic recognize more audio formats
+man-joy document nusb/joy
+man1audio-opus document opusdec/enc
+midi-debug games/midi debug mode
+midi-dobend games/midi experimental bending
+mothra-col colors
+mothra-font fonts
+mothra-unifont unifont, for very specific instances
+nusb-ure driver for borked realtek usb ethernet
+page-invert page(1) invert one image
+page-invertone page(1) invert all images
+paint-reverse colors
+pc64-nvidia (now useless) add nvidia to pc64 build
+play-dmid-mod play(1) add dmid/mod
+play-opus-aac play(1) add opus/aac
+png-maxmem png(1) raise maximum memory
+png-trns-unfinished png(1) mTRS chunks for indexed rgb24 images, unfinished
+rio-col colors
+rio-exit rio exit menu option (with confirmation)
+sam-fullfrontalnudity sam pikesheds
+samterm-col colors
+samterm-flayers samterm(1) more panes
+samterm-fullfrontalnudity samterm(1) pikesheds
+spewaplay-col colors
+spred-col colors
+stats-col colors
+statusbar-col colors
+statusmsg-col colors
+sudoku-col colors
+troff-nchars troff(1) raise table sizes for unifont and others
+vt-col colors
--- a/doomn-sawup
+++ /dev/null
@@ -1,60 +1,0 @@
-does not work. second part should also be removed.
-
-diff -Naur a/sys/src/games/doom/i_sound.c b/sys/src/games/doom/i_sound.c
---- a/sys/src/games/doom/i_sound.c Wed Jul 29 13:45:35 2015
-+++ b/sys/src/games/doom/i_sound.c Sun Aug 2 23:51:32 2015
-@@ -333,33 +333,21 @@
- int rightvol;
- int leftvol;
-
-- /* Chainsaw troubles.
-- ** Play these sound effects only one at a time. */
-- if ( id == sfx_sawup ||
-- id == sfx_sawidl ||
-- id == sfx_sawful ||
-- id == sfx_sawhit ||
-- id == sfx_stnmov ||
-- id == sfx_pistol )
-+ for (i=0 ; (i<NUM_CHANNELS) && (channels[i]) ; i++)
- {
-- /* Loop all channels, check. */
-- for (i=0 ; i < NUM_CHANNELS ; i++)
-- {
-- /* Active and using the same SFX? */
-- if( (channels[i]) && (channelids[i] == id) )
-- {
-- /* Reset. */
-+ if(id == sfx_sawidl && channelids[i] == sfx_sawup) /* don't play during sawup */
-+ return 0;
-+ if(channelids[i] == id)
-+ switch(id){ /* to be played only one at a time */
-+ case sfx_sawup:
-+ case sfx_sawidl:
-+ case sfx_sawful:
-+ case sfx_sawhit:
-+ case sfx_stnmov:
-+ case sfx_pistol:
- channels[i] = 0;
-- /* We are sure that iff,
-- ** there will only be one. */
-- break;
-+ continue;
- }
-- }
-- }
--
-- /* Loop all channels to find oldest SFX. */
-- for (i=0 ; (i<NUM_CHANNELS) && (channels[i]) ; i++)
-- {
- if(channelstart[i] < oldest)
- {
- oldestnum = i;
-@@ -383,7 +371,7 @@
- */
- channels[slot] = (uchar*) S_sfx[id].data;
- /* Set pointer to end of raw data. */
-- channelsend[slot] = channels[slot] + lengths[id];
-+ channelsend[slot] = channels[slot] + (id == sfx_sawful ? lengths[id] / 2 : lengths[id]);
-
- /* Reset current handle number, limited to 0..100. */
- if (!handlenums)
--- a/doomn-sleep
+++ /dev/null
@@ -1,17 +1,0 @@
-this is necessary with doom-sndmus.patch to prevent nsec() being called
-trillions of times per frame because the game is running too fast...
-(i think)
-
-diff -Naur a/sys/src/games/doom/d_net.c b/sys/src/games/doom/d_net.c
---- a/sys/src/games/doom/d_net.c Fri May 15 05:42:00 2015
-+++ b/sys/src/games/doom/d_net.c Wed Sep 16 07:47:17 2015
-@@ -722,7 +722,8 @@
- {
- M_Ticker ();
- return;
-- }
-+ }
-+ sleep(1);
- }
-
- // run the count * ticdup dics
--- a/doomn-waitvbl
+++ /dev/null
@@ -1,19 +1,0 @@
-I_WaitVBL is used as a delay twice: once in the netcode on disconnect, to
-wait a little before sending notice to the next node, and once on exit, to
-allow playing one last sound effect.
-requires doom-sndmus.patch (since sound is handled on a different proc).
-
-diff -Naur a/sys/src/games/doom/i_video.c b/sys/src/games/doom/i_video.c
---- a/sys/src/games/doom/i_video.c Wed Jul 29 13:45:35 2015
-+++ b/sys/src/games/doom/i_video.c Tue Aug 11 14:25:16 2015
-@@ -185,8 +185,9 @@
- {
- }
-
--void I_WaitVBL(int)
-+void I_WaitVBL(int s)
- {
-+ sleep(s * (1000/70));
- }
-
-
--- a/gb-nosleep
+++ /dev/null
@@ -1,56 +1,0 @@
-diff -r e899bb299ed2 sys/src/games/gb/apu.c
---- a/sys/src/games/gb/apu.c Fri Feb 10 22:39:47 2017 +0100
-+++ b/sys/src/games/gb/apu.c Sat Feb 11 20:06:13 2017 +0200
-@@ -475,7 +475,7 @@
- if(sbufp == sbuf)
- return 0;
- cl = clock;
-- rc = write(fd, sbuf, (sbufp - sbuf) * 2);
-+ rc = nosleep ? 1 : write(fd, sbuf, (sbufp - sbuf) * 2);
- if(rc > 0)
- sbufp -= (rc+1)/2;
- if(sbufp < sbuf)
-diff -r e899bb299ed2 sys/src/games/gb/dat.h
---- a/sys/src/games/gb/dat.h Fri Feb 10 22:39:47 2017 +0100
-+++ b/sys/src/games/gb/dat.h Sat Feb 11 20:06:13 2017 +0200
-@@ -25,6 +25,7 @@
- extern u8int mode;
- extern u8int mbc, feat;
- extern int keys, scale;
-+extern int nosleep;
-
- enum {
- JOYP = 0x00,
-diff -r e899bb299ed2 sys/src/games/gb/gb.c
---- a/sys/src/games/gb/gb.c Fri Feb 10 22:39:47 2017 +0100
-+++ b/sys/src/games/gb/gb.c Sat Feb 11 20:06:13 2017 +0200
-@@ -12,7 +12,7 @@
- Rectangle picr;
- Image *bg, *tmp;
- Mousectl *mc;
--int keys, paused, framestep, backup;
-+int keys, paused, framestep, backup, nosleep;
- QLock pauselock;
- int savefd = -1, saveframes;
- ulong clock;
-@@ -285,6 +285,9 @@
- }
- framestep = !framestep;
- break;
-+ case ' ':
-+ nosleep = !nosleep;
-+ break;
- }
- }
- k &= ~(k << 1 & 0x0a | k >> 1 & 0x05);
-@@ -352,7 +355,9 @@
- flushimage(display, 1);
- if(profile)
- timing();
-- if(audioout() < 0){
-+ if(nosleep)
-+ old = nsec();
-+ if(audioout() < 0 && !nosleep){
- new = nsec();
- diff = 0;
- if(old != 0){
--- /dev/null
+++ b/graveyard/doomn-sawup
@@ -1,0 +1,60 @@
+does not work. second part should also be removed.
+
+diff -Naur a/sys/src/games/doom/i_sound.c b/sys/src/games/doom/i_sound.c
+--- a/sys/src/games/doom/i_sound.c Wed Jul 29 13:45:35 2015
++++ b/sys/src/games/doom/i_sound.c Sun Aug 2 23:51:32 2015
+@@ -333,33 +333,21 @@
+ int rightvol;
+ int leftvol;
+
+- /* Chainsaw troubles.
+- ** Play these sound effects only one at a time. */
+- if ( id == sfx_sawup ||
+- id == sfx_sawidl ||
+- id == sfx_sawful ||
+- id == sfx_sawhit ||
+- id == sfx_stnmov ||
+- id == sfx_pistol )
++ for (i=0 ; (i<NUM_CHANNELS) && (channels[i]) ; i++)
+ {
+- /* Loop all channels, check. */
+- for (i=0 ; i < NUM_CHANNELS ; i++)
+- {
+- /* Active and using the same SFX? */
+- if( (channels[i]) && (channelids[i] == id) )
+- {
+- /* Reset. */
++ if(id == sfx_sawidl && channelids[i] == sfx_sawup) /* don't play during sawup */
++ return 0;
++ if(channelids[i] == id)
++ switch(id){ /* to be played only one at a time */
++ case sfx_sawup:
++ case sfx_sawidl:
++ case sfx_sawful:
++ case sfx_sawhit:
++ case sfx_stnmov:
++ case sfx_pistol:
+ channels[i] = 0;
+- /* We are sure that iff,
+- ** there will only be one. */
+- break;
++ continue;
+ }
+- }
+- }
+-
+- /* Loop all channels to find oldest SFX. */
+- for (i=0 ; (i<NUM_CHANNELS) && (channels[i]) ; i++)
+- {
+ if(channelstart[i] < oldest)
+ {
+ oldestnum = i;
+@@ -383,7 +371,7 @@
+ */
+ channels[slot] = (uchar*) S_sfx[id].data;
+ /* Set pointer to end of raw data. */
+- channelsend[slot] = channels[slot] + lengths[id];
++ channelsend[slot] = channels[slot] + (id == sfx_sawful ? lengths[id] / 2 : lengths[id]);
+
+ /* Reset current handle number, limited to 0..100. */
+ if (!handlenums)
--- /dev/null
+++ b/graveyard/doomn-sleep
@@ -1,0 +1,17 @@
+this is necessary with doom-sndmus.patch to prevent nsec() being called
+trillions of times per frame because the game is running too fast...
+(i think)
+
+diff -Naur a/sys/src/games/doom/d_net.c b/sys/src/games/doom/d_net.c
+--- a/sys/src/games/doom/d_net.c Fri May 15 05:42:00 2015
++++ b/sys/src/games/doom/d_net.c Wed Sep 16 07:47:17 2015
+@@ -722,7 +722,8 @@
+ {
+ M_Ticker ();
+ return;
+- }
++ }
++ sleep(1);
+ }
+
+ // run the count * ticdup dics
--- /dev/null
+++ b/graveyard/doomn-waitvbl
@@ -1,0 +1,19 @@
+I_WaitVBL is used as a delay twice: once in the netcode on disconnect, to
+wait a little before sending notice to the next node, and once on exit, to
+allow playing one last sound effect.
+requires doom-sndmus.patch (since sound is handled on a different proc).
+
+diff -Naur a/sys/src/games/doom/i_video.c b/sys/src/games/doom/i_video.c
+--- a/sys/src/games/doom/i_video.c Wed Jul 29 13:45:35 2015
++++ b/sys/src/games/doom/i_video.c Tue Aug 11 14:25:16 2015
+@@ -185,8 +185,9 @@
+ {
+ }
+
+-void I_WaitVBL(int)
++void I_WaitVBL(int s)
+ {
++ sleep(s * (1000/70));
+ }
+
+