Skip to content

Instantly share code, notes, and snippets.

View hcorion's full-sized avatar

Zion hcorion

  • Canada, somewhere
View GitHub Profile
using UnityEngine;
using System.Collections;
public class MovingScriptNew : MonoBehaviour {
public float horizontalSpeed = 4;
public float verticalSpeed = 2;
private float verticalMovement;
private float playerHorizontalMovement;
private Rigidbody myRigidbody;
using UnityEngine;
using System.Collections;
public class MovingScriptNew : MonoBehaviour {
public float horizontalSpeed = 4;
public float verticalSpeed = 2;
private float verticalMovement;
private float playerHorizontalMovement;
private Rigidbody myRigidbody;
enum KeyPressSurfaces
{
KEY_PRESS_SURFACE_DEFAULT,
KEY_PRESS_SURFACE_UP,
KEY_PRESS_SURFACE_DOWN,
KEY_PRESS_SURFACE_LEFT,
KEY_PRESS_SURFACE_RIGHT,
KEY_PRESS_SURFACE_TOTAL
};
KEY_PRESS_SURFACE_DEFAULT = someValue
@hcorion
hcorion / raytracer.nim
Last active October 8, 2018 18:26
A port of a raytracer, programmed in Nim, built by someone else, to sdl2
#Originally created by AdrianV and can be found here: https://gist.github.com/AdrianV/5774141
#Modified by me, hcorion to add sdl2 support and bring it up to speed with version 0.14.2 of Nim (nim-lang.org).
import math
import sequtils
import sdl2
import times
const
width = 1280
import strutils
let vars = ["ACC", "BAK", "NIL"]
proc isNumber*(input: string): bool =
for i in 0..input.len-1:
if not input[i].isDigit:
return false
return true
let spritePal* {.codegenDecl: "$# $# __attribute__((aligned(4)))".} : array[4, uint16] =
[(uint16)0x001E,0x7FFF,0x03E0,0x7C1F]
@hcorion
hcorion / CmakeLists.txt
Created May 5, 2017 05:11
RPCS3 cmake with installation
cmake_minimum_required(VERSION 2.8.12)
# uncomment next line if you want to build with GDB stub
# add_definitions(-DWITH_GDB_DEBUGGER)
set(ASMJIT_STATIC TRUE)
if (NOT CMAKE_BUILD_TYPE)
message(STATUS "No build type selected, default to Release")
set(CMAKE_BUILD_TYPE "Release")
diff --git a/rpcs3/CMakeLists.txt b/rpcs3/CMakeLists.txt
index a2c2de58..a634d9e2 100644
--- a/rpcs3/CMakeLists.txt
+++ b/rpcs3/CMakeLists.txt
@@ -2,10 +2,18 @@ cmake_minimum_required(VERSION 2.8.12)
set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/cmake_modules")
set(RES_FILES "")
-include(cotire)
+find_package(Qt5 REQUIRED COMPONENTS Widgets)
Fixed 0 roots.
checking extents
Extent back ref already exists for 967000064 parent 0 root 2
ERROR: add_tree_backref failed (extent items tree block): File exists
checksum verify failed on 967049216 found 0B40D9AC wanted 00003500
checksum verify failed on 967049216 found 0B40D9AC wanted 00003500
bytenr mismatch, want=967049216, have=889192478
Ok we have overlapping extents that aren't completely covered by each other, this is going to require more careful thought. The extents are [966995968-16384] and [967000064-16384]
enabling repair mode
Checking filesystem on /dev/sdb2
[ 14%] Building CXX object Externals/wxWidgets3/CMakeFiles/wx.dir/src/common/arcfind.cpp.o
/home/zion/.cache/yay/dolphin-emu-git/src/dolphin-emu/Source/Core/Common/x64CPUDetect.cpp:41:12: error: ambiguating new declaration of ‘u64 _xgetbv(u32)’
static u64 _xgetbv(u32 index)
^~~~~~~
In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/8.1.0/include/x86intrin.h:74,
from /home/zion/.cache/yay/dolphin-emu-git/src/dolphin-emu/Source/Core/Common/Intrinsics.h:30,
from /home/zion/.cache/yay/dolphin-emu-git/src/dolphin-emu/Source/Core/Common/x64CPUDetect.cpp:10:
/usr/lib/gcc/x86_64-pc-linux-gnu/8.1.0/include/xsaveintrin.h:60:1: note: old declaration ‘long long int _xgetbv(unsigned int)’
_xgetbv (unsigned int __A)
^~~~~~~