Skip to content

Instantly share code, notes, and snippets.

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 5cdd3e31..1191bc44 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -334,6 +334,10 @@ if(PROJECT_IS_TOP_LEVEL)
file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/glslang-config.cmake.in" [=[
@PACKAGE_INIT@
+ include(CMakeFindDependencyMacro)
+ if(@ENABLE_OPT@)
#!/bin/sh
# Released under CC0
DF_OSX=/tmp/df_osx # this is the extracted directory
# download SDL2.framework and place it in df_osx/libs
# DO THIS MANUALLY!!!
# verify that the above step has been done
@d235j
d235j / magma_cardbus_to_pci__linux_2_6_5.diff
Created January 2, 2022 19:47
Kernel patches for Magma CardBus to PCI adapter
diff -Nruw linux_2_6_5_orig/drivers/pci/bus.c linux_2_6_5/drivers/pci/bus.c
--- linux_2_6_5_orig/drivers/pci/bus.c 2004-04-03 22:38:19.000000000 -0500
+++ linux_2_6_5/drivers/pci/bus.c 2004-05-14 10:56:58.000000000 -0400
@@ -125,11 +125,21 @@
void pci_enable_bridges(struct pci_bus *bus)
{
struct pci_dev *dev;
+ u16 temp;
+ u8 temp2;
#!/bin/sh
ROOT="http://svn.code.sf.net/p/hxcfloppyemu/code/HxCFloppyEmulator/"
REPOS_TRUNK="HxCFloppyEmulator_software HxCFloppyEmulator_cmdline libhxcadaptor libhxcfe libusbhxcfe"
REPOS="build"
for i in $REPOS_TRUNK; do
echo "--- $i ---"
if [ -d "$ROOT/$i/trunk" ]; then
#!/bin/sh
ROOT="http://svn.code.sf.net/p/hxcfloppyemu/code/HxCFloppyEmulator/"
REPOS_TRUNK="HxCFloppyEmulator_software libhxcadaptor libhxcfe libusbhxcfe"
REPOS="build"
for i in $REPOS_TRUNK; do
echo "--- $i ---"
if [ -d "$ROOT/$i/trunk" ]; then
In file included from ../../../dlls/actxprxy/usrmarshal.c:37:
../../../include/wine/debug.h:421:70: error: passing 'const struct const tagVARIANT * __ptr64' to parameter of type 'const __storage32 struct const tagVARIANT *' changes
address space of pointer
return wine_dbg_sprintf( "%p {VT_VARIANT|VT_BYREF: %s}", v, wine_dbgstr_variant(V_VARIANTREF(v)) );
^
../../../include/wine/debug.h:423:67: error: passing 'const struct const tagVARIANT * __ptr64' to parameter of type 'const __storage32 struct const tagVARIANT *' changes
address space of pointer
return wine_dbg_sprintf( "%p {VT_BSTR|VT_BYREF: %s}", v, V_BSTRREF(v) ? wine_dbgstr_w(*V_BSTRREF(v)) : "(none)" );
^
../../../include/wine/debug.h:424:48: error: passing 'const struct const tagVARIANT * __ptr64' to parameter of type 'const __storage32 struct const tagVARIANT *' changes
--- [CP] Karmylla's Immersive Maps/content.json 2019-12-01 20:00:30.000000000 -0500
+++ content-patched.json 2019-12-03 11:40:35.000000000 -0500
@@ -197,7 +197,7 @@
{
"LogName": "Town DogHouse - SVE",
"Action": "Load",
- "Target": "Maps/Town-Theater",
+ "Target": "Maps/Town-DogHouse",
"FromFile": "assets/Town/Town-DogHouse{{WhichVersion}}.tbin",
"When":
diff --git a/CustomFurniture/CustomFurnitureMod.cs b/CustomFurniture/CustomFurnitureMod.cs
index b36f28c..74cfbf4 100644
--- a/CustomFurniture/CustomFurnitureMod.cs
+++ b/CustomFurniture/CustomFurnitureMod.cs
@@ -75,8 +75,8 @@ namespace CustomFurniture
if (param[0] == "shop" && Game1.activeClickableMenu is ShopMenu shop)
{
- Dictionary<Item, int[]> items = Helper.Reflection.GetField<Dictionary<Item, int[]>>(shop, "itemPriceAndStock").GetValue();
- List<Item> selling = Helper.Reflection.GetField<List<Item>>(shop, "forSale").GetValue();
% /sources/cl/clasp/build/boehm/iclasp-boehm --norc --ignore-image --feature clasp-min --eval '(load "sys:kernel;clasp-builder.lsp")' --eval '(setq core::*number-of-jobs* 4)' --eval '(core:compile-aclasp :output-file #P"/sources/cl/clasp/build/boehm/fasl/aclasp-boehm-common-lisp.ll")' --eval '(core:quit)' -- src/lisp/kernel/tag/start src/lisp/kernel/lsp/prologue src/lisp/kernel/tag/min-start src/lisp/kernel/init src/lisp/kernel/tag/after-init src/lisp/kernel/cmp/runtime-info src/lisp/kernel/cmp/jit-setup src/lisp/kernel/clsymbols src/lisp/kernel/lsp/packages src/lisp/kernel/lsp/foundation src/lisp/kernel/lsp/export src/lisp/kernel/lsp/defmacro src/lisp/kernel/lsp/helpfile src/lisp/kernel/lsp/evalmacros src/lisp/kernel/lsp/claspmacros src/lisp/kernel/lsp/source-transformations src/lisp/kernel/lsp/arraylib src/lisp/kernel/lsp/setf src/lisp/kernel/lsp/listlib src/lisp/kernel/lsp/mislib src/lisp/kernel/lsp/defstruct src/lisp/kernel/lsp/predlib src/lisp/kernel/lsp/cdr-5 src/lisp/kernel/lsp/seq src/lisp/kernel/lsp/
## OS X
You'll need Xcode and Homebrew for some of the extra packages that are needed to build everything. Otherwise things are much the same as on the Linux side -- hopefully. Adapt paths as necessary.
Externals-clasp and modifying bdw-gc are no longer necessary, as the issues have been worked around in clasp.
`LDFLAGS=-lffi` is necessary when using a Homebrew-provided LLVM due to a longstanding issue in `llvm-config`.
### Clasp itself
0. `brew install llvm@5 gmp bdw-gc boost libunwind-headers`
1. `git clone https://github.com/clasp-developers/clasp ~/clasp`
2. `cd ~/clasp && echo "LLVM_CONFIG_BINARY = '/usr/local/opt/llvm@5/bin/llvm-config'" > wscript.config`
3. `LDFLAGS=-lffi ./waf configure`