This shows how to patch DB Set XL v0.82 so it won't disable itself when starting a game in arctic climate. The resulting patched file was tested with OpenTTD.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* unwindtest.c | |
* Copyright (C) 2017 Adrian Perez <aperez@igalia.com> | |
* | |
* Distributed under terms of the MIT license. | |
*/ | |
#define _GNU_SOURCE | |
#include <ucontext.h> | |
#include <dlfcn.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# To be added in the local.conf file for a configured Yocto build | |
EXTRA_IMAGE_FEATURES += "debug-tweaks tools-profile" | |
INHIBIT_PACKAGE_STRIP = "1" | |
PREFERRED_VERSION_cog = "0.17.%" | |
PREFERRED_VERSION_wpewebkit = "2.39.%" | |
PACKAGECONFIG:pn-wpewebkit:append = " mediastream mediasource" | |
PACKAGECONFIG:pn-wpewebkit:remove = "experimental-features" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SPDX-License-Identifier: MIT | |
(function (_console, _window, _Map, _Promise) { | |
"use strict"; | |
let currentTxnId = 0; | |
const txnMap = new _Map(); | |
const warning = _console.warn; | |
function makeTxnId() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* SPDX-License-Identifier: MIT | |
* | |
* cc -o minicog minicog.c $(pkg-config wpe-webkit-1.1 cogcore --cflags --libs) | |
*/ | |
#include <cog/cog.h> | |
#include <sys/reboot.h> | |
static const char *s_starturl = NULL; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* SPDX-License-Identifier: MIT | |
* | |
* cc -o minicog minicog.c $(pkg-config wpe-webkit-1.1 cogcore --cflags --libs) | |
*/ | |
#include <cog/cog.h> | |
static const char *s_starturl = NULL; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* SPDX-License-Identifier: MIT | |
* | |
* cc -o minicog minicog.c $(pkg-config wpe-webkit-1.1 cogcore --cflags --libs) | |
*/ | |
#include <cog/cog.h> | |
static const char *s_starturl = NULL; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- | |
-- LPeg-based XML parser. | |
-- | |
-- * Grammar term names are the same as in the XML 1.1 | |
-- specification: http://www.w3.org/TR/xml11/ | |
-- * Action functions are missing. | |
-- | |
-- Copyright (C) 2012 Adrian Perez <aperez@igalia.com> | |
-- Distribute under terms of the MIT license. | |
-- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
commit be9c283f963b844bd71d9735ac1707ec4c28395e | |
Author: Adrian Perez de Castro <aperez@igalia.com> | |
Date: Sun Nov 14 23:04:49 2021 +0200 | |
Local changes | |
diff --git a/PKGBUILD b/PKGBUILD | |
index 8b663ef..8a73fcd 100644 | |
--- a/PKGBUILD | |
+++ b/PKGBUILD |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef _ATOMIC_H | |
#define _ATOMIC_H | |
/* Check GCC version, just to be safe */ | |
#if !defined(__GNUC__) || (__GNUC__ < 4) || (__GNUC_MINOR__ < 1) | |
# error atomic.h works only with GCC newer than version 4.1 | |
#endif /* GNUC >= 4.1 */ | |
/** |
NewerOlder