Skip to content

Instantly share code, notes, and snippets.

/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
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'
diff --git a/src/library_openal.js b/src/library_openal.js
index 7f5d5df..9477694 100644
--- a/src/library_openal.js
+++ b/src/library_openal.js
@@ -7,11 +7,18 @@ var LibraryOpenAL = {
currentContext: null,
QUEUE_INTERVAL: 25,
QUEUE_LOOKAHEAD: 100,
+
+ updateStartTime: function(context) {
@ToadKing
ToadKing / gist:6206545
Created August 11, 2013 19:39
sdl event testcase
#include <stdio.h>
#include <stdlib.h>
#include <SDL/SDL.h>
#include <emscripten.h>
// bug - SDL_GetKeyboardState doesn't return scancodes, it returns keycodes, so acts exactly like
// SDL_GetKeyState instead
#define SDL_GetKeyState SDL_GetKeyboardState
int result = 0;
@ToadKing
ToadKing / gist:6049763
Last active December 20, 2015 01:29
glGetAttachedShaders test
#include <GLES2/gl2.h>
#include <EGL/egl.h>
#include <stdio.h>
#include <stdlib.h>
static void die(const char *msg)
{
printf("%s\n", msg);
abort();
}
#include <stdio.h>
#include <stdlib.h>
#include <SDL/SDL.h>
#ifdef EMSCRIPTEN
#include <emscripten/emscripten.h>
// bug - SDL_GetKeyboardState doesn't return scancodes, it returns keycodes, so acts exactly like
// SDL_GetKeyState instead
#define SDL_GetKeyState SDL_GetKeyboardState
#endif
@ToadKing
ToadKing / gist:4632063
Last active December 11, 2015 17:08
RetroArch Android nits
* Can't assign custom keys for unsupported IME's, should either allow custom
configuration (hard) or have a standard set of binds users can configure to
match from the IME config (easy!)
* Default overlays not the best, need to make better ones (or find someone who
makes them now its released)
/* RetroArch - A frontend for libretro.
* Copyright (C) 2010-2012 - Hans-Kristian Arntzen
*
* RetroArch is free software: you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Found-
* ation, either version 3 of the License, or (at your option) any later version.
*
* RetroArch is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See the GNU General Public License for more details.
diff --git a/console/rarch_console_exec.c b/console/rarch_console_exec.c
index d599c56..204debb 100644
--- a/console/rarch_console_exec.c
+++ b/console/rarch_console_exec.c
@@ -140,6 +140,9 @@ void rarch_console_exec(const char *path)
fclose(fp);
DCFlushRange(EXECUTE_ADDR, size);
#else
+#ifdef HAVE_LOGGER
+ *((vu32 *) 0x93300000) = logger_send;
diff --git a/console/rarch_console_exec.c b/console/rarch_console_exec.c
index d599c56..204debb 100644
--- a/console/rarch_console_exec.c
+++ b/console/rarch_console_exec.c
@@ -140,6 +140,9 @@ void rarch_console_exec(const char *path)
fclose(fp);
DCFlushRange(EXECUTE_ADDR, size);
#else
+#ifdef HAVE_LOGGER
+ *((vu32 *) 0x93300000) = logger_send;