Skip to content

Instantly share code, notes, and snippets.

View Dramacydal's full-sized avatar
🔫
Just smile like a rifle

Dramacydal

🔫
Just smile like a rifle
View GitHub Profile
case 706:
v23 = a7;
CDataStore__ReadInt32_2(a7, (int)&v36);
CDataStore__ReadInt32_2(v23, (int)&Args);
sub_4C5650(SLODWORD(v36), Args);
CDataStore__ReadInt16(v23, (int)((char *)&a7 + 2));
v22 = 0;
if ( HIWORD(a7) )
{
do
import idaapi
import idc
# by http://reverseengineering.stackexchange.com/users/2318/w-s
def apply_dif_file(dif_file_name):
print "Applying " + dif_file_name + " to database."
f = open(dif_file_name, "r")
for l in f:
if l.find(":") == -1:
continue
opcode_list = [
(0x357B, "CMSG_ACCEPT_GUILD_INVITE"),
(0x3463, "CMSG_ACCEPT_LEVEL_GRANT"),
(0x30D8, "CMSG_ACCEPT_TRADE"),
(0x3560, "CMSG_ACCEPT_WARGAME_INVITE"),
(0x341F, "CMSG_ACTIVATE_TAXI"),
(0x3555, "CMSG_ADDON_LIST"),
(0x35E5, "CMSG_ADD_BATTLENET_FRIEND"),
(0x365E, "CMSG_ADD_FRIEND"),
(0x3662, "CMSG_ADD_IGNORE"),
diff --git a/src/games/wow/CASCFolder.cpp b/src/games/wow/CASCFolder.cpp
index 3b6dfbc..751a8cf 100644
--- a/src/games/wow/CASCFolder.cpp
+++ b/src/games/wow/CASCFolder.cpp
@@ -191,6 +191,8 @@ void CASCFolder::initVersion()
else
LOG_INFO << "Version successfully found :" << m_version;
+ file.close();
+
diff --git a/src/games/wow/CASCFolder.cpp b/src/games/wow/CASCFolder.cpp
index 3b6dfbc..751a8cf 100644
--- a/src/games/wow/CASCFolder.cpp
+++ b/src/games/wow/CASCFolder.cpp
@@ -191,6 +191,8 @@ void CASCFolder::initVersion()
else
LOG_INFO << "Version successfully found :" << m_version;
+ file.close();
+
public function getMap()
{
return [
self::FIELD__ID => [
'getter' => 'getId',
'setter' => 'setId',
'role' => [
self::ROLE__PRIMARY_KEY => true,
self::ROLE__GENERATE_KEY => true,
],
<?php
/**
* Checks that float value has fractional part
*
* @param float $value
*
* @return bool
*/
function hasFractionalPart($value)
{
#!/bin/bash
##/*
## * @Author: AllenYL
## * @Date: 2017-11-08 11:37:31
## * @Last Modified by: allen7575@gmail.com
## * @Last Modified time: 2017-11-08 11:37:31
## */
#
.chat-line__message, .tw-root--theme-dark .top-nav__external-link {
color: #d4d4d4;
}
.drops-list__count {
background-color: #5a8045;
}
.player {
background-color: #1f1f1f;
// ==UserScript==
// @name twitch suggested friends hide
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://www.twitch.tv/*
// @grant none
// @require http://code.jquery.com/jquery-3.4.1.min.js
// ==/UserScript==