SDL: examples/storage/01-user: Set up for web builds.

From f8dc19e65ae7dce717f421cb34bf1d5ac68918f7 Mon Sep 17 00:00:00 2001
From: "Ryan C. Gordon" <[EMAIL REDACTED]>
Date: Fri, 19 Jun 2026 00:10:56 -0400
Subject: [PATCH] examples/storage/01-user: Set up for web builds.

---
 examples/categories.txt                   |   1 +
 examples/storage/01-user/README.txt       |   5 +++++
 examples/storage/01-user/onmouseover.webp | Bin 0 -> 1982 bytes
 examples/storage/01-user/thumbnail.png    | Bin 0 -> 283 bytes
 4 files changed, 6 insertions(+)
 create mode 100644 examples/storage/01-user/README.txt
 create mode 100644 examples/storage/01-user/onmouseover.webp
 create mode 100644 examples/storage/01-user/thumbnail.png

diff --git a/examples/categories.txt b/examples/categories.txt
index bbe30f23efe50..cf1e4bf21f91f 100644
--- a/examples/categories.txt
+++ b/examples/categories.txt
@@ -7,6 +7,7 @@
 renderer
 input
 audio
+storage
 camera
 asyncio
 pen
diff --git a/examples/storage/01-user/README.txt b/examples/storage/01-user/README.txt
new file mode 100644
index 0000000000000..9cdeb303591fa
--- /dev/null
+++ b/examples/storage/01-user/README.txt
@@ -0,0 +1,5 @@
+This example code creates an SDL window and renderer, and waits for the user
+to click on the window. By default, the window color is blue; When storage
+succeeds, the window turns green, if it fails the window turns red and the
+error message is logged. Left clicking will save a game, all other clicks
+will load a game.
diff --git a/examples/storage/01-user/onmouseover.webp b/examples/storage/01-user/onmouseover.webp
new file mode 100644
index 0000000000000000000000000000000000000000..9da7690217103f27b06c543b63bf1b73f861bf71
GIT binary patch
literal 1982
zcmWIYbaUIr&cG1v>J$(bU=hK^z`(!+#Pv)J_Zb-+{XBiyfV}@ezyRd=y0w5L!2qIS
z0}BHaP@h5$P`to}VJ@Rq1JeUWySHUK!d5O<RbIfsXdv5}nfI_fQQCp?4fFk+Iqmyy
zTJqO!Dw6x1^2GMr$rIIYCr|i(TV3(}Hb3Y4ISW!BJwXxvAiwn1$0B6ab6jFj4f(;u
z2+<4|wttRnCQ$g!=`W~Oxj1}6HWTOq!)fzS9ahWzvTP5sRjJJS;xKnYtZMkHcfA|M
zsz*ww&VPSE0L`-#|J%Ub2?>K|@yo$}hYKsQqnHT{v7Rlc&Ubzh@4Xczq%<TecA|u9
z4Lh3iQ=SW=Ilqpf0X6jJ^#4S2{&u6kwkUBmQ2^cfXHwCeFYoj#c0Gz!4yTWzM6?J4
z!@vJql<WWhJhJ~6>;Hzm{QsBiir##U`Pk)Ky~~+7Qy9xL4>Uj%8deIF78}sgVhT_t
zC@p3H#Y>zKX|Z5!SQ7&S<Be(4-ien9zCFOeXlwrJwAcTu)29Akt*iY%EGqopnl0=9
zMrOwU+H`6E*VLu;*ra22J#))M))mK!RUH9iMx_TwsOdNW(_sJR|6i4PV*CI9KX>r&
z?B5q33Zy^1+|#<{fsgM0#VQXQWfUE-CO^0!C>@rerNbUzAqq-|aX|4cc+z1VFi{eb
z5?iW{5lW!Z4`&6Tq}xqucoOnx3LG3M5MJ~|08^rr|NsA7`;7Yo>i_>)nqkO(Siw7!
Of#nM4CSX~K6954Ioikwo

literal 0
HcmV?d00001

diff --git a/examples/storage/01-user/thumbnail.png b/examples/storage/01-user/thumbnail.png
new file mode 100644
index 0000000000000000000000000000000000000000..c27ac0bd6bf8894fe66319febedd95bfc32a0e29
GIT binary patch
literal 283
zcmeAS@N?(olHy`uVBq!ia0y~yU}|7sV0^&H3>4v)_gfC6m;-!5Tp1YtcU4>p2XZw^
zTq8<S5=&C8N-}d(i%Sx73mA+HjLdWm%ybPcLkvu;3@ofnEwv2{tPBh$8gY36^{B%2
z<mRVjrd48UFf@f|Xg%vMjiMpBC>3ZIZVg{1d<Qww*3-o?q~g}wgN(dD-k}BG{d4)u
f7XX=r!GrS*(;qM}dY_R7IhDcF)z4*}Q$iB}nN31f

literal 0
HcmV?d00001