Skip to content

Instantly share code, notes, and snippets.

@Hoikas
Hoikas / prp_as_text.py
Last active August 16, 2023 05:23 — forked from Deledrius/prp_as_text.py
A utility for producing a textual overview of a PRP file, used to compare in diffs.
#!/usr/bin/env python
# PRP_as_Text is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# PRP_as_Text is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
PyObject* pyVault::GetAllOnlinePlayers()
{
VaultPlayerInfoNode *playerNode;
PyObject *playerList = PyList_New(0);
playerNode->SetOnline(1);
ARRAY(unsigned) nodeIds;
VaultFindNodesAndWait(playerNode, &nodeIds); //<- here is the problem
if (nodeIds.Count())
@Hoikas
Hoikas / gist:4365718
Created December 23, 2012 20:06 — forked from branan/gist:1897875
# basic NSIS bookkeeping. Nothing special
OutFile gehn_shard.exe
RequestExecutionLevel admin
Name "Gehn Shard"
Var CYAN_URULIVE_DIR
Var INSTALL_TO_URU
Function .onInit
StrCpy $INSTDIR "$PROGRAMFILES\Gehn Shard"
FunctionEnd
@Hoikas
Hoikas / binkbegone.sh
Created December 11, 2012 05:22 — forked from cwalther/binkbegone.sh
CWE-ou & H-uru/Plasma History Rewrite
#!/bin/bash
if test "x$1" == x -o "x$2" == x; then
echo "Usage: $0 <original CWE-ou repo> <original H-uru/Plasma repo>"
exit 1
fi
if test -e old-hg -o -e uncorrupt-git -o -e uncorrupt-hg -o -e filemap1 -o -e filemap2 -o -e filtered-hg -o -e filtered-git; then
echo "Output files/folders exist."
read -p "OK to delete? (y/n) " REPLY
diff --git a/Sources/Plasma/NucleusLib/pnAsyncCoreExe/Private/Win32/pnAceW32Dns.cpp b/Sources/Plasma/NucleusLib/pnAsyncCoreExe/Private/Win32/pnAceW32Dns.cpp
index 3aa557b..2baf2d2 100644
--- a/Sources/Plasma/NucleusLib/pnAsyncCoreExe/Private/Win32/pnAceW32Dns.cpp
+++ b/Sources/Plasma/NucleusLib/pnAsyncCoreExe/Private/Win32/pnAceW32Dns.cpp
@@ -88,9 +88,6 @@ static unsigned s_nextLookupCancelId = 1;
//===========================================================================
static void LookupProcess (Lookup * lookup, unsigned error) {
- unsigned count = 0;
- plNetAddress* addrs = nil;