Skip to content

Instantly share code, notes, and snippets.

View MrSapps's full-sized avatar
👀

MrSapps MrSapps

👀
View GitHub Profile
#include <memory>
class fool
{
public:
fool(std::unique_ptr<char[]>&& ptr)
: mPtr(std::move(ptr))
{
}
@MrSapps
MrSapps / check_inc.py
Created June 3, 2016 09:46 — forked from zach-brockway/check_inc.py
A quick-and-dirty python script to find invalid ClInclude nodes in VS 2010 projects
from __future__ import print_function
import os, stat
import sys
from collections import namedtuple
from shutil import move
import fileinput
import os
import os.path
import xml.etree.ElementTree as ET
set SDL2DIR=C:\SDL2-2.0.3
mkdir build
cd build
cmake .. -G"Visual Studio 12 2013 Win64"
msbuild alive.sln
pause
"locations": [{
"dataset": "AoPc",
"file": "Barrels.ddv"
}],
"name": "Barrels_ddv_AoPc"
"locations": [{
"dataset": "AoPsx",
"file": "E1.MOV",
"locations": [
{
"dataset": "AoPc",
"file": "Barrels.ddv"
},
{
"dataset": "AoPsx",
"file": "E1.MOV",
"start_sector": 0,
"end_sector": 3569
[{
"locations": [{
"dataset": "AoPc",
"file": "Barrels.ddv"
}, {
"dataset": "AoPsx",
"file": "E1.MOV",
"start_sector": 0,
"end_sector": 3569
}],
+ [0] {mOffset=0 iSampleData={ size=0 } } Vab::PsxVag
+ [1] {mOffset=956 iSampleData={ size=0 } } Vab::PsxVag
+ [2] {mOffset=1582 iSampleData={ size=0 } } Vab::PsxVag
+ [3] {mOffset=2232 iSampleData={ size=0 } } Vab::PsxVag
+ [4] {mOffset=3030 iSampleData={ size=0 } } Vab::PsxVag
+ [5] {mOffset=3620 iSampleData={ size=0 } } Vab::PsxVag
+ [6] {mOffset=4322 iSampleData={ size=0 } } Vab::PsxVag
+ [7] {mOffset=4694 iSampleData={ size=0 } } Vab::PsxVag
+ [8] {mOffset=4986 iSampleData={ size=0 } } Vab::PsxVag
+ [9] {mOffset=5384 iSampleData={ size=0 } } Vab::PsxVag
struct StateCondition
{
std::string mName;
std::function<bool()> mCondition;
};
struct StateEntry
{
std::string mName;
std::vector<StateCondition> mTos;
#pragma once
#include <windows.h>
#include <iomanip>
#include <iostream>
#include <sstream>
#include <cmath>
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using static CreatureEditor.AnimState;
namespace CreatureEditor
{