This file contains hidden or 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 | |
me=$(basename "$0") | |
export me | |
function usage(){ | |
cat >&2 <<ENDOFHELP | |
Usage: $me [-r|--relative] [-c|--children] [-h|--help] TARGET [DESTINATION] | |
$me examines rom media files in TARGET and subdirectories | |
and for each set of filenames that only differs from a media |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 python3 | |
from struct import pack, unpack | |
from datetime import date | |
from pathlib import Path | |
import os.path | |
import argparse | |
import sys | |
import re | |
from typing import List |
This file contains hidden or 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 python3 | |
from struct import pack, unpack | |
from datetime import date | |
from pathlib import Path | |
import os.path | |
import argparse | |
import sys | |
import re | |
from typing import List |
This file contains hidden or 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 |
NewerOlder