Skip to content

Instantly share code, notes, and snippets.

View rsp4jack's full-sized avatar
🕒
Awaiting

rsp4jack rsp4jack

🕒
Awaiting
  • 12:16 (UTC +08:00)
View GitHub Profile
@rsp4jack
rsp4jack / parser.cpp
Last active July 9, 2022 02:37
Emule Known.met parser
// Under GPLv3
// 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 any later version.
// This code 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 GNU General Public License for more details.
#include "c8r2mb.hpp"
#include <algorithm>
#include <array>
#include <bit>
#include <cstdint>
@rsp4jack
rsp4jack / main.js
Last active May 2, 2023 09:38
betterncm plugin, MIT License
globalThis.TrackHck = function (t) {
var o = this.eN()[t];
var trk = o && (o.track && o.track.track ? o.track.track : o.track || o);
if (!trk) {
return o;
}
var f = trk.privilege;
if (!f) {
return o;
}