Skip to content

Instantly share code, notes, and snippets.

View tynril's full-sized avatar

Samuel Lorétan tynril

  • Riot Games
  • Santa Monica, CA
View GitHub Profile
@tynril
tynril / gist:3288767
Created August 7, 2012 19:47
Patch for HXCPP (r561) to enable automatic creation of output folders by the build tool
Index: build-tool/BuildTool.hx
===================================================================
--- build-tool/BuildTool.hx (revision 561)
+++ build-tool/BuildTool.hx (working copy)
@@ -234,6 +234,9 @@
{
var ext = inTarget.mExt=="" ? mExt : inTarget.mExt;
var file_name = mNamePrefix + inTarget.mOutput + ext;
+ if(!createDirRecursive(inTarget.mOutputDir)) {
+ throw "Unable to create output directory";
@tynril
tynril / gist:3276916
Created August 6, 2012 17:24
Patch for HXCPP (r559) to disable buffering on standard out (fixes the issue regarding traces displayed at process exit)
Index: include/hx/StdLibs.h
===================================================================
--- include/hx/StdLibs.h (revision 559)
+++ include/hx/StdLibs.h (working copy)
@@ -32,6 +32,7 @@
void __hxcpp_print(Dynamic &inV);
void __hxcpp_println(Dynamic &inV);
void __trace(Dynamic inPtr, Dynamic inData);
+void __hxcpp_stdlibs_boot();
@tynril
tynril / gist:2787613
Created May 25, 2012 12:00
[NME Patch] Enables the neash/nme.display.Graphics.drawPath instruction
Index: nme/display/GraphicsPathCommand.hx
===================================================================
--- nme/display/GraphicsPathCommand.hx (revision 0)
+++ nme/display/GraphicsPathCommand.hx (working copy)
@@ -0,0 +1,22 @@
+package nme.display;
+#if code_completion
+
+
+@:fakeEnum(Int) extern enum GraphicsPathCommand {