Skip to content

Instantly share code, notes, and snippets.

View dilworks's full-sized avatar

Tom Maneiro dilworks

View GitHub Profile
diff --git a/SonicCDDecomp/RetroEngine.hpp b/SonicCDDecomp/RetroEngine.hpp
index 7cd77c3..76c1161 100644
--- a/SonicCDDecomp/RetroEngine.hpp
+++ b/SonicCDDecomp/RetroEngine.hpp
@@ -104,6 +104,27 @@ typedef unsigned int uint;
#endif
+//
+#if RETRO_USING_SDL
@dilworks
dilworks / clang_buildfix_debianstable.diff
Created April 29, 2019 21:25
Build Dolphin with clang-3.8 (Debian Stable)
diff --git a/Source/Core/Common/GL/GLInterface/EGL.cpp b/Source/Core/Common/GL/GLInterface/EGL.cpp
index 93a60ca9d8..9f299550fb 100644
--- a/Source/Core/Common/GL/GLInterface/EGL.cpp
+++ b/Source/Core/Common/GL/GLInterface/EGL.cpp
@@ -289,7 +289,7 @@ std::unique_ptr<GLContext> GLContextEGL::CreateSharedContext()
return nullptr;
}
- return new_context;
+ return std::move(new_context);
@dilworks
dilworks / clang_linkerror.log
Created April 29, 2019 19:06
Clang linker error
[ 23%] Linking CXX executable ../../../Binaries/traversal_server
/usr/bin/ld: CMakeFiles/common.dir/Random.cpp.o: referencia sin definir al símbolo '__cxa_thread_atexit@@CXXABI_1.3.7'
//usr/lib/x86_64-linux-gnu/libstdc++.so.6: error adding symbols: DSO missing from command line
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Source/Core/Common/CMakeFiles/traversal_server.dir/build.make:94: fallo en las instrucciones para el objetivo 'Binaries/traversal_server'
make[2]: *** [Binaries/traversal_server] Error 1
CMakeFiles/Makefile2:971: fallo en las instrucciones para el objetivo 'Source/Core/Common/CMakeFiles/traversal_server.dir/all'
make[1]: *** [Source/Core/Common/CMakeFiles/traversal_server.dir/all] Error 2
Makefile:151: fallo en las instrucciones para el objetivo 'all'
make: *** [all] Error 2
@dilworks
dilworks / clang_builderrors.log
Created April 29, 2019 15:37
Dolphin build errors with Clang on Debian stable
--clang-3.8
[ 15%] Building CXX object Source/Core/Common/CMakeFiles/common.dir/GL/GLInterface/EGL.cpp.o
/home/tomman/workbench/dolphin-emu/Source/Core/Common/GL/GLInterface/EGL.cpp:292:10: error: no viable conversion from returned value of type
'unique_ptr<GLContextEGL>' to function return type 'unique_ptr<GLContext>'
return new_context;
^~~~~~~~~~~
/usr/include/c++/v1/memory:2459:29: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from
'std::unique_ptr<GLContextEGL>' to 'const std::__1::unique_ptr<GLContext, std::__1::default_delete<GLContext> > &' for 1st argument
class _LIBCPP_TYPE_VIS_ONLY unique_ptr
^
@dilworks
dilworks / gcc_63_builderror.log
Created April 28, 2019 22:27
Dolphin build error log on Debian Stable
[ 64%] Building CXX object Source/Core/Core/CMakeFiles/core.dir/HW/WiimoteEmu/Camera.cpp.o
/home/tomman/workbench/dolphin-emu/Source/Core/Core/HW/WiimoteEmu/Camera.cpp: In member function ‘void WiimoteEmu::CameraLogic::Update(const Common::Matrix44&, bool)’:
/home/tomman/workbench/dolphin-emu/Source/Core/Core/HW/WiimoteEmu/Camera.cpp:105:36: error: call to non-constexpr function ‘constexpr std::array<_Tp, _Nm>::size_type std::array<_Tp, _Nm>::size() const [with _Tp = Common::TVec3<float>; long unsigned int _Nm = 2ul; std::array<_Tp, _Nm>::size_type = long unsigned int]’
std::array<CameraPoint, leds.size()> camera_points;
~~~~~~~~~^~
In file included from /home/tomman/workbench/dolphin-emu/Source/Core/Common/ChunkFile.h:16:0,
from /home/tomman/workbench/dolphin-emu/Source/Core/Core/HW/WiimoteEmu/Camera.h:7,
from /home/tomman/workbench/dolphin-emu/Source/Core/Core/HW/WiimoteEmu/Camera.cpp:5:
/usr/include/c++/6/array:171:7: note: ‘constexpr std::arr
@dilworks
dilworks / rdbruteforcekeygen.c
Last active August 30, 2018 17:41
Brute Force RegKey for RichDiamond [modified for GCC/Linux]
// Brute Force RegKey for RichDiamond
// change VERSIONKEY to your generated VersionKey
// Linux: gcc -std=gnu99 -O3 -fopenmp -march=native -o rdbruteforcekeygen rdbruteforcekeygen.c
// Windows: test with VC++2008/2010?
#define VERSIONKEY 0xCE9190D8;
#include <stdio.h>
#ifdef _MSC_VER
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package ve.net.tsdx.gs.mdrom;
import java.nio.charset.Charset;
import java.util.*;
import ve.net.tsdx.gs.*;
import ve.net.tsdx.gs.locale.*;
@dilworks
dilworks / testfixspaces.sh
Created March 29, 2015 23:48
Worst spaces-in-paths workaround for Steam/primusrun ever
#!/bin/bash
echo "CMD: $@"
echo "ARGS: $#"
BASEPATH=""
if [ -f "$1" ]
then
echo "Valid at 1"
BASEPATH=$1
tomman@tomman-lp-c2:/tmp$ ./locale-check
* Parent: 1918 mate-panel
* Terminal: 3259 xterm
* Shell: 3269 bash
Looks good. ♥
* You are using the es_VE.UTF-8 locale.
* Shell's locale matches terminal's locale.
* Terminal's locale matches parent process locale.
'CrazyBus - Venezuelan bus racing/RPG "experiment"
'ONLY FOR SEGA(tm) Genesis(tm)/MegaDrive(tm)
'Codigo en dominio publico o WTFPL, elije tu licencia :)
'===========BEX 1.37 o superior es requerido para compilar esto=========
'cb68k v2.00-branch (Momohime) 18/03/2010
'core 2 - BEX sub/func build
'
'ROADMAP:
'========
'1.xx (noname - 29/10/2005): Ancient codebase