1<h2>yar har</h2>
2<p>i love it, i love sailing the seas!<p>
3<br>
4<img src=../assets/piracy.png height=225 width=400>
5<p>i love getting games for free. actually, ive only ever got one game for free, and that was <a href=https://freesmlauncher.org>minecraft</a>. though, it doesnt end there. i have had like 1 trillion experiences with it. a lot of operating systems</p>
6<br>
7<h3><a href=https://netbsd.org>netbsd</a></h3>
8<p>i forgot most of this which is a shame because i did alot of shit to get it working, but when it was, it was an miracle. but hey, i can tell you <i>some</i> steps</p>
9<ol>
10 <li>patch sources to drop in NetBSD</li>
11 <p>i did this by grepping OpenBSD all over the source code, and appended <blk>|| defined(Q_OS_NETBSD)</blk></p>
12 <li>run patchelf on the compiled freesmlauncher target</li>
13 <p>netbsd's default linking paths are not inclusive, and where libraries live are retarded. i had to add rpaths to the binary so it could find qt libraries and such.</p>
14 <li>compile <a href=https://codeberg.org/glowiak/lwjgl-netbsd>lwjgl-netbsd</a></li>
15 <li>drop in the resulting <i>liblwjgl64.so</i> into <blk>~/.local/FreesmLauncher/instances/ur.instace.bro/natives</blk></li>
16 <li>install xrandr, MesaLib, and glfw?</li>
17 <li>find ur mesa loader driver and export it as a enviroment variable</li>
18 <p>for me, i think it was <blk>MESA_LOADER_DRIVER_OVERRIDE=i965</blk></p>
19</ol>
20<h3><a href=https://alpinelinux.org>alpine linux</a></h3>
21<p>a bit harder than i thought it would be, but hey. im running it right now and minecraft is good on it.</p>
22<p>so i first thought that freesmlauncher would work out of the box, which was very wrong. when minecraft didnt launch due to some openal reason, i almost lost my mind. i read a <a href=https://wiki.gentoo.org/wiki/Minecraft>wiki</a> on it, reread the musl section, all to no avail! i looked at the <a href=https://pkgs.alpinelinux.org/package/edge/community/x86/prismlauncher>pkgs</a> page for alpine linux, but it looked like it had no patches. so i digged, and digged.</p>
23<p>firstly, i ran a minecraft demo with the prebuilt prismlauncher alpine provides. latest version worked, and so did 1.8.9, my main play. <i>whaaaaaat?</i> i looked around on a <a href=https://github.com/PrismLauncher/PrismLauncher/issues/4422>github issue</a> concerning my problem - prismlauncher<sub>(or just minecarft)</sub> on musl, and it mentioned aports. <a href=https://gitlab.alpinelinux.org/alpine/aports/-/blob/master/community/prismlauncher/APKBUILD>that</a> is where i found the patches that alpine used, and i applied them to freesmlauncher. boom!</p>
24<br>
25<img src=../assets/mconalpine.png height=225 width=400>
26</ol>
27
28<br><br><p>its fun, do it now.</p>
29
30<title>blog - yar har</title>
31<!-- THISISABLOG -->