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
#!/bin/bash | |
#cd to the script dir if executed from outside | |
SCRIPT_PATH=$(dirname "$(readlink -f "$0")") | |
cd "$SCRIPT_PATH" | |
if [ ! -t 1 ]; then #not from terminal | |
SCRIPT=$(basename "$(readlink -f "$0")") | |
SUBPROC=1 x-terminal-emulator --profile "$USER" --working-directory "$SCRIPT_PATH" -e "./$SCRIPT" & | |
exit 0 |
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
diff --git a/src/game/Player.cpp b/src/game/Player.cpp | |
index 472d69a..8225075 100644 | |
--- a/src/game/Player.cpp | |
+++ b/src/game/Player.cpp | |
@@ -332,7 +332,22 @@ void ARX_Player_Rune_Add(RuneFlag _ulRune) | |
} | |
} | |
+ unsigned int v = player.rune_flags; // count the number of runes | |
+ unsigned int c; |
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
#!/bin/bash | |
hash lftp 2>/dev/null || { echo >&2 "Program requires lftp but it's not installed. Aborting."; exit 1; } | |
hash xmlstarlet 2>/dev/null || { echo >&2 "Program requires xmlstarlet but it's not installed. Aborting."; exit 1; } | |
hash gunzip 2>/dev/null || { echo >&2 "Program requires gunzip but it's not installed. Aborting."; exit 1; } | |
hash mktemp 2>/dev/null || { echo >&2 "Program requires mktemp but it's not installed. Aborting."; exit 1; } | |
#cd to the script dir if executed from outside | |
SCRIPT_PATH=$(dirname "$(readlink -f "$0")") | |
cd "$SCRIPT_PATH" |
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
#!/usr/bin/env bash | |
hash parted 2>/dev/null || { echo >&2 "Program requires parted but it's not installed. Exit."; exit 1; } | |
hash udisksctl 2>/dev/null || { echo >&2 "Program requires udisksctl but it's not installed. Exit."; exit 1; } | |
hash fdisk 2>/dev/null || { echo >&2 "Program requires fdisk but it's not installed. Exit."; exit 1; } | |
hash mkdosfs 2>/dev/null || { echo >&2 "Program requires mkdosfs but it's not installed. Exit."; exit 1; } | |
hash numfmt 2>/dev/null || { echo >&2 "Program requires numfmt but it's not installed. Exit."; exit 1; } | |
hash truncate 2>/dev/null || { echo >&2 "Program requires truncate but it's not installed. Exit."; exit 1; } | |
hash mcopy 2>/dev/null || { echo >&2 "Program requires mtools but it's not installed. Exit."; exit 1; } | |
hash mattrib 2>/dev/null || { echo >&2 "Program requires mtools but it's not installed. Exit."; exit 1; } | |
hash dd 2>/dev/null || { echo >&2 "Program requires dd but it's not installed. Exit."; exit 1; } |
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
public static CachedMesh Initiate(GameObject core, GameObject root, bool destroyImmediate = false) | |
{ | |
Vector3 position = root.transform.parent.transform.position; | |
Quaternion rotation = root.transform.parent.transform.rotation; | |
root.transform.parent.transform.position = new Vector3(0f, 0f, 0f); | |
root.transform.parent.transform.rotation = new Quaternion(0f, 0f, 0f, 0f); | |
root.transform.localPosition = new Vector3(0f, 0f, 0f); | |
root.transform.localRotation = new Quaternion(0f, 0f, 0f, 0f); | |
SkinnedMeshRenderer[] componentsInChildren = core.GetComponentsInChildren<SkinnedMeshRenderer>(); | |
List<Transform> list = new List<Transform>(); |
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
Starting program: /media/i30817/Huginn/Documents/projects/RetroArch/retroarch | |
[Thread debugging using libthread_db enabled] | |
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". | |
[INFO] RetroArch 1.8.9 (Git 14e20cea51) | |
[INFO] === Build ======================================= | |
[INFO] CPU Model Name: Intel(R) Core(TM)2 Duo CPU T6600 @ 2.20GHz | |
[INFO] Capabilities: MMX MMXEXT SSE SSE2 SSE3 SSSE3 SSE4 | |
[INFO] Built: Jul 1 2020 | |
[INFO] Version: 1.8.9 | |
[INFO] Git: 14e20cea51 |
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
$ ninja -C build | |
ninja: Entering directory `build' | |
[0/2] Generating cargo-build with a custom command. | |
** RUST VERSION ** | |
rustc 1.41.0 | |
** RELEASE MODE ** | |
Fresh pkg-config v0.3.17 | |
Fresh cfg-if v0.1.10 | |
Fresh unicode-xid v0.2.0 | |
Fresh cc v1.0.50 |
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
#!/bin/bash | |
#cd to the script dir if executed from outside | |
SCRIPT_PATH=$(dirname "$(readlink -f "$0")") | |
cd "$SCRIPT_PATH" | |
if [ ! -t 1 ]; then #not from terminal | |
SCRIPT=$(basename "$(readlink -f "$0")") | |
SUBPROC=1 x-terminal-emulator --profile "$USER" --working-directory "$SCRIPT_PATH" -e "./$SCRIPT" & | |
exit 0 |
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
#!/usr/bin/python3 | |
import os.path | |
import hashlib | |
import signal | |
import sys | |
import re | |
import io | |
import traceback | |
import argparse |
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
#!/usr/bin/env bash | |
hash parted 2>/dev/null || { echo >&2 "Program requires parted but it's not installed. Exit."; exit 1; } | |
hash numfmt 2>/dev/null || { echo >&2 "Program requires numfmt but it's not installed. Exit."; exit 1; } | |
hash truncate 2>/dev/null || { echo >&2 "Program requires truncate but it's not installed. Exit."; exit 1; } | |
hash mcopy 2>/dev/null || { echo >&2 "Program requires mtools but it's not installed. Exit."; exit 1; } | |
hash sed 2>/dev/null || { echo >&2 "Program requires sed but it's not installed. Exit."; exit 1; } | |
#hash udisksctl 2>/dev/null || { echo >&2 "Program requires udisksctl but it's not installed. Exit."; exit 1; } | |
#hash fdisk 2>/dev/null || { echo >&2 "Program requires fdisk but it's not installed. Exit."; exit 1; } | |
#hash mkdosfs 2>/dev/null || { echo >&2 "Program requires mkdosfs but it's not installed. Exit."; exit 1; } | |
#hash mattrib 2>/dev/null || { echo >&2 "Program requires mtools but it's not installed. Exit."; exit 1; } |
OlderNewer