Skip to content

Instantly share code, notes, and snippets.

import urllib2
from base64 import b64encode
import os
import sys
###Change these to change what game to download for
gamecode = 'RSBE'
gamecode2 = 'RVL-RSBJ'
svc = '9001'
password = 'LeNKXTpZy9Y48swJ'
/home/michael/emscripten/emcc -DSINC_LOWER_QUALITY -DHAVE_SHARED_CONTEXT -DSINGLE_THREAD -DNO_ASM -DNOSSE -DCC_resampler=mupen_CC_resampler -Dsinc_resampler=mupen_sinc_resampler -Drglgen_symbol_map=mupen_rglgen_symbol_map -Dmain_exit=mupen_main_exit -Dadler32=mupen_adler32 -Drarch_resampler_realloc=mupen_rarch_resampler_realloc -Daudio_convert_s16_to_float_C=mupen_audio_convert_s16_to_float_C -Daudio_convert_float_to_s16_C=mupen_audio_convert_float_to_s16_C -Daudio_convert_init_simd=mupen_audio_convert_init_simd -Drglgen_resolve_symbols_custom=mupen_rglgen_resolve_symbols_custom -Drglgen_resolve_symbols=mupen_rglgen_resolve_symbols -DSDL_VIDEO_OPENGL_ES2=1 -DSINC_LOWER_QUALITY -DHAVE_SHARED_CONTEXT -DSINGLE_THREAD -Iglide2gl/src/Glitch64/inc -DHAVE_OPENGLES2 -DDISABLE_3POINT -D__LIBRETRO__ -DINLINE="inline" -DM64P_PLUGIN_API -Imupen64plus-core/src -Imupen64plus-core/src/api -Ilibretro/libco -Ilibretro -DM64P_CORE_PROTOTYPES -D_ENDUSER_RELEASE -O2 -DNDEBUG -c -o glide2gl/src/Glitch64/textures.o glide2gl/src
Error: WebGL: enable: invalid enum value 0xde1 retroarch.js:1
Error: WebGL: texImage2D: no texture is bound to target TEXTURE_2D retroarch.js:1
Error: WebGL: texParameter: no texture is bound to this target retroarch.js:1
Error: WebGL: enable: invalid enum value 0xde1 retroarch.js:1
Error: WebGL: linkProgram: a fragment shader used in this program failed to compile, with this log:
ERROR: 0:30: 'gl_FragDepth' : undeclared identifier
retroarch.js:1
Error: WebGL: useProgram: program was not linked successfully retroarch.js:1
Error: WebGL: vertexAttribPointer: must have valid GL_ARRAY_BUFFER binding retroarch.js:1
diff --git a/glide2gl/src/Glitch64/geometry.c b/glide2gl/src/Glitch64/geometry.c
index 73eea75..754e7af 100644
--- a/glide2gl/src/Glitch64/geometry.c
+++ b/glide2gl/src/Glitch64/geometry.c
@@ -28,7 +28,7 @@
#include "main.h"
#include "../Glide64/rdp.h"
-struct draw_buffer {
+/*struct draw_buffer {
input_max_users = "16"
input_axis_threshold = "0.500000"
ui_companion_start_on_boot = "true"
video_gpu_record = "false"
input_remap_binds_enable = "true"
netplay_client_swap_input = "true"
input_descriptor_label_show = "true"
autoconfig_descriptor_label_show = "true"
input_descriptor_hide_unbound = "false"
load_dummy_on_core_shutdown = "true"
@ToadKing
ToadKing / gist:20710a49945715fae3e7
Created September 1, 2015 01:44
Remove Promoted Stream Items
// ==UserScript==
// @name Remove Promoted Stream Items
// @namespace http://userscripts.org/
// @version 0.1
// @description Hides promoted items from Twitter streams. Was only able to test with the stream from a sponsered hash tag, because promoted items in timelines are elusive. More specifically, sets style "display: none" on the parent of divs with classes promoted-tweet and stream-item-content.
// @include http://twitter.com/*
// @include https://twitter.com/*
// @author Dan Carleton
// @copyright 2011+, Public Domain
// ==/UserScript==
From 4e4dc6e60a8951f2ebe9bc0ab7506d8a669ec72c Mon Sep 17 00:00:00 2001
From: Toad King <toadking@toadking.com>
Date: Sat, 2 Jun 2012 01:01:03 -0400
Subject: [PATCH] fix initialization for the two custom CPU cores
in CPP those were valid declarations, but not in C
---
src/cpuintrf.c | 46 ++++++++++++++++++++++++++++++++++++++++++++--
1 file changed, 44 insertions(+), 2 deletions(-)
From 3b8f02c6df7f5e25ed6c17b4405a8d2bf8bf5cda Mon Sep 17 00:00:00 2001
From: Toad King <toadking@toadking.com>
Date: Sun, 10 Jun 2012 22:24:25 -0400
Subject: [PATCH] Fix byte order detection
---
src/port.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/port.h b/src/port.h
$ gdb -args /d/RetroArch/retroarch -c /d/RetroArch/retroarch.cfg -L /d/libretro
-prboom/retro.dll /d/doom19s/DOOMS/DOOM1.WAD
GNU gdb (GDB) 7.4.50.20120311-cvs
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-w64-mingw32".
For bug reporting instructions, please see:
diff --git a/Makefile.wii b/Makefile.wii
index 89364c3..c6a6c38 100644
--- a/Makefile.wii
+++ b/Makefile.wii
@@ -14,6 +14,8 @@ CC = $(DEVKITPPC)/bin/powerpc-eabi-gcc
CXX = $(DEVKITPPC)/bin/powerpc-eabi-g++
LD = $(DEVKITPPC)/bin/powerpc-eabi-ld
+FREETYPECONFIG = $(DEVKITPRO)/portlibs/ppc/bin/freetype-config
+