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
#include <iostream> | |
#include <cmath> | |
// Sample of an optimizer bug in Visual Studio 2003 - 2019 (or more) | |
// | |
// Compiling this program in Release (/O1, /O2 or /Ox and LTCG) in both x86 and x64 | |
// configurations produces a different output from unoptimized (Debug) configurations. | |
// | |
// Expected output: 709 | |
// Produced output: 31 |
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
#pragma once | |
#include <array> | |
#include <cstddef> | |
#include <cstdint> | |
#include <type_traits> | |
namespace detail { | |
template<typename T, std::size_t rank, std::size_t... sizes> | |
struct DimensionalArrayExplicitRank; |
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
#pragma once | |
#include <fstream> | |
#include <istream> | |
#include <iomanip> | |
#include <memory> | |
#include <unordered_map> | |
#include <variant> | |
class VDFParser |
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
Version: 1.2 | |
PPU-ca1f38fe2396cb3c99cac50faffca4ed340b3748: | |
"Crash workaround": | |
Games: | |
"Stuntman Ignition": | |
BLUS30073: [ 01.02 ] | |
Author: "Silent" | |
Patch Version: 1.0 | |
Patch: |
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
import os | |
import re | |
import sys | |
import datetime | |
import xml.etree.ElementTree as ET | |
PLATFORMS_DIR = 'Data/Platforms' | |
PLAYTIME_PLUGIN_DIR = 'Plugins/PlaytimeTracker' | |
if len(sys.argv) > 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
import sys | |
import os | |
if len(sys.argv) < 2: | |
exit() | |
# Dump all files specified in the command line | |
for arg in sys.argv[1:]: | |
decrypted = [] |
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
#include <Windows.h> | |
#include <iomanip> | |
#include <iostream> | |
#pragma comment(lib, "dxguid.lib") | |
#define DIRECTINPUT_VERSION 0x700 | |
#include <dinput.h> |
OlderNewer