From 9487c4abc4c43896aae7f27fc2ab923ab9cd7dfd Mon Sep 17 00:00:00 2001 From: Kalle Carlbark Date: Thu, 19 Sep 2024 22:17:57 +0200 Subject: [PATCH] wip: getting there --- src/assets/{freebsd.png => orby.png} | Bin src/assets/tux.png | Bin 0 -> 38924 bytes src/assets/ziggy.png | Bin 0 -> 59579 bytes src/linux.zig | 25 ++++ src/macos.zig | 36 ++--- src/main.zig | 197 ++++++++------------------- src/sys.zig | 114 ++++++++++++++-- 7 files changed, 199 insertions(+), 173 deletions(-) rename src/assets/{freebsd.png => orby.png} (100%) create mode 100644 src/assets/tux.png create mode 100644 src/assets/ziggy.png create mode 100644 src/linux.zig diff --git a/src/assets/freebsd.png b/src/assets/orby.png similarity index 100% rename from src/assets/freebsd.png rename to src/assets/orby.png diff --git a/src/assets/tux.png b/src/assets/tux.png new file mode 100644 index 0000000000000000000000000000000000000000..988f2e24b1bce8f5b51b3e8531802068162f1119 GIT binary patch literal 38924 zcmZ^~1yo!?kTyCnxI=IT3GNK;7Tld+fx#iTyITlu!QBZmkN|<;4k37O*Wm8F6#&4O9smdq2LK*mS;2n+01q$#Z~y@SgfajCBIle|4G~yD zxTT(gm5K_08J0!?Aj07RfUp!C><54&1^lZGmI5fkk^OgC6OQq}Xy5^WC|dx+f6*Ag zp8qa+*!_>^KcBz?xc{lK0RI0_!=V=d|2xg`kIn4YQUvUQ>MXDC1^}SH`FFzsvT}$4 z0C*l-Z9R8A6=flFCkJ*@3nw#6c5esge_Q|&Zy{LH!P4E7%G<%-(M`x(l=?p?gkb4^ z*&NhV|3TtzCrYiSqE02{VG{KQggMngiY$dsryI%f93rby$Hv@dHrAW z{GUSnk6f4(#n41J{(D7;p>6zLzXJdy01DEQ+TL(S?Wn;Ip$J%eb#szPeAKz_OFt}00rkkU@mBuB-(R@3Q zK;=v(1u=Y ze|LwlAr*f6bjI0)Kuhxrn4e#TU~b#uz`q>~jB(UsRIrHN8C-2=$B8O9(+{7w_X822M4j>3}$=kDHK+)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