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
#!/bin/bash | |
# check for xinput | |
command -v xinput >/dev/null 2>&1 || { echo "install xinput" >&2; exit 1; } | |
# list pointers | |
list=`xinput list | grep "slave *pointer" | grep -vi "virtual core" | grep -vi "keyboard"` | |
count=`echo "$list" | wc -l` | |
echo "$list" |
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 "SDL.h" | |
#include <stdio.h> | |
int main(int argc, char *argv[]) { | |
SDL_Window *window; | |
SDL_Init(SDL_INIT_VIDEO); | |
SDL_Renderer *Renderer = NULL; | |
window = SDL_CreateWindow( |
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
"video.cfg" | |
{ | |
"VendorID" "4318" | |
"DeviceID" "5058" | |
"setting.cpu_level" "1" | |
"setting.mem_level" "2" | |
"setting.gpu_mem_level" "2" | |
"setting.defaultres" "1920" | |
"setting.defaultresheight" "1080" | |
"setting.gpu_level" "3" |
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
diff --git a/src/AudioManager.cpp b/src/AudioManager.cpp | |
index c76e256..539bbe1 100644 | |
--- a/src/AudioManager.cpp | |
+++ b/src/AudioManager.cpp | |
@@ -11,6 +11,9 @@ std::shared_ptr<AudioManager> AudioManager::sInstance; | |
void AudioManager::mixAudio(void *unused, Uint8 *stream, int len) | |
{ | |
+ if(!AUDIO_ENABLED) | |
+ return; |
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
*** Error in `../emulationstation': munmap_chunk(): invalid pointer: 0x00007fffe4fc56a0 *** | |
======= Backtrace: ========= | |
/lib/x86_64-linux-gnu/libc.so.6(+0x7f576)[0x7fa2f84d5576] | |
../emulationstation(_ZN13VolumeControl6deinitEv+0x14)[0x430f94] | |
../emulationstation(_ZN10SystemData10launchGameEP6WindowP8GameData+0x1b0)[0x42c080] | |
../emulationstation(_ZN11GuiGameList5inputEP11InputConfig5Input+0x1fc)[0x44693c] | |
../emulationstation(_ZN6Window5inputEP11InputConfig5Input+0x12d)[0x4331dd] | |
../emulationstation(_ZN12InputManager10parseEventERK9SDL_Event+0x33f)[0x425a2f] | |
../emulationstation(main+0x63d)[0x41a8ed] | |
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5)[0x7fa2f8477ea5] |