Dev temp

patch of gfx & various, vs 2010 can compile.