Skip to content

Instantly share code, notes, and snippets.

View Misiur's full-sized avatar
🔨
reverse engingeering

Misiur

🔨
reverse engingeering
View GitHub Profile
diff --git a/openfl/display/BitmapData.hx b/openfl/display/BitmapData.hx
index 55a2209..01eeff2 100644
--- a/openfl/display/BitmapData.hx
+++ b/openfl/display/BitmapData.hx
@@ -484,6 +484,14 @@ class BitmapData implements IBitmapDrawable {
renderSession.maskManager.pushRect (clipRect, new Matrix ());
}
+
+ var blendModeCache = renderSession.blendModeManager.currentBlendMode;
Entering 'project/lib/cairo'
diff --git a/src/cairo-ft-font.c b/src/cairo-ft-font.c
index e0843ae..2e598f0 100644
--- a/src/cairo-ft-font.c
+++ b/src/cairo-ft-font.c
@@ -69,7 +69,9 @@
#if HAVE_UNISTD_H
#include <unistd.h>
#else
-#define access(p, m) 0
- Compiling group 'lime' with flags -Iinclude -Ilib/cairo/include -Ilib/cairo/include/configs/linux/ -DLIME_CAIRO -DHAVE_CONFIG_H -DCAIRO_HAS_FT_FONT -Ilib/curl/include/ -DLIME_CURL -DCURL_STATICLIB -Ilib/jpeg/ -DLIME_JPEG -Ilib/freetype/include -DLIME_FREETYPE -Ilib/harfbuzz/src -DLIME_HARFBUZZ -Ilib/lzma/src -DLIME_LZMA -Ilib/ogg/include/ -Ilib/vorbis/include/ -DLIME_OGG -Ilib/openal/include/ -DLIME_OPENAL -DAL_LIBTYPE_STATIC=1 -DLIME_OPENGL -Ilib/png/ -Ilib/zlib/ -DLIME_PNG -Ilib/sdl/include/ -Ilib/sdl/include/configs/linux/ -DHAVE_LIBC -DLIME_SDL -DLIME_ZLIB -c -fvisibility=hidden -O2 -fpic -fPIC -DHX_LINUX -DHXCPP_VISIT_ALLOCS(haxe) -DHXCPP_API_LEVEL=0(haxe) -m32 -I/usr/lib/haxe/lib/hxcpp/3,3,49/include tags=[haxe,static]
- Compile: src/ExternalInterface.cpp
- Compile: src/graphics/cairo/CairoBindings.cpp
- Compile: src/net/curl/CURLBindings.cpp
- Compile: src/graphics/format/JPEG.cpp
- Compile: src/text/Font.cpp
- Compile: src/text/TextLayout.cpp
- Compile: src/utils/compress/LZMA.cpp
- Compile
- Compiling group 'lime' with flags -Iinclude -Ilib/cairo/include -Ilib/cairo/include/configs/windows/ -DLIME_CAIRO -DHAVE_CONFIG_H -DCAIRO_WIN32_STATIC_BUILD -DCAIRO_HAS_FT_FONT -Ilib/curl/include/ -DLIME_CURL -DCURL_STATICLIB -Ilib/jpeg/ -DLIME_JPEG -Ilib/freetype/include -DLIME_FREETYPE -Ilib/harfbuzz/src -DLIME_HARFBUZZ -Ilib/lzma/src -DLIME_LZMA -Ilib/nfd/src/include/ -DLIME_NFD -Ilib/ogg/include/ -Ilib/vorbis/include/ -DLIME_OGG -Ilib/openal/include/ -DLIME_OPENAL -DAL_LIBTYPE_STATIC=1 -DLIME_OPENGL -Ilib/png/ -Ilib/zlib/ -DLIME_PNG -Ilib/sdl/include/ -Ilib/sdl/include/configs/windows/ -DHAVE_LIBC -DLIME_SDL -DLIME_ZLIB -nologo /WX- /fp:precise -DHX_WINDOWS -D_USING_V140_SDK71_ -GR -O2(optim-std) -Zi(debug) -FdD:\Dev\lime\project\obj/msvc19xp/vc.pdb(debug) -Od(debug) -O2(release) -Os(optim-size) -FS -Oy- -c -EHs -GS- -arch:SSE -ID:/Programs/Haxe/haxe/lib/hxcpp/3,3,49/include -DHXCPP_VISIT_ALLOCS(haxe) -DHXCPP_API_LEVEL=0(haxe) -D_CRT_SECURE_NO_DEPRECATE -D_ALLOW_MSC_VER_MISMATCH -D_ALLOW_ITERATOR_DEBUG
package;
import nape.util.BitmapDebug;
import nape.util.Debug;
import nape.phys.Body;
import nape.phys.BodyType;
import nape.shape.Circle;
import nape.shape.Polygon;
import nape.geom.Vec2;
import nape.space.Space;
diff --git a/src/edge/core/macro/BuildSystem.hx b/src/edge/core/macro/BuildSystem.hx
index 1cf3887..a5ab3eb 100644
--- a/src/edge/core/macro/BuildSystem.hx
+++ b/src/edge/core/macro/BuildSystem.hx
@@ -14,6 +14,9 @@ class BuildSystem {
macro public static function complete() : Array<Field> {
var fields = Context.getBuildFields(),
type = Context.getLocalClass().get();
+ #if openfl
+ if (type.name == "DocumentClass") return fields;
----------
Loaded log file: "server_log.txt".
----------
SA-MP Dedicated Server
----------------------
v0.3.7, (C)2005-2015 SA-MP Team
[22:59:04]
@Misiur
Misiur / inject-vertex.js
Created June 16, 2015 13:29
Recipe for middleware for inlining vertexes
gulp.src('src/dev.html')
.pipe(inlinesource({
rootpath: '.',
handlers: [
function vertex(source, context, next) {
if (source.type === 'x-shader/x-vertex') {
source.type = 'js';
source.attributes.type = 'x-shader/x-vertex';
}
#include <a_samp>
#include <YSI\y_iterate>
//#include <YSI\y_commands>
main(){}
#define xsize 25
#define ysize 25
enum info { bool:in, bool:up, bool:left, prevx, prevy, platform }
{
"cmd": ["${project_path:${folder}}\\pawno\\pawncc.exe", "${project_base_name}.pwn", "-;+", "-v2", "-d3", "-\\)+"],
"working_dir": "${project_path:${folder}}\\gamemodes",
"file_regex": "^([^\\.]+\\.pwn)\\((\\d+)\\)() : (.*)$",
"variants": [
{
"cmd": ["${project_path:${folder}}\\pawno\\pawncc.exe", "${project_base_name}.pwn", "-;+", "-v2", "-d3", "-\\)+", "-l"],
"working_dir": "${project_path:${folder}}\\gamemodes",
"name": "List file"
},