Skip to content

Instantly share code, notes, and snippets.

How to update RARFileSource
1) Commit and push changes to the master branch
2) Checkout mpc-hc branch
3) Do "git pull --rebase origin master" to rebase the MPC-HC compatability
changes onto the master branch
4) Do "git tag mpc-hc-X.Y.Z-N" where X.Y.Z is the to be released
MPC-HC version and N is the RARFileSource update number for that
MPC-HC version
5) Do "git push --force --tags origin" to update our RARFileSource repository
6) Commit the submodule update in MPC-HC repository
@CrossVR
CrossVR / gist:6188337
Last active December 20, 2015 20:09
Evaluation Queries
# Add new components
INSERT INTO component VALUES
('API', '', ''),
('Audio Switcher', '', ''),
('Installer', '', ''),
('Internal Filters', '', ''),
('Shaders', '', ''),
('Subtitles', '', ''),
('Translations', '', ''),
('User Interface', '', ''),
> LAVSplitter.ax!6c71f890()
[Frames below may be incorrect and/or missing, no symbols loaded for LAVSplitter.ax]
quartz.dll!CFilterGraph::ConnectDirect() + 0x6f bytes
mpc-hc.exe!CFGManager::ConnectDirect(IPin * pPinOut, IPin * pPinIn, const _AMMediaType * pmt) Line 534 + 0x41 bytes C++
mpc-hc.exe!CFGManagerPlayer::ConnectDirect(IPin * pPinOut, IPin * pPinIn, const _AMMediaType * pmt) Line 2320 + 0x11 bytes C++
mpc-hc.exe!CFGManager::ConnectFilterDirect(IPin * pPinOut, IBaseFilter * pBF, const _AMMediaType * pmt) Line 1199 + 0x17 bytes C++
mpc-hc.exe!CFGManager::Connect(IPin * pPinOut, IPin * pPinIn, bool bContinueRender) Line 764 + 0x14 bytes C++
mpc-hc.exe!CFGManager::Connect(IPin * pPinOut, IPin * pPinIn) Line 575 C++
mpc-hc.exe!CFGManager::ConnectFilter(IBaseFilter * pBF, IPin * pPinIn) Line 1126 + 0x12 bytes C++
mpc-hc.exe!CFGManager::RenderFile(const wchar_t * lpcwstrFileName, const wchar_t * lpcwstrPlayList) Line 914 + 0x14 bytes C++
@CrossVR
CrossVR / twitch_plays_pokemon_snippets.js
Last active August 29, 2015 13:56 — forked from gabstv/twitch_plays_pokemon_snippets.js
Improved chat filter and shows UTC time of your button presses
//reddit: regulargabs
//MIT license
// USAGE:
// go to http://www.twitch.tv/twitchplayspokemon
// Paste the "components" that you want on the javascript console of your browser and run.
// ###############
// # COMPONENTS: #
// ###############
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "extras/pokemontools/crystal.py", line 4858, in __init__
self.parse()
File "extras/pokemontools/crystal.py", line 4871, in parse
self.second_map_header = SecondMapHeader(self.second_map_header_address, map_group=self.map_group, map_id=self.map_id, debug=self.debug)
File "extras/pokemontools/crystal.py", line 4945, in __init__
self.parse()
File "extras/pokemontools/crystal.py", line 4979, in parse
self.event_header = MapEventHeader(self.event_header_address, map_group=self.map_group, map_id=self.map_id, debug=self.debug)

Some dialogue changes based on whether the game was registered with a mobile phone:

CeruleanPokeCenter1F

Before registering: "For battles, I'd much rather use POKéMON I've been raising, even if they're weaker than some newly caught POKéMON."

After registering: "Do you battle by mobile phone? If time runs out during a battle, waiting to see who won is really nerve wracking."

SaffronPokeCenter1F

@CrossVR
CrossVR / gist:bab3e023b5b813e18cb7
Last active August 29, 2015 14:20
Dolphin Depth Buffer Test
// adapted from the original acube demo by tkcne.
// enjoy
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <malloc.h>
#include <math.h>
#include <gccore.h>
MacBook-Armada:build Armada$ make
[ 0%] Built target osg-ffmpeg-videoplayer
[ 0%] Built target local_tinyxml
[ 1%] Built target oics
[ 2%] Built target osgQt
-- OpenMW version 0.40.0
[ 2%] Built target git-version
[ 24%] Built target components
[ 24%] Linking CXX executable ../../OpenMW.app/Contents/MacOS/openmw
Undefined symbols for architecture x86_64:
MacBook-Armada:build Armada$ make VERBOSE=1
/usr/local/Cellar/cmake/3.7.0/bin/cmake -H/Users/Armada/Source/openmw -B/Users/Armada/Source/openmw/build --check-build-system CMakeFiles/Makefile.cmake 0
/usr/local/Cellar/cmake/3.7.0/bin/cmake -E cmake_progress_start /Users/Armada/Source/openmw/build/CMakeFiles /Users/Armada/Source/openmw/build/CMakeFiles/progress.marks
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/Makefile2 all
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f extern/osg-ffmpeg-videoplayer/CMakeFiles/osg-ffmpeg-videoplayer.dir/build.make extern/osg-ffmpeg-videoplayer/CMakeFiles/osg-ffmpeg-videoplayer.dir/depend
cd /Users/Armada/Source/openmw/build && /usr/local/Cellar/cmake/3.7.0/bin/cmake -E cmake_depends "Unix Makefiles" /Users/Armada/Source/openmw /Users/Armada/Source/openmw/extern/osg-ffmpeg-videoplayer /Users/Armada/Source/openmw/build /Users/Armada/Source/openmw/build/extern/osg-ffmpeg-videoplayer /Users/Armada/Source/openmw/build/extern/osg-ffmpeg-videoplay
float ps_sun_direction = 0.0f;
class CCC_SunDirection : public CCC_Float
{
public:
CCC_SunDirection(LPCSTR N, float* V) : CCC_Float(N, V, 0.0f, 360.0f) {}
virtual void Execute(LPCSTR args)
{
CCC_Float::Execute(args);
g_pGamePersistent->Environment().m_sun_azimuth = ps_sun_direction * (PI / 180.0f);
}