├── CMakeLists.txt ├── README.md ├── cheat.cpp ├── cheat.h ├── core ├── api.cpp ├── api.h ├── base64.cpp ├── base64.h ├── c_core.h ├── celshader.h ├── core.cpp ├── core.h ├── hook.cpp ├── hook.h ├── hwid.cpp ├── hwid.h ├── md5.cpp ├── md5.h ├── protname.h ├── subscription.h ├── tcp.cpp └── tcp.h ├── features ├── .vs │ └── ProjectSettings.json ├── discord.cpp ├── discord.h ├── discord │ ├── backoff.h │ ├── connection.h │ ├── connection_win.cpp │ ├── discord_register.h │ ├── discord_register_win.cpp │ ├── discord_rpc.cpp │ ├── discord_rpc.h │ ├── msg_queue.h │ ├── rapidjson │ │ ├── allocators.h │ │ ├── document.h │ │ ├── encodedstream.h │ │ ├── encodings.h │ │ ├── error │ │ │ ├── en.h │ │ │ └── error.h │ │ ├── filereadstream.h │ │ ├── filewritestream.h │ │ ├── fwd.h │ │ ├── internal │ │ │ ├── biginteger.h │ │ │ ├── diyfp.h │ │ │ ├── dtoa.h │ │ │ ├── ieee754.h │ │ │ ├── itoa.h │ │ │ ├── meta.h │ │ │ ├── pow10.h │ │ │ ├── regex.h │ │ │ ├── stack.h │ │ │ ├── strfunc.h │ │ │ ├── strtod.h │ │ │ └── swap.h │ │ ├── istreamwrapper.h │ │ ├── memorybuffer.h │ │ ├── memorystream.h │ │ ├── msinttypes │ │ │ ├── inttypes.h │ │ │ └── stdint.h │ │ ├── ostreamwrapper.h │ │ ├── pointer.h │ │ ├── prettywriter.h │ │ ├── rapidjson.h │ │ ├── reader.h │ │ ├── schema.h │ │ ├── stream.h │ │ ├── stringbuffer.h │ │ └── writer.h │ ├── rpc_connection.cpp │ ├── rpc_connection.h │ ├── serialization.cpp │ └── serialization.h ├── entitylistener.cpp ├── entitylistener.h ├── eventlistener.cpp ├── eventlistener.h ├── events.cpp ├── events.h ├── features.h ├── legitbot │ ├── c_legitbot.cpp │ └── c_legitbot.h ├── misc │ ├── autojump.cpp │ ├── autojump.h │ ├── misc.cpp │ └── misc.h ├── ragebot │ ├── antiaims.cpp │ ├── antiaims.h │ ├── autowall.cpp │ ├── autowall.h │ ├── c_future.cpp │ ├── c_future.h │ ├── c_sync.cpp │ ├── c_sync.h │ ├── fakeduck.cpp │ ├── fakeduck.h │ ├── fakelag.cpp │ ├── fakelag.h │ ├── lc.cpp │ ├── lc.h │ ├── ragebot.cpp │ ├── ragebot.h │ ├── resolver.cpp │ └── resolver.h ├── skins │ ├── skins.cpp │ └── skins.h └── visuals │ ├── bombtimer.cpp │ ├── bombtimer.h │ ├── bullettracer.cpp │ ├── bullettracer.h │ ├── coloredmodels.cpp │ ├── coloredmodels.h │ ├── debuginfo.cpp │ ├── debuginfo.h │ ├── effects.cpp │ ├── effects.h │ ├── glow.cpp │ ├── glow.h │ ├── hitlog.cpp │ ├── hitlog.h │ ├── indicators.cpp │ ├── indicators.h │ ├── scope.cpp │ ├── scope.h │ ├── speclist.cpp │ ├── speclist.h │ ├── visuals.cpp │ └── visuals.h ├── framework ├── c_dx.cpp ├── c_dx.h ├── config.cpp ├── config.h ├── csgo.cpp ├── csgo.h ├── hooks.cpp ├── hooks.h ├── hooks │ ├── camera.cpp │ ├── createmove.cpp │ ├── doextrabonesprocessing.cpp │ ├── dopostscreenspaceeffects.cpp │ ├── drawmodelexecute.cpp │ ├── eyeangles.cpp │ ├── fireevent.cpp │ ├── framestagenotify.cpp │ ├── getscreenaspectratio.cpp │ ├── getviewmodelfov.cpp │ ├── grenadepreview.cpp │ ├── hlcreatemove.cpp │ ├── in_keyevent.cpp │ ├── listleavesinbox.cpp │ ├── lockcursor.cpp │ ├── move.cpp │ ├── overrideview.cpp │ ├── packetstart.cpp │ ├── painttraverse.cpp │ ├── postdataupdate.cpp │ ├── present.cpp │ ├── reset.cpp │ ├── runcommand.cpp │ ├── sendmove.cpp │ ├── sendnetmsg.cpp │ ├── setchoked.cpp │ ├── shouldskipanimframe.cpp │ ├── standartblendingrules.cpp │ ├── updateclientsideanimation.cpp │ ├── wndproc.cpp │ └── writeusercmddeltatobuffer.cpp ├── keymanager.cpp ├── keymanager.h ├── menu.cpp ├── menu.h └── tabs │ ├── antiaims_tab.cpp │ ├── extensions_tab.cpp │ ├── legitbot_tab.cpp │ ├── misc_tab.cpp │ ├── ragebot_tab.cpp │ ├── skins_tab.cpp │ └── visuals_tab.cpp ├── loader.h ├── main.cpp ├── scripting ├── api │ ├── lua_client.cpp │ ├── lua_cvar.cpp │ ├── lua_entity.cpp │ ├── lua_event.cpp │ ├── lua_globals.cpp │ ├── lua_painting.cpp │ └── lua_ui.cpp ├── scripting.cpp └── scripting.h ├── sdk ├── animations.h ├── appsystem.h ├── beams.h ├── bomb.cpp ├── bomb.h ├── c_fogcontroller.cpp ├── c_fogcontroller.h ├── c_grenade.cpp ├── c_grenade.h ├── c_hostage.cpp ├── c_hostage.h ├── checksum_md5.cpp ├── checksum_md5.h ├── clientstate.h ├── collider.h ├── color.h ├── cvar.cpp ├── cvar.h ├── datamap.h ├── debugoverlay.h ├── dynamicbb.cpp ├── dynamicbb.h ├── engine.cpp ├── engine.h ├── enginetrace.cpp ├── enginetrace.h ├── entity.cpp ├── entity.h ├── entityinfo.h ├── entitylist.h ├── eventmanager.h ├── gamerules.cpp ├── gamerules.h ├── globals.h ├── glow.h ├── hl.h ├── input.h ├── localize.h ├── materials.cpp ├── materials.h ├── matrix.h ├── memory.h ├── model.h ├── modelinfo.cpp ├── modelinfo.h ├── modelrender.h ├── movement.h ├── netchannel.h ├── paintkit.h ├── physics.h ├── platform.h ├── player.cpp ├── player.h ├── playerresource.cpp ├── playerresource.h ├── prediction.h ├── projectile.cpp ├── projectile.h ├── recv.h ├── renderview.h ├── surface.h ├── tonemap_controller.cpp ├── tonemap_controller.h ├── usercmd.h ├── utlmemory.h ├── utlvector.h ├── vector.h ├── viewsetup.h ├── weapon.cpp └── weapon.h ├── tools ├── c_utils.cpp ├── c_utils.h ├── fnv.cpp ├── fnv.h ├── strenc.h ├── utils.cpp └── utils.h └── ui ├── bindsfont.h ├── freetype ├── CMakeLists.txt ├── ChangeLog ├── ChangeLog.20 ├── ChangeLog.21 ├── ChangeLog.22 ├── ChangeLog.23 ├── ChangeLog.24 ├── ChangeLog.25 ├── ChangeLog.26 ├── ChangeLog.27 ├── ChangeLog.28 ├── Jamfile ├── Jamrules ├── Makefile ├── README ├── README.git ├── autogen.sh ├── configure ├── devel │ ├── ft2build.h │ └── ftoption.h ├── docs │ ├── CHANGES │ ├── CMAKE │ ├── CUSTOMIZE │ ├── DEBUG │ ├── FTL.TXT │ ├── GPLv2.TXT │ ├── INSTALL │ ├── INSTALL.ANY │ ├── INSTALL.CROSS │ ├── INSTALL.GNU │ ├── INSTALL.MAC │ ├── INSTALL.UNIX │ ├── INSTALL.VMS │ ├── LICENSE.TXT │ ├── MAKEPP │ ├── PROBLEMS │ ├── TODO │ ├── VERSIONS.TXT │ ├── formats.txt │ ├── freetype-config.1 │ ├── raster.txt │ ├── reference │ │ ├── README │ │ ├── ft2-auto_hinter.html │ │ ├── ft2-base_interface.html │ │ ├── ft2-basic_types.html │ │ ├── ft2-bdf_fonts.html │ │ ├── ft2-bitmap_handling.html │ │ ├── ft2-bzip2.html │ │ ├── ft2-cache_subsystem.html │ │ ├── ft2-cff_driver.html │ │ ├── ft2-cid_fonts.html │ │ ├── ft2-computations.html │ │ ├── ft2-error_code_values.html │ │ ├── ft2-error_enumerations.html │ │ ├── ft2-font_formats.html │ │ ├── ft2-gasp_table.html │ │ ├── ft2-glyph_management.html │ │ ├── ft2-glyph_stroker.html │ │ ├── ft2-glyph_variants.html │ │ ├── ft2-gx_validation.html │ │ ├── ft2-gzip.html │ │ ├── ft2-header_file_macros.html │ │ ├── ft2-header_inclusion.html │ │ ├── ft2-incremental.html │ │ ├── ft2-index.html │ │ ├── ft2-lcd_filtering.html │ │ ├── ft2-list_processing.html │ │ ├── ft2-lzw.html │ │ ├── ft2-mac_specific.html │ │ ├── ft2-module_management.html │ │ ├── ft2-multiple_masters.html │ │ ├── ft2-ot_validation.html │ │ ├── ft2-outline_processing.html │ │ ├── ft2-parameter_tags.html │ │ ├── ft2-pcf_driver.html │ │ ├── ft2-pfr_fonts.html │ │ ├── ft2-properties.html │ │ ├── ft2-quick_advance.html │ │ ├── ft2-raster.html │ │ ├── ft2-sfnt_names.html │ │ ├── ft2-sizes_management.html │ │ ├── ft2-system_interface.html │ │ ├── ft2-t1_cid_driver.html │ │ ├── ft2-toc.html │ │ ├── ft2-truetype_engine.html │ │ ├── ft2-truetype_tables.html │ │ ├── ft2-tt_driver.html │ │ ├── ft2-type1_tables.html │ │ ├── ft2-user_allocation.html │ │ ├── ft2-version.html │ │ └── ft2-winfnt_fonts.html │ └── release ├── include │ ├── freetype │ │ ├── config │ │ │ ├── ftconfig.h │ │ │ ├── ftheader.h │ │ │ ├── ftmodule.h │ │ │ ├── ftoption.h │ │ │ └── ftstdlib.h │ │ ├── freetype.h │ │ ├── ftadvanc.h │ │ ├── ftbbox.h │ │ ├── ftbdf.h │ │ ├── ftbitmap.h │ │ ├── ftbzip2.h │ │ ├── ftcache.h │ │ ├── ftchapters.h │ │ ├── ftcid.h │ │ ├── ftdriver.h │ │ ├── fterrdef.h │ │ ├── fterrors.h │ │ ├── ftfntfmt.h │ │ ├── ftgasp.h │ │ ├── ftglyph.h │ │ ├── ftgxval.h │ │ ├── ftgzip.h │ │ ├── ftimage.h │ │ ├── ftincrem.h │ │ ├── ftlcdfil.h │ │ ├── ftlist.h │ │ ├── ftlzw.h │ │ ├── ftmac.h │ │ ├── ftmm.h │ │ ├── ftmodapi.h │ │ ├── ftmoderr.h │ │ ├── ftotval.h │ │ ├── ftoutln.h │ │ ├── ftparams.h │ │ ├── ftpfr.h │ │ ├── ftrender.h │ │ ├── ftsizes.h │ │ ├── ftsnames.h │ │ ├── ftstroke.h │ │ ├── ftsynth.h │ │ ├── ftsystem.h │ │ ├── fttrigon.h │ │ ├── fttypes.h │ │ ├── ftwinfnt.h │ │ ├── internal │ │ │ ├── autohint.h │ │ │ ├── cffotypes.h │ │ │ ├── cfftypes.h │ │ │ ├── ftcalc.h │ │ │ ├── ftdebug.h │ │ │ ├── ftdrv.h │ │ │ ├── ftgloadr.h │ │ │ ├── fthash.h │ │ │ ├── ftmemory.h │ │ │ ├── ftobjs.h │ │ │ ├── ftpic.h │ │ │ ├── ftpsprop.h │ │ │ ├── ftrfork.h │ │ │ ├── ftserv.h │ │ │ ├── ftstream.h │ │ │ ├── fttrace.h │ │ │ ├── ftvalid.h │ │ │ ├── internal.h │ │ │ ├── psaux.h │ │ │ ├── pshints.h │ │ │ ├── services │ │ │ │ ├── svbdf.h │ │ │ │ ├── svcfftl.h │ │ │ │ ├── svcid.h │ │ │ │ ├── svfntfmt.h │ │ │ │ ├── svgldict.h │ │ │ │ ├── svgxval.h │ │ │ │ ├── svkern.h │ │ │ │ ├── svmetric.h │ │ │ │ ├── svmm.h │ │ │ │ ├── svotval.h │ │ │ │ ├── svpfr.h │ │ │ │ ├── svpostnm.h │ │ │ │ ├── svprop.h │ │ │ │ ├── svpscmap.h │ │ │ │ ├── svpsinfo.h │ │ │ │ ├── svsfnt.h │ │ │ │ ├── svttcmap.h │ │ │ │ ├── svtteng.h │ │ │ │ ├── svttglyf.h │ │ │ │ └── svwinfnt.h │ │ │ ├── sfnt.h │ │ │ ├── t1types.h │ │ │ └── tttypes.h │ │ ├── t1tables.h │ │ ├── ttnameid.h │ │ ├── tttables.h │ │ └── tttags.h │ └── ft2build.h ├── modules.cfg ├── objs │ ├── README │ ├── Win32 │ │ └── Release Static │ │ │ ├── autofit.obj │ │ │ ├── bdf.obj │ │ │ ├── cff.obj │ │ │ ├── freetype.lib │ │ │ ├── freetype.log │ │ │ ├── freetype.tlog │ │ │ ├── CL.command.1.tlog │ │ │ ├── CL.read.1.tlog │ │ │ ├── CL.write.1.tlog │ │ │ ├── Lib-link-cvtres.read.1.tlog │ │ │ ├── Lib-link-cvtres.write.1.tlog │ │ │ ├── Lib.command.1.tlog │ │ │ ├── freetype.lastbuildstate │ │ │ ├── rc.command.1.tlog │ │ │ ├── rc.read.1.tlog │ │ │ └── rc.write.1.tlog │ │ │ ├── ftbase.obj │ │ │ ├── ftbbox.obj │ │ │ ├── ftbdf.obj │ │ │ ├── ftbitmap.obj │ │ │ ├── ftcache.obj │ │ │ ├── ftcid.obj │ │ │ ├── ftdebug.obj │ │ │ ├── ftfstype.obj │ │ │ ├── ftgasp.obj │ │ │ ├── ftglyph.obj │ │ │ ├── ftgxval.obj │ │ │ ├── ftgzip.obj │ │ │ ├── ftinit.obj │ │ │ ├── ftlzw.obj │ │ │ ├── ftmm.obj │ │ │ ├── ftotval.obj │ │ │ ├── ftpatent.obj │ │ │ ├── ftpfr.obj │ │ │ ├── ftstroke.obj │ │ │ ├── ftsynth.obj │ │ │ ├── ftsystem.obj │ │ │ ├── fttype1.obj │ │ │ ├── ftver.res │ │ │ ├── ftwinfnt.obj │ │ │ ├── pcf.obj │ │ │ ├── pfr.obj │ │ │ ├── psaux.obj │ │ │ ├── pshinter.obj │ │ │ ├── psmodule.obj │ │ │ ├── raster.obj │ │ │ ├── sfnt.obj │ │ │ ├── smooth.obj │ │ │ ├── truetype.obj │ │ │ ├── type1.obj │ │ │ ├── type1cid.obj │ │ │ ├── type42.obj │ │ │ └── winfnt.obj │ └── freetype.lib ├── src │ ├── Jamfile │ ├── autofit │ │ ├── Jamfile │ │ ├── afangles.c │ │ ├── afangles.h │ │ ├── afblue.c │ │ ├── afblue.cin │ │ ├── afblue.dat │ │ ├── afblue.h │ │ ├── afblue.hin │ │ ├── afcjk.c │ │ ├── afcjk.h │ │ ├── afcover.h │ │ ├── afdummy.c │ │ ├── afdummy.h │ │ ├── aferrors.h │ │ ├── afglobal.c │ │ ├── afglobal.h │ │ ├── afhints.c │ │ ├── afhints.h │ │ ├── afindic.c │ │ ├── afindic.h │ │ ├── aflatin.c │ │ ├── aflatin.h │ │ ├── aflatin2.c │ │ ├── aflatin2.h │ │ ├── afloader.c │ │ ├── afloader.h │ │ ├── afmodule.c │ │ ├── afmodule.h │ │ ├── afpic.c │ │ ├── afpic.h │ │ ├── afranges.c │ │ ├── afranges.h │ │ ├── afscript.h │ │ ├── afshaper.c │ │ ├── afshaper.h │ │ ├── afstyles.h │ │ ├── aftypes.h │ │ ├── afwarp.c │ │ ├── afwarp.h │ │ ├── afwrtsys.h │ │ ├── autofit.c │ │ ├── module.mk │ │ └── rules.mk │ ├── base │ │ ├── Jamfile │ │ ├── basepic.c │ │ ├── basepic.h │ │ ├── ftadvanc.c │ │ ├── ftapi.c │ │ ├── ftbase.c │ │ ├── ftbase.h │ │ ├── ftbbox.c │ │ ├── ftbdf.c │ │ ├── ftbitmap.c │ │ ├── ftcalc.c │ │ ├── ftcid.c │ │ ├── ftdbgmem.c │ │ ├── ftdebug.c │ │ ├── ftfntfmt.c │ │ ├── ftfstype.c │ │ ├── ftgasp.c │ │ ├── ftgloadr.c │ │ ├── ftglyph.c │ │ ├── ftgxval.c │ │ ├── fthash.c │ │ ├── ftinit.c │ │ ├── ftlcdfil.c │ │ ├── ftmac.c │ │ ├── ftmm.c │ │ ├── ftobjs.c │ │ ├── ftotval.c │ │ ├── ftoutln.c │ │ ├── ftpatent.c │ │ ├── ftpfr.c │ │ ├── ftpic.c │ │ ├── ftpsprop.c │ │ ├── ftrfork.c │ │ ├── ftsnames.c │ │ ├── ftstream.c │ │ ├── ftstroke.c │ │ ├── ftsynth.c │ │ ├── ftsystem.c │ │ ├── fttrigon.c │ │ ├── fttype1.c │ │ ├── ftutil.c │ │ ├── ftver.rc │ │ ├── ftwinfnt.c │ │ ├── md5.c │ │ ├── md5.h │ │ └── rules.mk │ ├── bdf │ │ ├── Jamfile │ │ ├── README │ │ ├── bdf.c │ │ ├── bdf.h │ │ ├── bdfdrivr.c │ │ ├── bdfdrivr.h │ │ ├── bdferror.h │ │ ├── bdflib.c │ │ ├── module.mk │ │ └── rules.mk │ ├── bzip2 │ │ ├── Jamfile │ │ ├── ftbzip2.c │ │ └── rules.mk │ ├── cache │ │ ├── Jamfile │ │ ├── ftcache.c │ │ ├── ftcbasic.c │ │ ├── ftccache.c │ │ ├── ftccache.h │ │ ├── ftccback.h │ │ ├── ftccmap.c │ │ ├── ftcerror.h │ │ ├── ftcglyph.c │ │ ├── ftcglyph.h │ │ ├── ftcimage.c │ │ ├── ftcimage.h │ │ ├── ftcmanag.c │ │ ├── ftcmanag.h │ │ ├── ftcmru.c │ │ ├── ftcmru.h │ │ ├── ftcsbits.c │ │ ├── ftcsbits.h │ │ └── rules.mk │ ├── cff │ │ ├── Jamfile │ │ ├── cff.c │ │ ├── cffcmap.c │ │ ├── cffcmap.h │ │ ├── cffdrivr.c │ │ ├── cffdrivr.h │ │ ├── cfferrs.h │ │ ├── cffgload.c │ │ ├── cffgload.h │ │ ├── cffload.c │ │ ├── cffload.h │ │ ├── cffobjs.c │ │ ├── cffobjs.h │ │ ├── cffparse.c │ │ ├── cffparse.h │ │ ├── cffpic.c │ │ ├── cffpic.h │ │ ├── cfftoken.h │ │ ├── module.mk │ │ └── rules.mk │ ├── cid │ │ ├── Jamfile │ │ ├── ciderrs.h │ │ ├── cidgload.c │ │ ├── cidgload.h │ │ ├── cidload.c │ │ ├── cidload.h │ │ ├── cidobjs.c │ │ ├── cidobjs.h │ │ ├── cidparse.c │ │ ├── cidparse.h │ │ ├── cidriver.c │ │ ├── cidriver.h │ │ ├── cidtoken.h │ │ ├── module.mk │ │ ├── rules.mk │ │ └── type1cid.c │ ├── gxvalid │ │ ├── Jamfile │ │ ├── README │ │ ├── gxvalid.c │ │ ├── gxvalid.h │ │ ├── gxvbsln.c │ │ ├── gxvcommn.c │ │ ├── gxvcommn.h │ │ ├── gxverror.h │ │ ├── gxvfeat.c │ │ ├── gxvfeat.h │ │ ├── gxvfgen.c │ │ ├── gxvjust.c │ │ ├── gxvkern.c │ │ ├── gxvlcar.c │ │ ├── gxvmod.c │ │ ├── gxvmod.h │ │ ├── gxvmort.c │ │ ├── gxvmort.h │ │ ├── gxvmort0.c │ │ ├── gxvmort1.c │ │ ├── gxvmort2.c │ │ ├── gxvmort4.c │ │ ├── gxvmort5.c │ │ ├── gxvmorx.c │ │ ├── gxvmorx.h │ │ ├── gxvmorx0.c │ │ ├── gxvmorx1.c │ │ ├── gxvmorx2.c │ │ ├── gxvmorx4.c │ │ ├── gxvmorx5.c │ │ ├── gxvopbd.c │ │ ├── gxvprop.c │ │ ├── gxvtrak.c │ │ ├── module.mk │ │ └── rules.mk │ ├── gzip │ │ ├── Jamfile │ │ ├── adler32.c │ │ ├── ftgzip.c │ │ ├── ftzconf.h │ │ ├── infblock.c │ │ ├── infblock.h │ │ ├── infcodes.c │ │ ├── infcodes.h │ │ ├── inffixed.h │ │ ├── inflate.c │ │ ├── inftrees.c │ │ ├── inftrees.h │ │ ├── infutil.c │ │ ├── infutil.h │ │ ├── rules.mk │ │ ├── zlib.h │ │ ├── zutil.c │ │ └── zutil.h │ ├── lzw │ │ ├── Jamfile │ │ ├── ftlzw.c │ │ ├── ftzopen.c │ │ ├── ftzopen.h │ │ └── rules.mk │ ├── otvalid │ │ ├── Jamfile │ │ ├── module.mk │ │ ├── otvalid.c │ │ ├── otvalid.h │ │ ├── otvbase.c │ │ ├── otvcommn.c │ │ ├── otvcommn.h │ │ ├── otverror.h │ │ ├── otvgdef.c │ │ ├── otvgpos.c │ │ ├── otvgpos.h │ │ ├── otvgsub.c │ │ ├── otvjstf.c │ │ ├── otvmath.c │ │ ├── otvmod.c │ │ ├── otvmod.h │ │ └── rules.mk │ ├── pcf │ │ ├── Jamfile │ │ ├── README │ │ ├── module.mk │ │ ├── pcf.c │ │ ├── pcf.h │ │ ├── pcfdrivr.c │ │ ├── pcfdrivr.h │ │ ├── pcferror.h │ │ ├── pcfread.c │ │ ├── pcfread.h │ │ ├── pcfutil.c │ │ ├── pcfutil.h │ │ └── rules.mk │ ├── pfr │ │ ├── Jamfile │ │ ├── module.mk │ │ ├── pfr.c │ │ ├── pfrcmap.c │ │ ├── pfrcmap.h │ │ ├── pfrdrivr.c │ │ ├── pfrdrivr.h │ │ ├── pfrerror.h │ │ ├── pfrgload.c │ │ ├── pfrgload.h │ │ ├── pfrload.c │ │ ├── pfrload.h │ │ ├── pfrobjs.c │ │ ├── pfrobjs.h │ │ ├── pfrsbit.c │ │ ├── pfrsbit.h │ │ ├── pfrtypes.h │ │ └── rules.mk │ ├── psaux │ │ ├── Jamfile │ │ ├── afmparse.c │ │ ├── afmparse.h │ │ ├── cffdecode.c │ │ ├── cffdecode.h │ │ ├── module.mk │ │ ├── psarrst.c │ │ ├── psarrst.h │ │ ├── psaux.c │ │ ├── psauxerr.h │ │ ├── psauxmod.c │ │ ├── psauxmod.h │ │ ├── psblues.c │ │ ├── psblues.h │ │ ├── psconv.c │ │ ├── psconv.h │ │ ├── pserror.c │ │ ├── pserror.h │ │ ├── psfixed.h │ │ ├── psfont.c │ │ ├── psfont.h │ │ ├── psft.c │ │ ├── psft.h │ │ ├── psglue.h │ │ ├── pshints.c │ │ ├── pshints.h │ │ ├── psintrp.c │ │ ├── psintrp.h │ │ ├── psobjs.c │ │ ├── psobjs.h │ │ ├── psread.c │ │ ├── psread.h │ │ ├── psstack.c │ │ ├── psstack.h │ │ ├── pstypes.h │ │ ├── rules.mk │ │ ├── t1cmap.c │ │ ├── t1cmap.h │ │ ├── t1decode.c │ │ └── t1decode.h │ ├── pshinter │ │ ├── Jamfile │ │ ├── module.mk │ │ ├── pshalgo.c │ │ ├── pshalgo.h │ │ ├── pshglob.c │ │ ├── pshglob.h │ │ ├── pshinter.c │ │ ├── pshmod.c │ │ ├── pshmod.h │ │ ├── pshnterr.h │ │ ├── pshpic.c │ │ ├── pshpic.h │ │ ├── pshrec.c │ │ ├── pshrec.h │ │ └── rules.mk │ ├── psnames │ │ ├── Jamfile │ │ ├── module.mk │ │ ├── psmodule.c │ │ ├── psmodule.h │ │ ├── psnamerr.h │ │ ├── psnames.c │ │ ├── pspic.c │ │ ├── pspic.h │ │ ├── pstables.h │ │ └── rules.mk │ ├── raster │ │ ├── Jamfile │ │ ├── ftmisc.h │ │ ├── ftraster.c │ │ ├── ftraster.h │ │ ├── ftrend1.c │ │ ├── ftrend1.h │ │ ├── module.mk │ │ ├── raster.c │ │ ├── rasterrs.h │ │ ├── rastpic.c │ │ ├── rastpic.h │ │ └── rules.mk │ ├── sfnt │ │ ├── Jamfile │ │ ├── module.mk │ │ ├── pngshim.c │ │ ├── pngshim.h │ │ ├── rules.mk │ │ ├── sfdriver.c │ │ ├── sfdriver.h │ │ ├── sferrors.h │ │ ├── sfnt.c │ │ ├── sfntpic.c │ │ ├── sfntpic.h │ │ ├── sfobjs.c │ │ ├── sfobjs.h │ │ ├── ttbdf.c │ │ ├── ttbdf.h │ │ ├── ttcmap.c │ │ ├── ttcmap.h │ │ ├── ttcmapc.h │ │ ├── ttkern.c │ │ ├── ttkern.h │ │ ├── ttload.c │ │ ├── ttload.h │ │ ├── ttmtx.c │ │ ├── ttmtx.h │ │ ├── ttpost.c │ │ ├── ttpost.h │ │ ├── ttsbit.c │ │ └── ttsbit.h │ ├── smooth │ │ ├── Jamfile │ │ ├── ftgrays.c │ │ ├── ftgrays.h │ │ ├── ftsmerrs.h │ │ ├── ftsmooth.c │ │ ├── ftsmooth.h │ │ ├── ftspic.c │ │ ├── ftspic.h │ │ ├── module.mk │ │ ├── rules.mk │ │ └── smooth.c │ ├── tools │ │ ├── Jamfile │ │ ├── afblue.pl │ │ ├── apinames.c │ │ ├── chktrcmp.py │ │ ├── cordic.py │ │ ├── docmaker │ │ │ ├── content.py │ │ │ ├── docbeauty.py │ │ │ ├── docmaker.py │ │ │ ├── formatter.py │ │ │ ├── sources.py │ │ │ ├── tohtml.py │ │ │ └── utils.py │ │ ├── ftfuzzer │ │ │ ├── README │ │ │ ├── ftfuzzer.cc │ │ │ ├── ftmutator.cc │ │ │ ├── rasterfuzzer.cc │ │ │ └── runinput.cc │ │ ├── ftrandom │ │ │ ├── Makefile │ │ │ ├── README │ │ │ └── ftrandom.c │ │ ├── glnames.py │ │ ├── no-copyright │ │ ├── test_afm.c │ │ ├── test_bbox.c │ │ ├── test_trig.c │ │ ├── update-copyright │ │ └── update-copyright-year │ ├── truetype │ │ ├── Jamfile │ │ ├── module.mk │ │ ├── rules.mk │ │ ├── truetype.c │ │ ├── ttdriver.c │ │ ├── ttdriver.h │ │ ├── tterrors.h │ │ ├── ttgload.c │ │ ├── ttgload.h │ │ ├── ttgxvar.c │ │ ├── ttgxvar.h │ │ ├── ttinterp.c │ │ ├── ttinterp.h │ │ ├── ttobjs.c │ │ ├── ttobjs.h │ │ ├── ttpic.c │ │ ├── ttpic.h │ │ ├── ttpload.c │ │ ├── ttpload.h │ │ ├── ttsubpix.c │ │ └── ttsubpix.h │ ├── type1 │ │ ├── Jamfile │ │ ├── module.mk │ │ ├── rules.mk │ │ ├── t1afm.c │ │ ├── t1afm.h │ │ ├── t1driver.c │ │ ├── t1driver.h │ │ ├── t1errors.h │ │ ├── t1gload.c │ │ ├── t1gload.h │ │ ├── t1load.c │ │ ├── t1load.h │ │ ├── t1objs.c │ │ ├── t1objs.h │ │ ├── t1parse.c │ │ ├── t1parse.h │ │ ├── t1tokens.h │ │ └── type1.c │ ├── type42 │ │ ├── Jamfile │ │ ├── module.mk │ │ ├── rules.mk │ │ ├── t42drivr.c │ │ ├── t42drivr.h │ │ ├── t42error.h │ │ ├── t42objs.c │ │ ├── t42objs.h │ │ ├── t42parse.c │ │ ├── t42parse.h │ │ ├── t42types.h │ │ └── type42.c │ └── winfonts │ │ ├── Jamfile │ │ ├── fnterrs.h │ │ ├── module.mk │ │ ├── rules.mk │ │ ├── winfnt.c │ │ └── winfnt.h ├── version.sed └── vms_make.com ├── icons.h ├── imconfig.h ├── imgui.cpp ├── imgui.h ├── imgui_demo.cpp ├── imgui_draw.cpp ├── imgui_freetype.cpp ├── imgui_freetype.h ├── imgui_impl_dx9.cpp ├── imgui_impl_dx9.h ├── imgui_impl_win32.cpp ├── imgui_impl_win32.h ├── imgui_internal.h ├── imgui_widgets.cpp ├── imstb_rectpack.h ├── imstb_textedit.h ├── imstb_truetype.h ├── spinners.h ├── ui ├── c_ui.cpp ├── c_ui.h ├── c_ui_button.cpp ├── c_ui_button.h ├── c_ui_checkbox.cpp ├── c_ui_checkbox.h ├── c_ui_colorpicker.cpp ├── c_ui_colorpicker.h ├── c_ui_dropdown.cpp ├── c_ui_dropdown.h ├── c_ui_element.cpp ├── c_ui_element.h ├── c_ui_group.cpp ├── c_ui_group.h ├── c_ui_hotkey.cpp ├── c_ui_hotkey.h ├── c_ui_label.cpp ├── c_ui_label.h ├── c_ui_listbox.cpp ├── c_ui_listbox.h ├── c_ui_multiselect.cpp ├── c_ui_multiselect.h ├── c_ui_products.cpp ├── c_ui_products.h ├── c_ui_slider_float.cpp ├── c_ui_slider_float.h ├── c_ui_slider_int.cpp ├── c_ui_slider_int.h ├── c_ui_spinner.cpp ├── c_ui_spinner.h ├── c_ui_tab.cpp ├── c_ui_tab.h ├── c_ui_textbox.cpp ├── c_ui_textbox.h ├── c_ui_window.cpp ├── c_ui_window.h └── ui.rar └── wepfont.h /README.md: -------------------------------------------------------------------------------- 1 | # csgo-project 2 | Project made for Counter-Strike: Global Offensive. 3 | -------------------------------------------------------------------------------- /core/api.cpp: -------------------------------------------------------------------------------- 1 | #include "../cheat.h" 2 | #include "api.h" 3 | 4 | //Anti-paste. -------------------------------------------------------------------------------- /core/api.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | //Anti-paste. -------------------------------------------------------------------------------- /core/base64.h: -------------------------------------------------------------------------------- 1 | #ifndef BASE64_H_C0CE2A47_D10E_42C9_A27C_C883944E704A 2 | #define BASE64_H_C0CE2A47_D10E_42C9_A27C_C883944E704A 3 | 4 | #include 5 | 6 | std::string base64_encode(unsigned char const*, unsigned int len); 7 | std::string base64_decode(std::string const& s); 8 | std::string base64_decode(std::string const& s, int* len); 9 | 10 | #endif /* BASE64_H_C0CE2A47_D10E_42C9_A27C_C883944E704A */ -------------------------------------------------------------------------------- /core/c_core.h: -------------------------------------------------------------------------------- 1 | // 2 | // Created by ruppet on 2/4/2020. 3 | // 4 | 5 | //Anti-paste. -------------------------------------------------------------------------------- /core/celshader.h: -------------------------------------------------------------------------------- 1 | // 2 | // Created by ruppet on 05.01.2020. 3 | // 4 | 5 | //Anti-paste. -------------------------------------------------------------------------------- /core/core.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | class c_core { 4 | public: 5 | void initialize(); 6 | void crash(const char* message, ...); 7 | void dump_netvars(); 8 | 9 | bool is_fully_loaded = false; 10 | bool is_dx_loaded = false; 11 | bool is_unload_triggered = false; 12 | bool is_loadanim_shown = false; 13 | bool is_config_working = false; 14 | bool is_updating_entites = false; 15 | 16 | bool reset_fsn = false; 17 | bool reset_bloom = false; 18 | 19 | float loadanim_alpha = 0.f; 20 | float loadanim_lasttime = 0.f; 21 | 22 | int hide_from_obs = 0; 23 | int loadanim_spinner = 0; 24 | 25 | std::string loadanim_text = ""; 26 | 27 | char username[64] = { 0 }; 28 | char password[64] = { 0 }; 29 | 30 | private: 31 | bool verify(); 32 | bool load_files(); 33 | bool load_interfaces(); 34 | bool load_interfaces_dx(); 35 | bool load_hooks(); 36 | bool load_dx(); 37 | bool load_netvars(); 38 | bool load_others(); 39 | }; -------------------------------------------------------------------------------- /core/hook.cpp: -------------------------------------------------------------------------------- 1 | #include "../cheat.h" 2 | 3 | c_hookable::c_hookable(void* b) { 4 | original = *(int**)b; 5 | methodCount = count(b); 6 | if (methodCount <= 0) 7 | return; 8 | current = new int[methodCount + 1](); 9 | current[0] = original[-1]; 10 | memcpy(¤t[1], original, methodCount * sizeof(int)); 11 | base = b; 12 | DWORD oldprotect = 0, newprotect = 0; 13 | VirtualProtect(base, methodCount * sizeof(int), PAGE_READWRITE, &oldprotect); 14 | *(int**)base = ¤t[1]; 15 | VirtualProtect(base, methodCount * sizeof(int), oldprotect, &newprotect); 16 | } 17 | 18 | void c_hookable::hook(int idx, void* hk) { 19 | DWORD oldprotect = 0, newprotect = 0; 20 | VirtualProtect(current, methodCount * sizeof(int), PAGE_READWRITE, &oldprotect); 21 | current[idx + 1] = (int)hk; 22 | VirtualProtect(current, methodCount * sizeof(int), oldprotect, &newprotect); 23 | } 24 | 25 | void* c_hookable::orig(int idx) { 26 | return (void*)original[idx]; 27 | } 28 | 29 | void c_hookable::unhook(int idx) { 30 | DWORD oldprotect = 0, newprotect = 0; 31 | VirtualProtect(current, methodCount * sizeof(int), PAGE_READWRITE, &oldprotect); 32 | current[idx + 1] = original[idx]; 33 | VirtualProtect(current, methodCount * sizeof(int), oldprotect, &newprotect); 34 | } 35 | 36 | int c_hookable::count(void* base) { 37 | auto length = 0; 38 | while ((*(int**)base)[length]) 39 | length++; 40 | 41 | return length; 42 | } -------------------------------------------------------------------------------- /core/hook.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | class c_hookable { 4 | public: 5 | c_hookable(void* b); 6 | 7 | void hook(int idx, void* hk); 8 | void* orig(int idx); 9 | void unhook(int idx); 10 | 11 | int count(void* base); 12 | 13 | void* base = 0; 14 | 15 | int methodCount = 0; 16 | int* original = 0; 17 | int* current = 0; 18 | }; -------------------------------------------------------------------------------- /core/hwid.cpp: -------------------------------------------------------------------------------- 1 | #include "hwid.h" 2 | #include "../cheat.h" 3 | 4 | //Anti-paste. -------------------------------------------------------------------------------- /core/hwid.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include 3 | 4 | //Anti-paste. -------------------------------------------------------------------------------- /core/subscription.h: -------------------------------------------------------------------------------- 1 | // 2 | // Created by ruppet on 2/5/2020. 3 | // 4 | 5 | #ifndef uc-sflying-loader-subscription-h 6 | #define uc-sflying-loader-subscription-h 7 | 8 | class c_subscription { 9 | public: 10 | int product_id = 0; 11 | int status = 0; 12 | 13 | std::string sub_name; 14 | std::string last_update; 15 | std::string expire_date; 16 | std::string process_name; 17 | std::string steamid; 18 | }; 19 | 20 | #endif //uc-sflying-loader-subscription-h 21 | -------------------------------------------------------------------------------- /core/tcp.cpp: -------------------------------------------------------------------------------- 1 | #include "../cheat.h" 2 | 3 | bool c_tcp::init(const char* ip, const char* port) { 4 | int result = WSAStartup(MAKEWORD(2, 2), &wsaData_); 5 | if (result) 6 | return false; 7 | 8 | hints_.ai_family = AF_UNSPEC; 9 | hints_.ai_socktype = SOCK_STREAM; 10 | hints_.ai_protocol = IPPROTO_TCP; 11 | 12 | result = getaddrinfo(ip, port, &hints_, &result_); 13 | if (result) { 14 | WSACleanup(); 15 | return false; 16 | } 17 | 18 | addrinfo* ptr = nullptr; 19 | for (ptr = result_; ptr != nullptr; ptr = ptr->ai_next) { 20 | socket_ = socket(ptr->ai_family, ptr->ai_socktype, ptr->ai_protocol); 21 | if (socket_ == INVALID_SOCKET) { 22 | WSACleanup(); 23 | return false; 24 | } 25 | 26 | result = connect(socket_, ptr->ai_addr, static_cast(ptr->ai_addrlen)); 27 | if (result == SOCKET_ERROR) { 28 | closesocket(socket_); 29 | WSACleanup(); 30 | return false; 31 | } 32 | 33 | break; 34 | } 35 | 36 | freeaddrinfo(result_); 37 | if (socket_ == INVALID_SOCKET) { 38 | WSACleanup(); 39 | return false; 40 | } 41 | } 42 | 43 | void c_tcp::disconnect() { 44 | shutdown(socket_, SD_SEND); 45 | closesocket(socket_); 46 | WSACleanup(); 47 | } 48 | 49 | bool c_tcp::tell(const char* data, const size_t size) { 50 | if (send(socket_, data, size, 0) == SOCKET_ERROR) { 51 | disconnect(); 52 | return false; 53 | } 54 | } 55 | 56 | int c_tcp::ask(char* buf, const size_t bufSize) { 57 | int recvSize{}; 58 | if ((recvSize = recv(socket_, buf, bufSize, NULL)) == SOCKET_ERROR) { 59 | disconnect(); 60 | return -1; 61 | } 62 | 63 | return recvSize; 64 | } -------------------------------------------------------------------------------- /core/tcp.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | class c_tcp { 4 | private: 5 | WSADATA wsaData_{}; 6 | SOCKET socket_ = INVALID_SOCKET; 7 | addrinfo* result_ = nullptr, hints_{}; 8 | public: 9 | bool init(const char* ip, const char* port); 10 | void disconnect(); 11 | 12 | bool tell(const char* data, const size_t size); 13 | int ask(char* buf, const size_t size); 14 | }; -------------------------------------------------------------------------------- /features/.vs/ProjectSettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "CurrentProjectSetting": "Нет конфигураций" 3 | } -------------------------------------------------------------------------------- /features/discord.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | class c_discord { 4 | public: 5 | void initialize(); 6 | void release(); 7 | 8 | void run_callbacks(); 9 | 10 | void set_activity(DiscordRichPresence rpc); 11 | void clear_activity(); 12 | 13 | bool is_initializing = false; 14 | bool is_initialized = false; 15 | 16 | DiscordUser user; 17 | private: 18 | 19 | }; -------------------------------------------------------------------------------- /features/discord/backoff.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include 4 | #include 5 | #include 6 | #include 7 | 8 | struct Backoff { 9 | int64_t minAmount; 10 | int64_t maxAmount; 11 | int64_t current; 12 | int fails; 13 | std::mt19937_64 randGenerator; 14 | std::uniform_real_distribution<> randDistribution; 15 | 16 | double rand01() { return randDistribution(randGenerator); } 17 | 18 | Backoff(int64_t min, int64_t max) 19 | : minAmount(min) 20 | , maxAmount(max) 21 | , current(min) 22 | , fails(0) 23 | , randGenerator((uint64_t)time(0)) 24 | { 25 | } 26 | 27 | void reset() 28 | { 29 | fails = 0; 30 | current = minAmount; 31 | } 32 | 33 | int64_t nextDelay() 34 | { 35 | ++fails; 36 | int64_t delay = (int64_t)((double)current * 2.0 * rand01()); 37 | current = std::min(current + delay, maxAmount); 38 | return current; 39 | } 40 | }; 41 | -------------------------------------------------------------------------------- /features/discord/connection.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | // This is to wrap the platform specific kinds of connect/read/write. 4 | 5 | #include 6 | #include 7 | 8 | // not really connectiony, but need per-platform 9 | int GetProcessId(); 10 | 11 | struct BaseConnection { 12 | static BaseConnection* Create(); 13 | static void Destroy(BaseConnection*&); 14 | bool isOpen{false}; 15 | bool Open(); 16 | bool Close(); 17 | bool Write(const void* data, size_t length); 18 | bool Read(void* data, size_t length); 19 | }; 20 | -------------------------------------------------------------------------------- /features/discord/discord_register.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #if defined(DISCORD_DYNAMIC_LIB) 4 | #if defined(_WIN32) 5 | #if defined(DISCORD_BUILDING_SDK) 6 | #define DISCORD_EXPORT __declspec(dllexport) 7 | #else 8 | #define DISCORD_EXPORT __declspec(dllimport) 9 | #endif 10 | #else 11 | #define DISCORD_EXPORT __attribute__((visibility("default"))) 12 | #endif 13 | #else 14 | #define DISCORD_EXPORT 15 | #endif 16 | 17 | #ifdef __cplusplus 18 | extern "C" { 19 | #endif 20 | 21 | DISCORD_EXPORT void Discord_Register(const char* applicationId, const char* command); 22 | DISCORD_EXPORT void Discord_RegisterSteamGame(const char* applicationId, const char* steamId); 23 | 24 | #ifdef __cplusplus 25 | } 26 | #endif 27 | -------------------------------------------------------------------------------- /features/discord/msg_queue.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include 4 | 5 | // A simple queue. No locks, but only works with a single thread as producer and a single thread as 6 | // a consumer. Mutex up as needed. 7 | 8 | template 9 | class MsgQueue { 10 | ElementType queue_[QueueSize]; 11 | std::atomic_uint nextAdd_{0}; 12 | std::atomic_uint nextSend_{0}; 13 | std::atomic_uint pendingSends_{0}; 14 | 15 | public: 16 | MsgQueue() {} 17 | 18 | ElementType* GetNextAddMessage() 19 | { 20 | // if we are falling behind, bail 21 | if (pendingSends_.load() >= QueueSize) { 22 | return nullptr; 23 | } 24 | auto index = (nextAdd_++) % QueueSize; 25 | return &queue_[index]; 26 | } 27 | void CommitAdd() { ++pendingSends_; } 28 | 29 | bool HavePendingSends() const { return pendingSends_.load() != 0; } 30 | ElementType* GetNextSendMessage() 31 | { 32 | auto index = (nextSend_++) % QueueSize; 33 | return &queue_[index]; 34 | } 35 | void CommitSend() { --pendingSends_; } 36 | }; 37 | -------------------------------------------------------------------------------- /features/entitylistener.h: -------------------------------------------------------------------------------- 1 | // 2 | // Created by ruppet on 06.01.2020. 3 | // 4 | 5 | #ifndef uc-sflying-cm-entitylistener-h 6 | #define uc-sflying-cm-entitylistener-h 7 | 8 | class c_entitylistener : public c_entitylist_listener { 9 | public: 10 | void on_created(c_entity* pEntity) override; 11 | void on_deleted(c_entity* pEntity) override; 12 | 13 | void initialize(); 14 | void unhook(); 15 | 16 | private: 17 | c_hookable* cs_player = 0; 18 | c_hookable* networkable = 0; 19 | c_hookable* netchannel = 0; 20 | }; 21 | 22 | #endif //uc-sflying-cm-entitylistener-h 23 | -------------------------------------------------------------------------------- /features/eventlistener.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | class c_eventlistener : public c_baseeventlistener { 4 | public: 5 | void initialize(); 6 | void release(); 7 | 8 | void fire_game_event(c_event* event); 9 | int get_event_debug_id() { return 42; } 10 | }; -------------------------------------------------------------------------------- /features/events.cpp: -------------------------------------------------------------------------------- 1 | #include "../cheat.h" 2 | 3 | void c_events::add(const char* text, ...) { 4 | auto buffer = (char*)malloc(1024); 5 | 6 | va_list va; 7 | va_start(va, text); 8 | vsprintf(buffer, text, va); 9 | va_end(va); 10 | 11 | if (entries.size() > 5) entries.erase(entries.begin()); 12 | entries.push_back({ buffer, csgo->globals->realtime }); 13 | } 14 | 15 | void c_events::draw(ImDrawList* d) { 16 | ImGui::PushFont(ImGui::GetIO().Fonts->Fonts[0]); 17 | 18 | std::vector rm; 19 | 20 | auto i = 0; 21 | for (auto &e : entries) { 22 | if (csgo->globals->realtime - e.spawntime > 5.f) 23 | e.alpha -= 255.f / 0.5f * csgo->globals->frametime; 24 | if (csgo->globals->realtime - e.spawntime > 5.5f) 25 | rm.push_back(e); 26 | 27 | d->AddTextSoftShadow(ImVec2(5, 5 + i), ImColor(255, 255, 255, e.alpha), e.text); 28 | i += 12; 29 | } 30 | ImGui::PopFont(); 31 | 32 | for (auto r : rm) 33 | entries.erase(std::find(entries.begin(), entries.end(), r)); 34 | } -------------------------------------------------------------------------------- /features/events.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | class c_evententry { 4 | public: 5 | const char* text; 6 | float spawntime; 7 | int alpha = 255; 8 | 9 | bool operator==(const c_evententry& o) { return !strcmp(text, o.text) && spawntime == o.spawntime; } 10 | }; 11 | 12 | class c_events { 13 | public: 14 | void add(const char* text, ...); 15 | void draw(ImDrawList* d); 16 | 17 | private: 18 | std::vector entries; 19 | }; -------------------------------------------------------------------------------- /features/legitbot/c_legitbot.cpp: -------------------------------------------------------------------------------- 1 | // 2 | // Created by ruppet on 3/8/2020. 3 | // 4 | 5 | #include "c_legitbot.h" 6 | #include "../../cheat.h" 7 | #include "../../framework/config.h" 8 | 9 | void c_legitbot::work() { 10 | if (!config->b.lb_enable) return; 11 | } 12 | -------------------------------------------------------------------------------- /features/legitbot/c_legitbot.h: -------------------------------------------------------------------------------- 1 | // 2 | // Created by ruppet on 3/8/2020. 3 | // 4 | 5 | #ifndef uc-sflying-cm-legitbot-h 6 | #define uc-sflying-cm-legitbot-h 7 | 8 | 9 | class c_legitbot { 10 | public: 11 | void work(); 12 | 13 | private: 14 | void aimbot(); 15 | }; 16 | 17 | 18 | #endif //uc-sflying-cm-legitbot-h 19 | -------------------------------------------------------------------------------- /features/misc/autojump.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | class c_autojump { 4 | public: 5 | void work(c_usercmd* c); 6 | 7 | bool is_hopping = false; 8 | 9 | private: 10 | void autojump(c_usercmd* c); 11 | void airstrafe(c_usercmd* m_pcmd); 12 | }; -------------------------------------------------------------------------------- /features/misc/misc.cpp: -------------------------------------------------------------------------------- 1 | // 2 | // Created by anti on 18. 5. 2020. 3 | // 4 | 5 | #include "../../cheat.h" 6 | #include "misc.h" 7 | 8 | 9 | void c_misc::clantag(){ 10 | 11 | static bool did_run_last = false; 12 | 13 | if(!csgo->local_player) 14 | return; 15 | 16 | if (!config->b.misc_clantag){ 17 | 18 | if (did_run_last){ 19 | did_run_last = false; 20 | utils->set_clantag(str("") ); 21 | } 22 | return; 23 | } 24 | 25 | static float last_change = 0.f; 26 | 27 | const std::string org_name = str ( " uc-sflying " ); 28 | static std::string name = org_name; 29 | 30 | if (csgo->globals->realtime - last_change > 0.45f) { 31 | last_change = csgo->globals->realtime; 32 | std::rotate(name.begin(), name.begin() + 1, name.end()); 33 | utils->set_clantag(name.data()); 34 | } 35 | 36 | 37 | did_run_last = true; 38 | 39 | } -------------------------------------------------------------------------------- /features/misc/misc.h: -------------------------------------------------------------------------------- 1 | // 2 | // Created by antih on 18. 5. 2020. 3 | // 4 | 5 | #include "../../sdk/usercmd.h" 6 | 7 | #ifndef uc-sflying-cm-misc-h 8 | #define uc-sflying-cm-misc-h 9 | 10 | 11 | #endif //uc-sflying-cm-misc-h 12 | 13 | 14 | #pragma once 15 | 16 | class c_misc { 17 | public: 18 | void work(c_usercmd* c); 19 | 20 | void clantag(); 21 | 22 | private: 23 | }; -------------------------------------------------------------------------------- /features/ragebot/autowall.h: -------------------------------------------------------------------------------- 1 | // 2 | // Created by ruppet on 25.12.2019. 3 | // 4 | 5 | #ifndef uc-sflying-cm-_AUTOWALL_H 6 | #define uc-sflying-cm-_AUTOWALL_H 7 | 8 | struct s_awinfo { 9 | int damage = -1; 10 | int hitgroup = -1; 11 | int walls = 4; 12 | bool did_penetrate_wall = false; 13 | float tickness = 1.f; 14 | c_player* player = 0; 15 | c_vector end; 16 | }; 17 | 18 | struct s_awbullet { 19 | c_vector start; 20 | c_vector end; 21 | c_vector pos; 22 | c_vector dir; 23 | 24 | c_tracefilter* filter = nullptr; 25 | c_trace trace; 26 | 27 | float thickness = 1.f; 28 | float damage = 1.f; 29 | int walls = 4; 30 | }; 31 | 32 | class c_autowall { 33 | public: 34 | float get_approx_point_damage(c_vector point); 35 | float get_point_damage(c_vector point, c_player* player); 36 | s_awinfo work(c_vector start, c_vector end, c_player* from, c_player* to); 37 | private: 38 | void scale_damage(c_trace* trace, c_weaponinfo* inf, int& hitgroup, float& damage); 39 | void clip_trace_to_player(c_vector start, c_vector end, c_player* player, unsigned int mask, c_tracefilter* filter, c_trace* trace); 40 | bool handle_bullet_penetration(c_weaponinfo* inf, s_awbullet& bullet); 41 | bool trace_to_exit(c_trace* enter_trace, c_vector& start, c_vector& dir, c_trace* exit_trace); 42 | bool is_breakable(c_player* player); 43 | }; 44 | 45 | #endif //uc-sflying-cm-_AUTOWALL_H 46 | -------------------------------------------------------------------------------- /features/ragebot/c_future.cpp: -------------------------------------------------------------------------------- 1 | // 2 | // Created by ruppet on 3/6/2020. 3 | // 4 | 5 | #include "../../cheat.h" 6 | #include "../../framework/config.h" 7 | #include "c_future.h" 8 | 9 | 10 | //Anti-paste. -------------------------------------------------------------------------------- /features/ragebot/c_future.h: -------------------------------------------------------------------------------- 1 | // 2 | // Created by ruppet on 3/6/2020. 3 | // 4 | 5 | //Anti-paste. -------------------------------------------------------------------------------- /features/ragebot/c_sync.cpp: -------------------------------------------------------------------------------- 1 | // This is an independent project of an individual developer. Dear PVS-Studio, please check it. 2 | // PVS-Studio Static Code Analyzer for C, C++, C#, and Java: http://www.viva64.com 3 | #include "../../cheat.h" 4 | #include "c_sync.h" 5 | #include "../../sdk/checksum_md5.h" 6 | 7 | //Anti-paste. -------------------------------------------------------------------------------- /features/ragebot/c_sync.h: -------------------------------------------------------------------------------- 1 | //Anti-paste. -------------------------------------------------------------------------------- /features/ragebot/fakeduck.cpp: -------------------------------------------------------------------------------- 1 | // 2 | // Created by ruppet on 30.12.2019. 3 | // 4 | 5 | #include "../../cheat.h" 6 | #include "../../framework/config.h" 7 | 8 | void c_fakeduck::work(c_usercmd* c) { 9 | if (keymanager->check(config->i.aa_fakeduck, config->i.aa_fakeduck_style)) { 10 | features->fakelag->force_choke(14); 11 | 12 | if (csgo->local_player->view_offset().z < 60.f) 13 | c->buttons &= ~IN_ATTACK; 14 | 15 | 16 | 17 | if (csgo->clientstate->choked_commands > 6) 18 | c->buttons |= IN_DUCK; 19 | else 20 | c->buttons &= ~IN_DUCK; 21 | 22 | } 23 | } -------------------------------------------------------------------------------- /features/ragebot/fakeduck.h: -------------------------------------------------------------------------------- 1 | // 2 | // Created by ruppet on 30.12.2019. 3 | // 4 | 5 | #ifndef uc-sflying-cm-_FAKEDUCK_H 6 | #define uc-sflying-cm-_FAKEDUCK_H 7 | 8 | class c_fakeduck { 9 | public: 10 | void work(c_usercmd* c); 11 | }; 12 | 13 | #endif //uc-sflying-cm-_FAKEDUCK_H 14 | -------------------------------------------------------------------------------- /features/ragebot/fakelag.h: -------------------------------------------------------------------------------- 1 | // 2 | // Created by ruppet on 24.12.2019. 3 | // 4 | 5 | #ifndef uc-sflying-cm-_FAKELAG_H 6 | #define uc-sflying-cm-_FAKELAG_H 7 | 8 | class c_fakelag { 9 | public: 10 | void estimate_max_choke(c_usercmd* c); 11 | void choke(c_usercmd* c); 12 | 13 | void force_choke(int v, bool force = false); 14 | 15 | int max_choke = 1; 16 | 17 | private: 18 | void estimate(int style); 19 | int variance(int limit, int variance); 20 | 21 | bool noclamp = false; 22 | float speed = 0.f; 23 | bool fluctate = false; 24 | int fl_tick = 0; 25 | int last_change = 0; 26 | }; 27 | 28 | #endif //uc-sflying-cm-_FAKELAG_H 29 | -------------------------------------------------------------------------------- /features/ragebot/lc.cpp: -------------------------------------------------------------------------------- 1 | // 2 | // Created by ruppet on 26.01.2020. 3 | // 4 | #include "../../cheat.h" 5 | #include "lc.h" 6 | 7 | //Anti-paste. -------------------------------------------------------------------------------- /features/ragebot/lc.h: -------------------------------------------------------------------------------- 1 | // 2 | // Created by ruppet on 26.01.2020. 3 | // 4 | 5 | #ifndef uc-sflying-cm-_LC_H 6 | #define uc-sflying-cm-_LC_H 7 | 8 | //Anti-paste. -------------------------------------------------------------------------------- /features/ragebot/resolver.cpp: -------------------------------------------------------------------------------- 1 | 2 | #include "../../cheat.h" 3 | void c_resolver::work(c_player* p) { 4 | 5 | if (!p || !p->health() > 0 || p->is_dormant()) 6 | return; 7 | auto as = p->get_anim_state(); 8 | if (config->b.rage_resolver && !p->get_player_info().is_bot && as) { 9 | //needs to be improved/tested 10 | 11 | 12 | switch (csgo->brute_stage[p->index()] % 2) { 13 | case 0: 14 | as->abs_yaw += 120.f; 15 | side[p->index()] = 1; 16 | break; 17 | case 1: 18 | as->abs_yaw -= 120.f; 19 | side[p->index()] = 2; 20 | break; 21 | } 22 | 23 | 24 | 25 | 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /features/ragebot/resolver.h: -------------------------------------------------------------------------------- 1 | 2 | 3 | #ifndef uc-sflying-cm-_RESOLVER_H 4 | #define uc-sflying-cm-_RESOLVER_H 5 | #endif //uc-sflying-cm-_RESOLVER_H 6 | 7 | class c_resolver { 8 | public: 9 | void work(c_player* p); 10 | int side[65] = {0}; 11 | float lby = 0; 12 | }; 13 | -------------------------------------------------------------------------------- /features/skins/skins.cpp: -------------------------------------------------------------------------------- 1 | // 2 | // Created by ruppet on 05.01.2020. 3 | // 4 | 5 | #include "../../cheat.h" 6 | 7 | void c_skins::load() { 8 | static auto items = utils->scan(str("client_panorama.dll"), str("E8 ? ? ? ? FF 76 0C 8D 48 04 E8")); 9 | 10 | using fnGetItemSystem = void*(*)(); 11 | static auto get_item_system = (fnGetItemSystem)(items + *(ptr*)(items + 1) + 5); 12 | 13 | auto item_schema = (void*)((ptr)get_item_system() + sizeof(void*)); 14 | 15 | load_paintkits(items, item_schema); 16 | } 17 | 18 | void c_skins::load_paintkits(ptr items, void* item_schema) { 19 | using fnGetPaintKitDefinition = c_paintkit*(__thiscall*)(void*, int); 20 | static auto get_paintkit_definition = (fnGetPaintKitDefinition)(items + *(ptr*)(items + 12) + 16); 21 | 22 | auto vec = (c_nodelist*)((ptr)item_schema + (*(ptr*)((ptr)get_paintkit_definition + 10) - 12)); 23 | for (auto i = 0; i <= vec->last_element; i++) { 24 | auto pk = vec->data[i].value; 25 | if (pk->id == 9001) continue; 26 | 27 | std::wstring name = csgo->localize->find_safe(pk->item_name.value); 28 | paintkits.push_back({ pk->id, std::string(name.begin(), name.end()) }); 29 | } 30 | } -------------------------------------------------------------------------------- /features/skins/skins.h: -------------------------------------------------------------------------------- 1 | // 2 | // Created by ruppet on 05.01.2020. 3 | // 4 | 5 | #ifndef uc-sflying-cm-_SKINS_H 6 | #define uc-sflying-cm-_SKINS_H 7 | 8 | class c_skin { 9 | public: 10 | int id; 11 | std::string name; 12 | }; 13 | 14 | class c_skins { 15 | public: 16 | void load(); 17 | void load_paintkits(ptr items, void* item_schema); 18 | 19 | std::vector paintkits; 20 | }; 21 | 22 | #endif //uc-sflying-cm-_SKINS_H 23 | -------------------------------------------------------------------------------- /features/visuals/bombtimer.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | class c_bombtimer { 4 | public: 5 | void draw(ImDrawList* d); 6 | }; -------------------------------------------------------------------------------- /features/visuals/bullettracer.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | class c_bullettracer { 4 | public: 5 | void add(c_vector a, c_vector b); 6 | void sound_add(c_player* p); 7 | 8 | std::vector data[256] = { }; 9 | }; -------------------------------------------------------------------------------- /features/visuals/coloredmodels.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | class c_coloredmodels { 4 | public: 5 | bool work(c_entity* ent, void* a, void* b, c_drawmodelstate c, c_modelrenderinfo d, c_matrix3x4* e); 6 | 7 | private: 8 | bool process_player(c_player* p); 9 | 10 | void* obj = 0; 11 | void* arg_2 = 0; 12 | c_drawmodelstate state; 13 | c_modelrenderinfo render_info; 14 | c_matrix3x4* bones; 15 | 16 | int type = -1; 17 | c_material* open = 0; 18 | c_material* cover = 0; 19 | 20 | int backtrack_type = -1; 21 | c_material* backtrack_cover = 0; 22 | 23 | int team_type = -1; 24 | c_material* team_open = 0; 25 | c_material* team_cover = 0; 26 | 27 | int self_type = -1; 28 | c_material* self_open = 0; 29 | 30 | int fake_type = -1; 31 | c_material* fake_cover = 0; 32 | 33 | c_material* glow_enemy = 0; 34 | c_material* glow_team = 0; 35 | c_material* glow_self = 0; 36 | }; -------------------------------------------------------------------------------- /features/visuals/debuginfo.h: -------------------------------------------------------------------------------- 1 | // 2 | // Created by ruppet on 07.01.2020. 3 | // 4 | 5 | #ifndef uc-sflying-cm-_DEBUGINFO_H 6 | #define uc-sflying-cm-_DEBUGINFO_H 7 | 8 | class c_debuginfo { 9 | public: 10 | void draw(ImDrawList* d); 11 | 12 | struct { 13 | bool draw_playerinfo = false; 14 | bool draw_other = false; 15 | bool no_sp = false; 16 | } b; 17 | 18 | struct { 19 | int target_ent = 0; 20 | int animlayer = 0; 21 | int poseparam = 0; 22 | int maxmisses = 1; 23 | int r8_shootuntil = 12; 24 | int r8_reset = 14; 25 | int r8_resetto = 5; 26 | int delayshot = 24; 27 | int statedelay = 7; 28 | } i; 29 | 30 | struct { 31 | 32 | } f; 33 | 34 | struct { 35 | 36 | } c; 37 | 38 | struct { 39 | 40 | } m; 41 | }; 42 | 43 | #endif //uc-sflying-cm-_DEBUGINFO_H 44 | -------------------------------------------------------------------------------- /features/visuals/effects.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | class c_effects { 4 | public: 5 | void smoke(); 6 | void modulation(); 7 | void sky(); 8 | }; -------------------------------------------------------------------------------- /features/visuals/glow.cpp: -------------------------------------------------------------------------------- 1 | #include "../../cheat.h" 2 | 3 | void c_glow::work() { 4 | if (!csgo->local_player) return; 5 | 6 | for (auto i = 1; i < csgo->glowmanager->numobjects; i++) { 7 | auto o = &csgo->glowmanager->objects[i]; 8 | if (!o || o->is_unused() || !o->entity) continue; 9 | 10 | auto ent = o->entity; 11 | if (ent->is_player()) { 12 | auto p = (c_player*)ent; 13 | 14 | auto is_self = p->index() == csgo->local_player->index(); 15 | auto is_teammate = p->team() == csgo->local_player->team(); 16 | 17 | if (config->i.vis_glow == 1 && !is_teammate) 18 | set_glow(o, config->c.glow); 19 | if (config->i.vis_glow_team == 1 && is_teammate && !is_self) 20 | set_glow(o, config->c.glow_team); 21 | if (config->i.vis_glow_self == 1 && is_self) 22 | set_glow(o, config->c.glow_self); 23 | continue; 24 | } 25 | 26 | if (ent->is_weapon()) { 27 | if (config->b.vis_droppedglow) { 28 | auto w = (c_weapon*)ent; 29 | if (csgo->entities->get_entity_handle(w->owner())) continue; 30 | 31 | set_glow(o, config->c.droppedglow); 32 | } 33 | else 34 | set_glow(o, new float[4] {0, 0, 0, 0}); 35 | 36 | continue; 37 | } 38 | 39 | if (ent->is_projectile() && config->b.vis_projectilesglow) { 40 | set_glow(o, config->c.projectilesglow); 41 | continue; 42 | } 43 | } 44 | } 45 | 46 | void c_glow::set_glow(s_glowobject* o, float col[4]) { 47 | o->r = col[0]; 48 | o->g = col[1]; 49 | o->b = col[2]; 50 | o->a = col[3]; 51 | 52 | o->glow_type = 0; 53 | o->render_occluded = true; 54 | o->render_unoccluded = false; 55 | } -------------------------------------------------------------------------------- /features/visuals/glow.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | class c_glow { 4 | public: 5 | void work(); 6 | 7 | private: 8 | void set_glow(s_glowobject* o, float col[4]); 9 | }; -------------------------------------------------------------------------------- /features/visuals/hitlog.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | struct s_hitlogentry { 4 | std::string who, to; 5 | int dmg, left; 6 | bool hurt, yourself; 7 | 8 | int flash, alpha; 9 | float creation; 10 | 11 | bool operator==(const s_hitlogentry& o) { 12 | return 13 | o.who == who && o.to == to && o.dmg == dmg && o.left == left && o.hurt == hurt && 14 | o.yourself == yourself && o.flash == flash && o.alpha == alpha && o.creation == creation; 15 | } 16 | }; 17 | 18 | class c_hitlog { 19 | public: 20 | void add(const char* who, const char* to, int damage, int left, bool hurt, bool youself); 21 | void draw(ImDrawList* d); 22 | 23 | private: 24 | std::vector entries; 25 | }; -------------------------------------------------------------------------------- /features/visuals/indicators.h: -------------------------------------------------------------------------------- 1 | // 2 | // Created by ruppet on 27.12.2019. 3 | // 4 | 5 | #ifndef uc-sflying-cm-_INDICATORS_H 6 | #define uc-sflying-cm-_INDICATORS_H 7 | 8 | enum e_indicator_addition { 9 | ADDITION_BAR, 10 | ADDITION_SIDE, 11 | ADDITION_DESC, 12 | ADDITION_NONE 13 | }; 14 | 15 | class c_indicator_bar { 16 | public: 17 | bool state = false; 18 | ImU32 color; 19 | float max; 20 | float min; 21 | float value; 22 | bool large = false; 23 | }; 24 | 25 | class c_indicator_side { 26 | public: 27 | bool state = false; 28 | ImU32 color; 29 | std::string text; 30 | }; 31 | 32 | class c_indicator_desc { 33 | public: 34 | bool state = false; 35 | ImU32 color; 36 | std::string text; 37 | }; 38 | 39 | struct s_indicator { 40 | std::string text; 41 | ImU32 color; 42 | c_indicator_bar bar; 43 | c_indicator_side side; 44 | c_indicator_desc desc; 45 | }; 46 | 47 | class c_indicators { 48 | public: 49 | void draw(ImDrawList* d); 50 | 51 | void add(s_indicator); 52 | void add_with_bar(std::string text, ImU32 color, ImU32 barcolor, float max, float value); 53 | 54 | private: 55 | std::vector ext_indicators; 56 | }; 57 | 58 | #endif //uc-sflying-cm-_INDICATORS_H 59 | -------------------------------------------------------------------------------- /features/visuals/scope.cpp: -------------------------------------------------------------------------------- 1 | #include "../../cheat.h" 2 | 3 | void c_scope::draw(ImDrawList* d) { 4 | if (!csgo->engine->is_connected() || !csgo->engine->is_in_game() || !csgo->local_player) return; 5 | if (!csgo->local_player->is_scoped()) return; 6 | 7 | auto w = 0, h = 0; 8 | csgo->engine->screen_size(w, h); 9 | 10 | auto wep = (c_weapon*)csgo->entities->get_entity_handle(csgo->local_player->weapon()); 11 | if (!wep) return; 12 | 13 | auto idx = wep->econ_index(); 14 | if (idx != WEAPON_AWP && idx != WEAPON_SSG08 && idx != WEAPON_SCAR20 && idx != WEAPON_G3SG1) return; 15 | 16 | if (config->m.removals[3]) { 17 | d->AddLine(ImFloor(ImVec2(0, h / 2)), ImFloor(ImVec2(w, h / 2)), ImColor(0, 0, 0)); 18 | d->AddLine(ImFloor(ImVec2(w / 2, 0)), ImFloor(ImVec2(w / 2, h)), ImColor(0, 0, 0)); 19 | } 20 | 21 | 22 | } -------------------------------------------------------------------------------- /features/visuals/scope.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | class c_scope { 4 | public: 5 | void draw(ImDrawList* d); 6 | }; -------------------------------------------------------------------------------- /features/visuals/speclist.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | class c_speclist { 4 | public: 5 | void work(); 6 | void draw(); 7 | void clear() { spectators.clear(); } 8 | 9 | bool did_set_pos = false; 10 | private: 11 | std::vector spectators; 12 | }; -------------------------------------------------------------------------------- /framework/c_dx.h: -------------------------------------------------------------------------------- 1 | // 2 | // Created by ruppet on 2/4/2020. 3 | // 4 | 5 | #ifndef uc-sflying-loader-c-dx-h 6 | #define uc-sflying-loader-c-dx-h 7 | 8 | 9 | extern LRESULT WINAPI WndProc(HWND, UINT, WPARAM, LPARAM); 10 | 11 | class c_dx { 12 | public: 13 | bool setup(); 14 | bool render(); 15 | 16 | void push_resize(ImVec2 size) { should_resize = true; next_size = size; } 17 | void resize(ImVec2 size); 18 | 19 | c_ui* ui = nullptr; 20 | c_ui_window* info_window = nullptr; 21 | c_ui_window* auth_window = nullptr; 22 | c_ui_window* main_window = nullptr; 23 | 24 | private: 25 | IDirect3D9Ex* directx = nullptr; 26 | IDirect3DDevice9Ex* device = nullptr; 27 | 28 | bool should_resize = false; 29 | ImVec2 next_size; 30 | }; 31 | 32 | 33 | #endif //uc-sflying-loader-c-dx-h 34 | -------------------------------------------------------------------------------- /framework/hooks.cpp: -------------------------------------------------------------------------------- 1 | #include "../cheat.h" 2 | #include "config.h" 3 | 4 | fnPresent oPresent = 0; 5 | fnReset oReset = 0; 6 | WNDPROC oWndProc = 0; 7 | fnPaintTraverse oPaintTraverse = 0; 8 | fnLockCursor oLockCursor = 0; 9 | fnCreateMove oCreateMove = 0; 10 | fnDoPostScreenSpaceEffects oDoPostScreenSpaceEffects = 0; 11 | fnDrawModelExecute oDrawModelExecute = 0; 12 | fnFrameStageNotify oFrameStageNotify = 0; 13 | fnListLeavesInBox oListLeavesInBox = 0; 14 | fnOverrideView oOverrideView = 0; 15 | fnGetScreenAspectRatio oGetScreenAspectRatio = 0; 16 | fnDoExtraBonesProcessing oDoExtraBonesProcessing = 0; 17 | fnEyeAngles oEyeAngles = 0; 18 | fnUpdateClientsideAnimation oUpdateClientsideAnimation = 0; 19 | fnStandartBlendingRules oStandartBlendingRules = 0; 20 | fnGetViewModelFOV oGetViewModelFOV = 0; 21 | fnPacketStart oPacketStart = 0; 22 | fnFireEvent oFireEvent = 0; 23 | fnPostDataUpdate oPostDataUpdate = 0; 24 | fnSendNetMsg oSendNetMsg = 0; 25 | fnWriteUsercmdDeltaToBuffer oWriteUsercmdDeltaToBuffer = 0; 26 | fnIN_KeyEvent oIN_KeyEvent = 0; 27 | fnCL_SendMove oCL_SendMove = 0; 28 | fnSetChoked oSetChoked = 0; 29 | fnHlCreateMove oHlCreateMove = 0; 30 | fnRunCommand oRunCommand = 0; 31 | fnClGrenadePreview_get_bool oGrenadePreview_get_bool = 0; -------------------------------------------------------------------------------- /framework/hooks/camera.cpp: -------------------------------------------------------------------------------- 1 | // 2 | // Created by megapc on 26.04.2020. 3 | // 4 | 5 | #include "../../cheat.h" 6 | int __stdcall hkCamera(c_cvar* var, void* return_address, void* eax) 7 | { 8 | static auto return_to_modify_eye_pos = utils->scan(str("client_panorama.dll"), str("85 C0 0F 84 ? ? ? ? 8B 45 08 8B 0D")); 9 | 10 | const auto local = csgo->local_player; 11 | 12 | if (return_address == (void*)return_to_modify_eye_pos) 13 | return !csgo->in_camera || (local && !local->get_anim_state()->is_in_hit_ground_anim); 14 | 15 | return 0; 16 | } -------------------------------------------------------------------------------- /framework/hooks/doextrabonesprocessing.cpp: -------------------------------------------------------------------------------- 1 | // 2 | // Created by ruppet on 12.01.2020. 3 | // 4 | 5 | #include "../../cheat.h" 6 | 7 | void __fastcall hkDoExtraBonesProcessing(c_player *e, void *, c_studiohdr *a, c_vector *b, void *c, c_matrix3x4 *d, void *f, void *g) { 8 | return; 9 | // if (!e) { oDoExtraBonesProcessing(e, a, b, c, d, f, g); return; } 10 | // if (e->flags() & EF_NOINTERP) return; 11 | // 12 | // auto as = (unsigned long long)e->get_anim_state(); 13 | // if (!as) { oDoExtraBonesProcessing(e, a, b, c, d, f, g); return; } 14 | // 15 | // auto orig = *(int*)(as + 8); 16 | // *(int*)(as + 8) = 0; 17 | // oDoExtraBonesProcessing(e, a, b, c, d, f, g); 18 | // *(int*)(as + 8) = orig; 19 | } -------------------------------------------------------------------------------- /framework/hooks/dopostscreenspaceeffects.cpp: -------------------------------------------------------------------------------- 1 | // 2 | // Created by ruppet on 12.01.2020. 3 | // 4 | 5 | #include "../../cheat.h" 6 | 7 | bool __stdcall hkDoPostScreenSpaceEffects(void* a) { 8 | if (!core->is_fully_loaded || !csgo->local_player || core->hide_from_obs) return oDoPostScreenSpaceEffects(csgo->clientmode, a); 9 | 10 | features->glow->work(); 11 | return oDoPostScreenSpaceEffects(csgo->clientmode, a); 12 | } -------------------------------------------------------------------------------- /framework/hooks/drawmodelexecute.cpp: -------------------------------------------------------------------------------- 1 | // 2 | // Created by ruppet on 12.01.2020. 3 | // 4 | 5 | #include "../../cheat.h" 6 | 7 | void __fastcall hkDrawModelExecute(void* a, void*, void* b, const c_drawmodelstate& c, c_modelrenderinfo& render_info, c_matrix3x4* e) { 8 | if (!core->is_fully_loaded || !csgo->local_player || csgo->modelrender->is_forced_material_override() || core->hide_from_obs) { 9 | oDrawModelExecute(a, b, c, render_info, e); 10 | return; 11 | } 12 | 13 | auto ent = csgo->entities->get_entity(render_info.entity_index); 14 | if (ent && ent->is_player()) { 15 | if (!features->coloredmodels->work(ent, a, b, c, render_info, e)) { 16 | if (csgo->goes_thru[ent->index()]) 17 | csgo->renderview->set_blend(0.25f); 18 | 19 | oDrawModelExecute(a, b, c, render_info, e); 20 | 21 | if (csgo->goes_thru[ent->index()]) 22 | csgo->renderview->set_blend(1.f); 23 | } 24 | } else 25 | oDrawModelExecute(a, b, c, render_info, e); 26 | } -------------------------------------------------------------------------------- /framework/hooks/eyeangles.cpp: -------------------------------------------------------------------------------- 1 | // 2 | // Created by ruppet on 12.01.2020. 3 | // 4 | 5 | #include "../../cheat.h" 6 | #include 7 | 8 | c_angle* __fastcall hkEyeAngles(c_player* e, void*) { 9 | if (!e) return oEyeAngles(e); 10 | if (csgo->local_player && e->index() == csgo->local_player->index()) { 11 | static auto retn_pitch = utils->scan(str("client_panorama.dll"), str("8B CE F3 0F 10 00 8B 06 F3 0F 11 45 ? FF 90 ? ? ? ? F3 0F 10 55 ?")); 12 | static auto retn_yaw = utils->scan(str("client_panorama.dll"), str("F3 0F 10 55 ? 51 8B 8E ? ? ? ?")); 13 | static auto retn_grenade_preview = utils->scan(str("client_panorama.dll"), str("8B 0D ? ? ? ? F3 0F 7E 00 8B 40 08 89 44 24 24")); 14 | 15 | 16 | auto ra = (unsigned long long)_ReturnAddress(); 17 | 18 | if (config->i.aa_pitch && ra == retn_grenade_preview) { 19 | c_angle va; 20 | csgo->engine->get_view_angles(&va); 21 | return &va; 22 | } 23 | if (!retn_pitch || !retn_yaw) return oEyeAngles(e); 24 | if (!csgo->is_in_tp) return oEyeAngles(e); 25 | 26 | 27 | 28 | if (ra == retn_pitch || ra == retn_yaw) 29 | return &csgo->sent; 30 | } 31 | 32 | return oEyeAngles(e); 33 | } -------------------------------------------------------------------------------- /framework/hooks/fireevent.cpp: -------------------------------------------------------------------------------- 1 | // 2 | // Created by ruppet on 12.01.2020. 3 | // 4 | 5 | #include "../../cheat.h" 6 | 7 | void __fastcall hkFireEvent(void* o, void*) { 8 | if (!csgo->local_player) return oFireEvent(o); 9 | 10 | for (auto e = csgo->clientstate->events; e; e = *(c_eventinfo**)((unsigned long long)e + 0x38)) 11 | e->fire_delay = 0.f; 12 | 13 | oFireEvent(o); 14 | } -------------------------------------------------------------------------------- /framework/hooks/getscreenaspectratio.cpp: -------------------------------------------------------------------------------- 1 | // 2 | // Created by ruppet on 12.01.2020. 3 | // 4 | 5 | #include "../../cheat.h" 6 | 7 | float __fastcall hkGetScreenAspectRatio(void* e, void*, int w, int h) { 8 | if (config->i.misc_aspectratiomd > 0) { 9 | auto v = config->i.misc_aspectratiomd; 10 | if (v == 1) return 1.f/1.f; 11 | if (v == 2) return 5.f/4.f; 12 | if (v == 3) return 4.f/3.f; 13 | if (v == 4) return 3.f/2.f; 14 | if (v == 5) return 14.f/9.f; 15 | if (v == 6) return 16.f/10.f; 16 | if (v == 7) return 16.f/9.f; 17 | if (v == 8) return 21.f/9.f; 18 | if (v == 9) return 11.f/4.f; 19 | if (v == 10) return 64.f/45.f; 20 | if (v == 11) return config->i.misc_aspectratio * 0.01f; 21 | } 22 | 23 | return oGetScreenAspectRatio(e, w, h); 24 | } -------------------------------------------------------------------------------- /framework/hooks/getviewmodelfov.cpp: -------------------------------------------------------------------------------- 1 | // 2 | // Created by ruppet on 12.01.2020. 3 | // 4 | 5 | #include "../../cheat.h" 6 | 7 | float __fastcall hkGetViewModelFOV(void* o, void*) { 8 | return oGetViewModelFOV(o) + config->i.misc_viewmodelfov; 9 | } -------------------------------------------------------------------------------- /framework/hooks/grenadepreview.cpp: -------------------------------------------------------------------------------- 1 | // 2 | // Created by anti on 23. 5. 2020. 3 | // 4 | 5 | #include "../../cheat.h" 6 | 7 | bool __fastcall grenade_preview_get_bool(void* ecx, void* edx){ 8 | if (config->b.vis_grenade_preview) 9 | return true; 10 | 11 | //return oGrenadePreview_get_bool(ecx, edx); 12 | } -------------------------------------------------------------------------------- /framework/hooks/hlcreatemove.cpp: -------------------------------------------------------------------------------- 1 | // 2 | // Created by ruppet on 3/21/2020. 3 | // 4 | 5 | #include "../../cheat.h" 6 | 7 | void __fastcall hkHlCreateMove(void* o, void*, int seq, float inp, bool active) { 8 | oHlCreateMove(o, seq, inp, csgo->recharge > 0 ? false : active); 9 | } -------------------------------------------------------------------------------- /framework/hooks/in_keyevent.cpp: -------------------------------------------------------------------------------- 1 | // 2 | // Created by ruppet on 12.01.2020. 3 | // 4 | 5 | #include "../../cheat.h" 6 | 7 | int __fastcall hkIN_KeyEvent(void* o, void*, int code, int key, const char* binding) { 8 | // if (binding && !strcmp(binding, str("drop")) && csgo->aa_worked) { 9 | // features->antiaims->skip = 2; 10 | // features->antiaims->shoulduse = true; 11 | // 12 | // features->antiaims->code = code; 13 | // features->antiaims->key = key; 14 | // features->antiaims->binding = binding; 15 | // 16 | // return 0; 17 | // } 18 | 19 | return oIN_KeyEvent(o, code, key, binding); 20 | } -------------------------------------------------------------------------------- /framework/hooks/listleavesinbox.cpp: -------------------------------------------------------------------------------- 1 | // 2 | // Created by ruppet on 12.01.2020. 3 | // 4 | 5 | #include "../../cheat.h" 6 | #include 7 | int __fastcall hkListLeavesInBox(void* bsp, void*, c_vector& mins, c_vector& maxs, unsigned short* list, int size) { 8 | if (!config->b.vis_noocclusion || *(unsigned int*)_ReturnAddress() != 0x14244489) return oListLeavesInBox(bsp, mins, maxs, list, size); 9 | 10 | auto info = *(c_renderableinfo**)((uintptr_t)_AddressOfReturnAddress() + 0x14); 11 | if (!info || !info->renderable) return oListLeavesInBox(bsp, mins, maxs, list, size); 12 | 13 | auto ent = info->renderable->get_unknown()->get_entity(); 14 | if (!ent || !ent->is_player()) return oListLeavesInBox(bsp, mins, maxs, list, size); 15 | 16 | info->_0 &= ~0x100; 17 | info->_1 |= 0xC0; 18 | 19 | static auto mi = c_vector(-16384.0f, -16384.0f, -16384.0f); 20 | static auto ma = c_vector(16384.0f, 16384.0f, 16384.0f); 21 | 22 | return oListLeavesInBox(bsp, mi, ma, list, size); 23 | } -------------------------------------------------------------------------------- /framework/hooks/lockcursor.cpp: -------------------------------------------------------------------------------- 1 | // 2 | // Created by ruppet on 12.01.2020. 3 | // 4 | 5 | #include "../../cheat.h" 6 | 7 | void __stdcall hkLockCursor() { 8 | if (menu->is_initialized && menu->wnd->get_active()) { 9 | csgo->surface->unlock_cursor(); 10 | return; 11 | } 12 | 13 | oLockCursor(csgo->surface); 14 | } -------------------------------------------------------------------------------- /framework/hooks/move.cpp: -------------------------------------------------------------------------------- 1 | // 2 | // Created by ruppet on 2/3/2020. 3 | // 4 | 5 | #include "../../cheat.h" -------------------------------------------------------------------------------- /framework/hooks/packetstart.cpp: -------------------------------------------------------------------------------- 1 | // 2 | // Created by ruppet on 12.01.2020. 3 | // 4 | 5 | #include "../../cheat.h" 6 | 7 | void __fastcall hkPacketStart(void* o, void*, int inc, int out) { 8 | if (!csgo->local_player) return oPacketStart(o, inc, out); 9 | 10 | for (auto it = csgo->packets.begin(); it != csgo->packets.end(); it++) { 11 | if (*it == out) { 12 | csgo->packets.erase(it); 13 | return oPacketStart(o, inc, out); 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /framework/hooks/postdataupdate.cpp: -------------------------------------------------------------------------------- 1 | // 2 | // Created by ruppet on 12.01.2020. 3 | // 4 | 5 | #include "../../cheat.h" 6 | 7 | void __fastcall hkPostDataUpdate(c_player* p, void* edx, int updatetype) { 8 | if (csgo->local_player && p && p->index() == csgo->local_player->index()) { 9 | auto wep = (c_weapon*)csgo->entities->get_entity_handle(csgo->local_player->weapon()); 10 | if (wep) { 11 | wep->paintkit() = config->i.skins_weapon_paintkit[wep->econ_index()]; 12 | } 13 | } 14 | 15 | return oPostDataUpdate(p, updatetype); 16 | } -------------------------------------------------------------------------------- /framework/hooks/reset.cpp: -------------------------------------------------------------------------------- 1 | // 2 | // Created by ruppet on 12.01.2020. 3 | // 4 | 5 | #include "../../cheat.h" 6 | 7 | long __stdcall hkReset(IDirect3DDevice9* device, D3DPRESENT_PARAMETERS* a) { 8 | if (!core->is_dx_loaded || !menu->is_initialized) return oReset(device, a); 9 | 10 | ImGui_ImplDX9_InvalidateDeviceObjects(); 11 | auto result = oReset(device, a); 12 | ImGui_ImplDX9_CreateDeviceObjects(); 13 | 14 | return result; 15 | } -------------------------------------------------------------------------------- /framework/hooks/runcommand.cpp: -------------------------------------------------------------------------------- 1 | // 2 | // Created by ruppet on 4/12/2020. 3 | // 4 | 5 | #include "../../cheat.h" 6 | 7 | //Anti-paste. -------------------------------------------------------------------------------- /framework/hooks/sendmove.cpp: -------------------------------------------------------------------------------- 1 | // 2 | // Created by ruppet on 2/3/2020. 3 | // 4 | 5 | #include "../../cheat.h" 6 | 7 | void __stdcall hkSendMove() { 8 | // char data[4000] = {0}; 9 | // 10 | // auto nextcommandnr = g_offset(int, csgo->clientstate, 0x4D24) + g_offset(int, csgo->clientstate, 0x4D28) + 1; 11 | 12 | oCL_SendMove(); 13 | } -------------------------------------------------------------------------------- /framework/hooks/sendnetmsg.cpp: -------------------------------------------------------------------------------- 1 | // 2 | // Created by ruppet on 12.01.2020. 3 | // 4 | 5 | #include "../../cheat.h" 6 | 7 | char buffer[4000] = {0}; 8 | bool __fastcall hkSendNetMsg(void* o, void*, c_netmessage* msg, bool& force_reliable, bool voice) { 9 | // if (msg->get_type() == 14 && config->b.misc_svpurebypass) 10 | // return false; 11 | // 12 | // if (strstr(msg->get_name(), str("CCLCMsg_Move"))) { 13 | // if (msg->get_group() == 11 && msg->get_type() != 5) { 14 | // } 15 | // 16 | // return oSendNetMsg(o, msg, force_reliable, voice); 17 | // } 18 | // 19 | // if (msg->get_group() == 9) 20 | // voice = true; 21 | 22 | return oSendNetMsg(o, msg, force_reliable, voice); 23 | } -------------------------------------------------------------------------------- /framework/hooks/setchoked.cpp: -------------------------------------------------------------------------------- 1 | // 2 | // Created by ruppet on 2/3/2020. 3 | // 4 | 5 | #include "../../cheat.h" 6 | #include 7 | 8 | void __fastcall hkSetChoked(c_netchannel* o, void*) { 9 | static auto retn = utils->scan(str("engine.dll"), str("FF 90 ? ? ? ? FF 87 ? ? ? ?")) + 6; 10 | if ((ptr)_ReturnAddress() != retn) 11 | return oSetChoked(o); 12 | 13 | oSetChoked(o); 14 | } -------------------------------------------------------------------------------- /framework/hooks/shouldskipanimframe.cpp: -------------------------------------------------------------------------------- 1 | // 2 | // Created by ruppet on 2/3/2020. 3 | // 4 | 5 | #include "../../cheat.h" 6 | 7 | //Anti-paste. -------------------------------------------------------------------------------- /framework/hooks/standartblendingrules.cpp: -------------------------------------------------------------------------------- 1 | // 2 | // Created by ruppet on 12.01.2020. 3 | // 4 | 5 | #include "../../cheat.h" 6 | 7 | //Anti-paste. -------------------------------------------------------------------------------- /framework/hooks/updateclientsideanimation.cpp: -------------------------------------------------------------------------------- 1 | // 2 | // Created by ruppet on 12.01.2020. 3 | // 4 | 5 | #include "../../cheat.h" 6 | 7 | void __fastcall hkUpdateClientsideAnimation(c_player* e, void*) { 8 | if (!e || !csgo->local_player || e->health() <= 0) 9 | return oUpdateClientsideAnimation(e); 10 | 11 | if (e->index() == csgo->local_player->index()) { 12 | if (csgo->allow_anims) 13 | oUpdateClientsideAnimation(e); 14 | else 15 | return; 16 | } else 17 | oUpdateClientsideAnimation(e); 18 | } -------------------------------------------------------------------------------- /framework/hooks/wndproc.cpp: -------------------------------------------------------------------------------- 1 | // 2 | // Created by ruppet on 12.01.2020. 3 | // 4 | 5 | #include "../../cheat.h" 6 | 7 | extern IMGUI_IMPL_API LRESULT ImGui_ImplWin32_WndProcHandler(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam); 8 | 9 | long __stdcall hkWndProc(HWND hwnd, UINT msg, WPARAM w, LPARAM l) { 10 | if (!core->is_dx_loaded || !core->is_fully_loaded || !menu->is_initialized) return CallWindowProcA(oWndProc, hwnd, msg, w, l); 11 | 12 | if (msg == WM_KEYDOWN) { 13 | if (w == config->i.menukey) 14 | menu->wnd->set_active(!menu->wnd->get_active()); 15 | } 16 | 17 | if (menu->wnd->get_active()) { 18 | auto ret = ImGui_ImplWin32_WndProcHandler(hwnd, msg, w, l); 19 | 20 | if (w != 'W' && w != 'A' && w != 'S' && w != 'D' && w != VK_SHIFT && w != VK_CONTROL && w != VK_TAB && w != VK_SPACE || ImGui::GetIO().WantTextInput) { 21 | if (!ret) 22 | return CallWindowProcA(oWndProc, hwnd, msg, w, l); 23 | 24 | return true; 25 | } 26 | } else { 27 | auto io = &ImGui::GetIO(); 28 | memset(io->MouseDown, 0, 5); 29 | memset(io->MouseClicked, 0, 5); 30 | memset(io->MouseUpDuration, 0, sizeof(float) * 5); 31 | memset(io->MouseDownDuration, 0, sizeof(float) * 5); 32 | memset(io->KeysDown, 0, 512); 33 | memset(io->KeysDownDuration, 0, sizeof(float) * 512); 34 | } 35 | 36 | return CallWindowProcA(oWndProc, hwnd, msg, w, l); 37 | } -------------------------------------------------------------------------------- /framework/hooks/writeusercmddeltatobuffer.cpp: -------------------------------------------------------------------------------- 1 | // 2 | // Created by ruppet on 12.01.2020. 3 | // 4 | 5 | #include "../../cheat.h" 6 | #include 7 | 8 | //Anti-paste. -------------------------------------------------------------------------------- /framework/keymanager.cpp: -------------------------------------------------------------------------------- 1 | #include "../cheat.h" 2 | 3 | bool c_keymanager::is_key_down(int key) { 4 | if (GetForegroundWindow() != csgo->window) return prev[key]; 5 | if (utils->is_chat_opened()) return prev[key]; 6 | 7 | prev[key] = HIWORD(GetKeyState(key)); 8 | return prev[key]; 9 | } 10 | 11 | bool c_keymanager::is_key_up(int key) { 12 | if (GetForegroundWindow() != csgo->window) return prev[key]; 13 | if (utils->is_chat_opened()) return prev[key]; 14 | 15 | prev[key] = !HIWORD(GetKeyState(key)); 16 | return prev[key]; 17 | } 18 | 19 | bool c_keymanager::is_key_toggled(int key) { 20 | if (GetForegroundWindow() != csgo->window) return prev[key]; 21 | if (utils->is_chat_opened()) return prev[key]; 22 | 23 | prev[key] = LOWORD(GetKeyState(key)); 24 | return prev[key]; 25 | } 26 | 27 | bool c_keymanager::check(int key, int style) { 28 | if (GetForegroundWindow() != csgo->window) return prev[key]; 29 | if (utils->is_chat_opened()) return prev[key]; 30 | 31 | prev[key] = true; 32 | if (style == 0) 33 | return prev[key]; 34 | if (style == 1) 35 | return is_key_down(key); 36 | if (style == 2) 37 | return is_key_toggled(key); 38 | if (style == 3) 39 | return is_key_up(key); 40 | return false; 41 | } -------------------------------------------------------------------------------- /framework/keymanager.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | class c_keymanager { 4 | public: 5 | bool is_key_down(int key); 6 | bool is_key_up(int key); 7 | bool is_key_toggled(int key); 8 | 9 | bool check(int key, int style); 10 | 11 | private: 12 | bool prev[256] = {false}; 13 | }; -------------------------------------------------------------------------------- /framework/menu.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | class c_menu { 4 | public: 5 | void initialize(IDirect3DDevice9* device); 6 | void draw_begin(); 7 | void draw(); 8 | void draw_end(); 9 | void setup(); 10 | 11 | ImColor get_outline_color(float alpha = 1.f); 12 | ImColor get_light_color(float alpha = 1.f); 13 | ImColor get_dark_color(float alpha = 1.f); 14 | ImColor get_shadow_color(float alpha = 1.f); 15 | ImColor get_accent_color(float alpha = 1.f); 16 | 17 | bool is_opened = false; 18 | bool is_initialized = false; 19 | 20 | IDirect3DTexture9* spinners[8] = {0}; 21 | 22 | c_ui_window* wnd = nullptr; 23 | c_ui* ui = nullptr; 24 | 25 | private: 26 | void draw_ext_elements(const char* tab, const char* group); 27 | 28 | int tab = 0; 29 | 30 | bool is_message_shown = false; 31 | char* title = 0; 32 | char* message = 0; 33 | 34 | void ragebot_tab(c_ui_tab* tab); 35 | void antiaims_tab(c_ui_tab* tab); 36 | void legitbot_tab(c_ui_tab* tab); 37 | void visuals_tab(c_ui_tab* tab); 38 | void misc_tab(c_ui_tab* tab); 39 | void skins_tab(c_ui_tab* tab); 40 | void extensions_tab(c_ui_tab* tab); 41 | }; -------------------------------------------------------------------------------- /loader.h: -------------------------------------------------------------------------------- 1 | // 2 | // Created by ruppet on 2/4/2020. 3 | // 4 | 5 | #ifndef uc-sflying-loader-loader-h 6 | #define uc-sflying-loader-loader-h 7 | 8 | 9 | #define g_new(t, n) t* n = new t 10 | #define g_ext(t, n) extern t* n 11 | 12 | #define IMGUI_DEFINE_MATH_OPERATORS 13 | 14 | #include 15 | #include 16 | #include 17 | #include 18 | #include 19 | #include 20 | #include 21 | #include 22 | #include 23 | #include 24 | #include 25 | #include 26 | #include 27 | #include 28 | #include 29 | #include 30 | #include 31 | 32 | #include "tools/li.h" 33 | #include "tools/strenc.h" 34 | #include "tools/c_utils.h" 35 | 36 | #include "core/subscription.h" 37 | 38 | #include "ui/imgui.h" 39 | #include "ui/imgui_internal.h" 40 | #include "ui/imgui_impl_win32.h" 41 | #include "ui/imgui_impl_dx9.h" 42 | #include "ui/ui/c_ui.h" 43 | 44 | #include "core/tcp.h" 45 | #include "core/md5.h" 46 | #include "core/base64.h" 47 | #include "core/hwid.h" 48 | #include "core/api.h" 49 | #include "core/c_core.h" 50 | 51 | #include "framework/c_dx.h" 52 | 53 | g_ext(c_utils, utils); 54 | g_ext(c_core, core); 55 | g_ext(c_hwid, hwid); 56 | g_ext(c_dx, dx); 57 | 58 | #pragma comment(lib, "WinInet.lib") 59 | #pragma comment(lib, "ws2_32.lib") 60 | #pragma comment(lib, "wbemuuid.lib") 61 | #pragma comment(lib, "BlackBone.lib") 62 | #pragma comment(lib, "d3d9.lib") 63 | #pragma comment(lib, "d3dx9.lib") 64 | 65 | #endif //uc-sflying-loader-loader-h 66 | -------------------------------------------------------------------------------- /scripting/api/lua_client.cpp: -------------------------------------------------------------------------------- 1 | // 2 | // Created by anti on 19. 5. 2020. 3 | // 4 | 5 | #include "../../cheat.h" 6 | 7 | #define _s base_state 8 | 9 | void c_scripting::u_client() { 10 | auto c = _s.new_usertype(str("client"), sol::no_constructor); 11 | 12 | 13 | c.set_function(str("is_ingame"), [](){ 14 | return csgo->engine->is_in_game(); 15 | }); 16 | 17 | c.set_function(str("get_fps"), [](){ 18 | return 1.f / csgo->globals->absframetime; 19 | }); 20 | 21 | c.set_function(str("get_ping"), [](){ 22 | return csgo->engine->get_ping(); 23 | }); 24 | 25 | c.set_function(str("get_screen_size"), [](int w, int h){ 26 | return csgo->engine->screen_size(w,h); 27 | }); 28 | 29 | c.set_function(str("get_local_player"), [](){ 30 | return csgo->engine->get_local_player(); 31 | }); 32 | 33 | c.set_function(str("exec"), [](const std::string &command){ 34 | csgo->engine->client_cmd_unrestricted(command.c_str()); 35 | }); 36 | 37 | c.set_function(str("error"), [](const std::string &text) { 38 | utils->log(str("lua - error: %s"), text.c_str()); 39 | }); 40 | 41 | c.set_function(str("set_clantag"), [](const std::string &clantag){ 42 | utils->set_clantag(clantag.c_str()); 43 | }); 44 | 45 | 46 | 47 | } -------------------------------------------------------------------------------- /scripting/api/lua_cvar.cpp: -------------------------------------------------------------------------------- 1 | // 2 | // Created by anti on 19. 5. 2020. 3 | // 4 | 5 | #include "../../cheat.h" 6 | 7 | #define _s base_state 8 | 9 | void c_scripting::u_cvar() { 10 | auto h = _s.new_usertype(str("cvar"), sol::no_constructor); 11 | 12 | h.set_function(str("set_int"),[](const std::string &cvar_name, int val){ 13 | csgo->cvar->find_var(cvar_name.c_str())->set(val); 14 | }); 15 | 16 | h.set_function(str("get_int"),[](const std::string &cvar_name){ 17 | return csgo->cvar->find_var(cvar_name.c_str())->get_int(); 18 | }); 19 | 20 | h.set_function(str("set_float"),[](const std::string &cvar_name, float val){ 21 | csgo->cvar->find_var(cvar_name.c_str())->set(val); 22 | }); 23 | 24 | h.set_function(str("get_float"),[](const std::string &cvar_name){ 25 | return csgo->cvar->find_var(cvar_name.c_str())->get_float(); 26 | }); 27 | 28 | h.set_function(str("set_string"),[](const std::string &cvar_name, std::string val){ 29 | csgo->cvar->find_var(cvar_name.c_str())->set(val.c_str()); 30 | }); 31 | 32 | h.set_function(str("get_string"),[](const std::string &cvar_name){ 33 | return csgo->cvar->find_var(cvar_name.c_str())->get_string(); 34 | }); 35 | 36 | } -------------------------------------------------------------------------------- /scripting/api/lua_event.cpp: -------------------------------------------------------------------------------- 1 | // 2 | // Created by anti on 19. 5. 2020. 3 | // 4 | #include "../../cheat.h" 5 | 6 | #define _s base_state 7 | 8 | 9 | void c_scripting::u_event(){ 10 | auto ev = _s.new_usertype(str("event"), sol::no_constructor); 11 | 12 | 13 | ev.set_function(str("get_int"),[](c_event* self, const std::string &ev_name){ 14 | return self->get_int(ev_name.c_str()); 15 | }); 16 | 17 | ev.set_function(str("get_float"),[](c_event* self, const std::string &ev_name){ 18 | return self->get_float(ev_name.c_str()); 19 | }); 20 | 21 | ev.set_function(str("get_string"),[](c_event* self, const std::string &ev_name){ 22 | return self->get_string(ev_name.c_str()); 23 | }); 24 | ev.set_function(str("get_bool"),[](c_event* self, const std::string &ev_name){ 25 | return self->get_bool(ev_name.c_str()); 26 | }); 27 | 28 | 29 | } 30 | -------------------------------------------------------------------------------- /scripting/scripting.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | class c_script { 4 | public: 5 | sol::environment env; 6 | lua_State* state; 7 | 8 | std::string name; 9 | std::string path; 10 | 11 | std::vector menu_elements; 12 | std::map> callbacks; 13 | 14 | bool is_loaded = false; 15 | }; 16 | 17 | class c_scripting { 18 | public: 19 | bool initialize(); 20 | 21 | void refresh(); 22 | void prepare(c_script &s); 23 | 24 | void load(c_script &s); 25 | void load(const std::string &s); 26 | void unload(c_script &s); 27 | void unload(const std::string &s); 28 | 29 | void run(ImDrawList* dd); 30 | void run(); 31 | ///////////////EVENTS//////////////////// 32 | void player_hurt(c_event* e); 33 | void player_death(c_event* e); 34 | void bullet_impact(c_event* e); 35 | void round_prestart(); 36 | void round_end(c_event* e); 37 | //////////////////////////////////////// 38 | 39 | std::vector scripts; 40 | std::vector load_queue; 41 | sol::state base_state; 42 | 43 | std::vector allow_none; 44 | 45 | c_script* current_script = nullptr; 46 | 47 | private: 48 | sol::table protect(sol::table base, std::vector &allowed_write); 49 | 50 | void globals(); 51 | void ns_ui(); 52 | void u_painting(); 53 | void u_cvar(); 54 | void u_client(); 55 | void u_entity(); 56 | void u_event(); 57 | }; -------------------------------------------------------------------------------- /sdk/appsystem.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | class c_appsystem { 4 | public: 5 | virtual bool connect(void* factory) = 0; 6 | virtual void disconnect() = 0; 7 | virtual void* query_interface(const char* pInterfaceName) = 0; 8 | virtual int init() = 0; 9 | virtual void shutdown() = 0; 10 | virtual const void* get_deps() = 0; 11 | virtual int get_tier() = 0; 12 | virtual void reconnect(void* factory, const char* pInterfaceName) = 0; 13 | virtual void unkfunc() = 0; 14 | }; -------------------------------------------------------------------------------- /sdk/bomb.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | class c_bomb : public c_entity { 4 | public: 5 | float& timer(); 6 | bool& is_ticking(); 7 | int& site(); 8 | float& defusetime(); 9 | float& blowtime(); 10 | c_ehandle& defuser(); 11 | float& defuse(); 12 | bool& is_defused(); 13 | 14 | int get_damage(c_player* p); 15 | }; -------------------------------------------------------------------------------- /sdk/c_fogcontroller.cpp: -------------------------------------------------------------------------------- 1 | // 2 | // Created by ruppet on 2/12/2020. 3 | // 4 | 5 | #include "c_fogcontroller.h" 6 | #include "../cheat.h" 7 | 8 | int &c_fogcontroller::color_secondary() { 9 | static auto n = csgo->netvars[str("DT_FogController")][str("m_fog.colorSecondary")]; 10 | return g_offset(int, this, n.offset); 11 | } 12 | 13 | int &c_fogcontroller::color_primary() { 14 | static auto n = csgo->netvars[str("DT_FogController")][str("m_fog.colorPrimary")]; 15 | return g_offset(int, this, n.offset); 16 | } 17 | 18 | bool &c_fogcontroller::enable() { 19 | static auto n = csgo->netvars[str("DT_FogController")][str("m_fog.enable")]; 20 | return g_offset(bool, this, n.offset); 21 | } 22 | 23 | int &c_fogcontroller::blend() { 24 | static auto n = csgo->netvars[str("DT_FogController")][str("m_fog.blend")]; 25 | return g_offset(int, this, n.offset); 26 | } 27 | 28 | float &c_fogcontroller::start() { 29 | static auto n = csgo->netvars[str("DT_FogController")][str("m_fog.start")]; 30 | return g_offset(float, this, n.offset); 31 | } 32 | 33 | float &c_fogcontroller::end() { 34 | static auto n = csgo->netvars[str("DT_FogController")][str("m_fog.end")]; 35 | return g_offset(float, this, n.offset); 36 | } 37 | 38 | float &c_fogcontroller::maxdensity() { 39 | static auto n = csgo->netvars[str("DT_FogController")][str("m_fog.maxdensity")]; 40 | return g_offset(float, this, n.offset); 41 | } 42 | -------------------------------------------------------------------------------- /sdk/c_fogcontroller.h: -------------------------------------------------------------------------------- 1 | // 2 | // Created by ruppet on 2/12/2020. 3 | // 4 | 5 | #ifndef uc-sflying-cm-_C_FOGCONTROLLER_H 6 | #define uc-sflying-cm-_C_FOGCONTROLLER_H 7 | 8 | 9 | class c_fogcontroller { 10 | public: 11 | int& color_secondary(); 12 | int& color_primary(); 13 | bool& enable(); 14 | int& blend(); 15 | float& start(); 16 | float& end(); 17 | float& maxdensity(); 18 | }; 19 | 20 | 21 | #endif //uc-sflying-cm-_C_FOGCONTROLLER_H 22 | -------------------------------------------------------------------------------- /sdk/c_grenade.cpp: -------------------------------------------------------------------------------- 1 | // 2 | // Created by ruppet on 2/25/2020. 3 | // 4 | 5 | #include "../cheat.h" 6 | #include "c_grenade.h" 7 | 8 | float &c_grenade::throwtime() { 9 | static auto n = csgo->netvars[str("DT_BaseCSGrenade")][str("m_fThrowTime")]; 10 | return g_offset(float, this, n.offset); 11 | } 12 | 13 | bool &c_grenade::pinpulled() { 14 | static auto n = csgo->netvars[str("DT_BaseCSGrenade")][str("m_bPinPulled")]; 15 | return g_offset(bool, this, n.offset); 16 | } 17 | -------------------------------------------------------------------------------- /sdk/c_grenade.h: -------------------------------------------------------------------------------- 1 | // 2 | // Created by ruppet on 2/25/2020. 3 | // 4 | 5 | #ifndef uc-sflying-cm-_C_GRENADE_H 6 | #define uc-sflying-cm-_C_GRENADE_H 7 | 8 | 9 | class c_grenade : public c_weapon { 10 | public: 11 | float& throwtime(); 12 | bool& pinpulled(); 13 | }; 14 | 15 | 16 | #endif //uc-sflying-cm-_C_GRENADE_H 17 | -------------------------------------------------------------------------------- /sdk/c_hostage.cpp: -------------------------------------------------------------------------------- 1 | // 2 | // Created by ruppet on 2/12/2020. 3 | // 4 | 5 | #include "../cheat.h" 6 | -------------------------------------------------------------------------------- /sdk/c_hostage.h: -------------------------------------------------------------------------------- 1 | // 2 | // Created by ruppet on 2/12/2020. 3 | // 4 | 5 | #ifndef uc-sflying-cm-_C_HOSTAGE_H 6 | #define uc-sflying-cm-_C_HOSTAGE_H 7 | 8 | 9 | class c_hostage : public c_dynamicbb { 10 | public: 11 | 12 | }; 13 | 14 | 15 | #endif //uc-sflying-cm-_C_HOSTAGE_H 16 | -------------------------------------------------------------------------------- /sdk/checksum_md5.h: -------------------------------------------------------------------------------- 1 | // 2 | // Created by antih on 16. 5. 2020. 3 | // 4 | 5 | #ifndef uc-sflying-cm-_CHECKSUM_MD5_H 6 | #define uc-sflying-cm-_CHECKSUM_MD5_H 7 | 8 | #endif //uc-sflying-cm-_CHECKSUM_MD5_H 9 | #pragma once 10 | 11 | // 16 bytes == 128 bit digest 12 | #define MD5_DIGEST_LENGTH 16 13 | 14 | // MD5 Hash 15 | typedef struct 16 | { 17 | unsigned int buf[4]; 18 | unsigned int bits[2]; 19 | unsigned char in[64]; 20 | } MD5Context_t; 21 | 22 | void MD5Init ( MD5Context_t* context ); 23 | void MD5Update ( MD5Context_t* context, unsigned char const* buf, unsigned int len ); 24 | void MD5Final ( unsigned char digest[MD5_DIGEST_LENGTH], MD5Context_t* context ); 25 | 26 | char* MD5_Print ( unsigned char* digest, int hashlen ); 27 | 28 | unsigned int MD5_PseudoRandom ( unsigned int nSeed ); 29 | -------------------------------------------------------------------------------- /sdk/collider.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | class c_collider { 4 | public: 5 | char pad[8]; 6 | c_vector mins; 7 | c_vector maxs; 8 | }; -------------------------------------------------------------------------------- /sdk/color.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | class c_color { 4 | public: 5 | char r = 0, g = 0, b = 0, a = 255; 6 | 7 | c_color() {} 8 | c_color(int r, int g, int b, int a = 255) { this->r = r; this->g = g; this->b = b; this->a = a; } 9 | 10 | bool operator==(const c_color& o) { return *(unsigned int*)(&o.r) == *(unsigned int*)(&r); } 11 | }; -------------------------------------------------------------------------------- /sdk/cvar.cpp: -------------------------------------------------------------------------------- 1 | #include "../cheat.h" 2 | 3 | // 55 8B EC 81 EC ? ? ? ? 80 3D ? ? ? ? ? 56 8B 35 4 | 5 | void c_cvar::devconsole_color_printf(const c_color& clr, const char* fmt, ...) { 6 | char buffer[2048] = { 0 }; 7 | 8 | va_list va; 9 | va_start(va, fmt); 10 | vsprintf(buffer, fmt, va); 11 | va_end(va); 12 | 13 | using Fn = void(__stdcall*)(const c_color&, char const*); 14 | static auto fn = (Fn)utils->scan(str("engine.dll"), str("55 8B EC 81 EC ? ? ? ? 80 3D ? ? ? ? ? 56 8B 35")); 15 | 16 | fn(clr, buffer); 17 | } 18 | 19 | void c_cvar::devconsole_printf(const char* fmt, ...) { 20 | char buffer[2048] = { 0 }; 21 | 22 | va_list va; 23 | va_start(va, fmt); 24 | vsprintf(buffer, fmt, va); 25 | va_end(va); 26 | 27 | devconsole_color_printf(c_color(255, 255, 255), buffer); 28 | } -------------------------------------------------------------------------------- /sdk/dynamicbb.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | class c_dynamicbb : public c_entity { 4 | public: 5 | bool bounding_box(ImVec2* mins, ImVec2* maxs); 6 | }; -------------------------------------------------------------------------------- /sdk/engine.cpp: -------------------------------------------------------------------------------- 1 | // 2 | // Created by ruppet on 2/27/2020. 3 | // 4 | 5 | #include "../cheat.h" 6 | 7 | float c_engine::get_ping() { 8 | return ((c_netchannel*)get_net_channel())->get_avg_latency(0); 9 | } -------------------------------------------------------------------------------- /sdk/enginetrace.cpp: -------------------------------------------------------------------------------- 1 | #include "../cheat.h" 2 | 3 | int c_enginetrace::get_point_contents(const c_vector& vecAbsPosition, int contentsMask, c_handle** ppEntity) 4 | { 5 | return g_vfunc(int(__thiscall*)(void*, const c_vector&, int, c_handle**), this, 0)(this, vecAbsPosition, contentsMask, ppEntity); 6 | } 7 | 8 | void c_enginetrace::trace_ray(const c_ray& ray, unsigned int fMask, c_tracefilter* filter, c_trace* trace) 9 | { 10 | g_vfunc(void(__thiscall*)(void*, const c_ray&, unsigned int, c_tracefilter*, c_trace*), this, 5)(this, ray, fMask, filter, trace); 11 | } 12 | 13 | void c_enginetrace::clip_ray_to_entity(const c_ray& ray, unsigned int fMask, c_entity* pEnt, c_trace* pTrace) 14 | { 15 | return g_vfunc(void(__thiscall*)(void*, const c_ray&, unsigned int, c_entity*, c_trace*), this, 3)(this, ray, fMask, pEnt, pTrace); 16 | } 17 | 18 | void c_enginetrace::clip_ray_to_collideable(const c_ray& ray, unsigned int fMask, c_collider* pEnt, c_trace* pTrace) { 19 | return g_vfunc(void(__thiscall*)(void*, const c_ray&, unsigned int, c_collider*, c_trace*), this, 4)(this, ray, fMask, pEnt, pTrace); 20 | } 21 | 22 | bool standart_filter_rules( c_entity *pCollide, int fContentsMask ) 23 | { 24 | // Static prop case... 25 | if ( !pCollide ) 26 | return true; 27 | 28 | if ( !pCollide->is_player() ) 29 | { 30 | if ( (fContentsMask & CONTENTS_MONSTER) == 0 ) 31 | return false; 32 | } 33 | 34 | return true; 35 | } -------------------------------------------------------------------------------- /sdk/entity.cpp: -------------------------------------------------------------------------------- 1 | #include "../cheat.h" 2 | #include "entity.h" 3 | 4 | 5 | 6 | c_vector& c_entity::origin() { 7 | static auto n = csgo->netvars[str("DT_BaseEntity")][str("m_vecOrigin")]; 8 | return g_offset(c_vector, this, n.offset); 9 | } 10 | 11 | bool c_entity::is_projectile() { 12 | if (!this || IsBadReadPtr(this, sizeof(this))) return false; 13 | 14 | auto c = get_client_class(); 15 | if (!c) return false; 16 | 17 | return 18 | c->class_id == DT_BaseCSGrenadeProjectile || 19 | c->class_id == DT_DecoyProjectile || 20 | c->class_id == DT_MolotovProjectile || 21 | c->class_id == DT_SensorGrenadeProjectile || 22 | c->class_id == DT_SmokeGrenadeProjectile || 23 | c->class_id == DT_TEClientProjectile || 24 | c->class_id == DT_SnowballProjectile; 25 | } 26 | 27 | 28 | bool c_entity::is_hostage() { 29 | auto c = get_client_class(); 30 | if (!c) return false; 31 | 32 | return c->class_id == DT_CHostage; 33 | } 34 | 35 | c_vector &c_entity::abs_velocity() { 36 | static auto o = utils->datamap_find(get_datamap(), str("m_vecAbsVelocity")); 37 | return g_offset(c_vector, this, o); 38 | } -------------------------------------------------------------------------------- /sdk/entityinfo.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | class c_entityinfo { 4 | public: 5 | void* create; 6 | void* create_event; 7 | const char* name; 8 | c_recvtable* table; 9 | c_entityinfo* next; 10 | int class_id; 11 | }; -------------------------------------------------------------------------------- /sdk/gamerules.cpp: -------------------------------------------------------------------------------- 1 | #include "../cheat.h" 2 | 3 | bool& c_gamerules::match_paused() { 4 | static auto n = csgo->netvars[str("DT_CSGameRulesProxy")][str("cs_gamerules_data")][str("m_bMatchWaitingForResume")]; 5 | return g_offset(bool, this, n.offset); 6 | } 7 | 8 | bool& c_gamerules::freeze_period() { 9 | static auto n = csgo->netvars[str("DT_CSGameRulesProxy")][str("cs_gamerules_data")][str("m_bFreezePeriod")]; 10 | return g_offset(bool, this, n.offset); 11 | } 12 | 13 | bool& c_gamerules::warmup_period() { 14 | static auto n = csgo->netvars[str("DT_CSGameRulesProxy")][str("cs_gamerules_data")][str("m_bWarmupPeriod")]; 15 | return g_offset(bool, this, n.offset); 16 | } 17 | 18 | bool& c_gamerules::bomb_planted() { 19 | static auto n = csgo->netvars[str("DT_CSGameRulesProxy")][str("cs_gamerules_data")][str("m_bBombPlanted")]; 20 | return g_offset(bool, this, n.offset); 21 | } 22 | 23 | bool& c_gamerules::is_valve_ds() { 24 | static auto n = csgo->netvars[str("DT_CSGameRulesProxy")][str("cs_gamerules_data")][str("m_bIsValveDS")]; 25 | return g_offset(bool, this, n.offset); 26 | } 27 | 28 | bool& c_gamerules::is_matchmaking() { 29 | static auto n = csgo->netvars[str("DT_CSGameRulesProxy")][str("cs_gamerules_data")][str("m_bIsQueuedMatchmaking")]; 30 | return g_offset(bool, this, n.offset); 31 | } -------------------------------------------------------------------------------- /sdk/gamerules.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | class c_gamerules { 4 | public: 5 | bool& match_paused(); 6 | bool& freeze_period(); 7 | bool& warmup_period(); 8 | bool& bomb_planted(); 9 | bool& is_valve_ds(); 10 | bool& is_matchmaking(); 11 | }; -------------------------------------------------------------------------------- /sdk/globals.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | class c_globals { 4 | public: 5 | float realtime; 6 | int framecount; 7 | float absframetime; 8 | float unused_0; 9 | float servertime; 10 | float frametime; 11 | int maxclients; 12 | int tickcount; 13 | float tickinterval; 14 | float interp_amount; 15 | int unused_1; 16 | int unused_2; 17 | }; -------------------------------------------------------------------------------- /sdk/glow.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | struct s_glowobject 4 | { 5 | c_entity* entity; 6 | 7 | union 8 | { 9 | c_vector color; 10 | struct 11 | { 12 | float r; 13 | float g; 14 | float b; 15 | }; 16 | }; 17 | 18 | float a; 19 | char pad_0014[4]; 20 | float unk0; 21 | char pad_001C[4]; 22 | float unk1; 23 | bool render_occluded; 24 | bool render_unoccluded; 25 | bool full_bloom_render; 26 | char pad_0027[5]; 27 | int glow_type; 28 | int splitscreen_slot; 29 | int next_free_slot; 30 | 31 | bool is_unused() const 32 | { 33 | return next_free_slot != -2; 34 | } 35 | }; 36 | 37 | class c_glowmanager { 38 | public: 39 | s_glowobject* objects; 40 | int numobjects; 41 | }; -------------------------------------------------------------------------------- /sdk/hl.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | class c_hl { 4 | public: 5 | virtual int init(void*, void*, void*) = 0; 6 | virtual void post_init() = 0; 7 | virtual void shutdown(void) = 0; 8 | virtual bool replay_init(void* replayFactory) = 0; 9 | virtual bool replay_post_init() = 0; 10 | virtual void level_init_pre_entity(char const* pMapName) = 0; 11 | virtual void level_init_post_entity() = 0; 12 | virtual void level_shutdown(void) = 0; 13 | virtual c_entityinfo* get_all_classes(void) = 0; 14 | }; -------------------------------------------------------------------------------- /sdk/localize.h: -------------------------------------------------------------------------------- 1 | // 2 | // Created by ruppet on 05.01.2020. 3 | // 4 | 5 | #ifndef uc-sflying-cm-_LOCALIZE_H 6 | #define uc-sflying-cm-_LOCALIZE_H 7 | 8 | class c_localize : public c_appsystem { 9 | public: 10 | virtual bool add_file(const char* fileName, const char* pPathID = nullptr, bool bIncludeFallbackSearchPaths = false) = 0; 11 | virtual void remove_all() = 0; 12 | virtual wchar_t* find(const char* tokenName) = 0; 13 | virtual const wchar_t* find_safe(const char* tokenName) = 0; 14 | virtual int convert_to_unicode(const char* ansi, wchar_t* unicode, int unicodeBufferSizeInBytes) = 0; 15 | virtual int convert_to_ansi(const wchar_t* unicode, char* ansi, int ansiBufferSize) = 0; 16 | virtual unsigned long find_index(const char* tokenName) = 0; 17 | virtual void construct_string(wchar_t* unicodeOuput, int unicodeBufferSizeInBytes, const wchar_t* formatString, int numFormatParameters, ...) = 0; 18 | virtual const char* get_name_by_index(unsigned long index) = 0; 19 | virtual wchar_t* get_value_by_index(unsigned long index) = 0; 20 | }; 21 | 22 | #endif //uc-sflying-cm-_LOCALIZE_H 23 | -------------------------------------------------------------------------------- /sdk/materials.cpp: -------------------------------------------------------------------------------- 1 | #include "../cheat.h" 2 | 3 | c_material* c_materialsystem::find_material(char const* pMaterialName, const char* pTextureGroupName, bool complain, const char* pComplainPrefix) 4 | { 5 | using fn = c_material*(__thiscall*)(PVOID, char const*, const char*, bool, const char*); 6 | return g_vfunc(fn, this, 84)(this, pMaterialName, pTextureGroupName, complain, pComplainPrefix); 7 | } 8 | 9 | unsigned short c_materialsystem::first_material() 10 | { 11 | using fn = unsigned short(__thiscall*)(void*); 12 | return g_vfunc(fn, this, 86)(this); 13 | } 14 | 15 | unsigned short c_materialsystem::next_material(unsigned short h) 16 | { 17 | using fn = unsigned short(__thiscall*)(void*, unsigned short); 18 | return g_vfunc(fn, this, 87)(this, h); 19 | } 20 | 21 | unsigned short c_materialsystem::invalid_material() 22 | { 23 | using fn = unsigned short(__thiscall*)(void*); 24 | return g_vfunc(fn, this, 88)(this); 25 | } 26 | 27 | c_material* c_materialsystem::get_material(unsigned short h) 28 | { 29 | using fn = c_material*(__thiscall*)(void*, unsigned short); 30 | return g_vfunc(fn, this, 89)(this, h); 31 | } -------------------------------------------------------------------------------- /sdk/matrix.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | class c_matrix3x4 { 4 | public: 5 | float* operator[](int i) { return mtx[i]; } 6 | 7 | float mtx[3][4]; 8 | }; 9 | 10 | class c_matrix4x4 { 11 | public: 12 | float mtx[4][4] = {0}; 13 | 14 | inline float* operator[](int i) { return mtx[i]; } 15 | }; -------------------------------------------------------------------------------- /sdk/memory.h: -------------------------------------------------------------------------------- 1 | // 2 | // Created by ruppet on 04.01.2020. 3 | // 4 | 5 | #ifndef uc-sflying-cm-_MEMORY_H 6 | #define uc-sflying-cm-_MEMORY_H 7 | 8 | class c_enginememory 9 | { 10 | public: 11 | virtual ~c_enginememory(); 12 | virtual void* alloc(size_t nSize) = 0; 13 | virtual void* realloc(void* pMem, size_t nSize) = 0; 14 | virtual void free(void* pMem) = 0; 15 | virtual void* unused(void* pMem, size_t nSize) = 0; 16 | virtual size_t get_size(void* pMem) = 0; 17 | }; 18 | 19 | #endif //uc-sflying-cm-_MEMORY_H 20 | -------------------------------------------------------------------------------- /sdk/modelinfo.cpp: -------------------------------------------------------------------------------- 1 | #include "../cheat.h" 2 | 3 | c_studiohdr* c_modelinfo::get_studio_model(const c_model* model) 4 | { 5 | return g_vfunc(c_studiohdr * (__thiscall*)(void*, const c_model*), this, 32)(this, model); 6 | } 7 | 8 | int c_modelinfo::get_model_index(const char* name) { 9 | return g_vfunc(int(__thiscall*)(void*, const char*), this, 2)(this, name); 10 | } 11 | 12 | char* c_modelinfo::get_model_name(const c_model* model) 13 | { 14 | return g_vfunc(char* (__thiscall*)(void*, const c_model*), this, 3)(this, model); 15 | } 16 | 17 | void c_modelinfo::get_model_materials(const c_model* model, int count, c_material** mats) 18 | { 19 | g_vfunc(char* (__thiscall*)(void*, const c_model*, int, c_material**), this, 19)(this, model, count, mats); 20 | } -------------------------------------------------------------------------------- /sdk/modelinfo.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | class c_modelinfo 4 | { 5 | public: 6 | c_studiohdr* get_studio_model(const c_model* model); 7 | int get_model_index(const char* name); 8 | char* get_model_name(const c_model* model); 9 | void get_model_materials(const c_model* model, int count, c_material** mats); 10 | }; -------------------------------------------------------------------------------- /sdk/paintkit.h: -------------------------------------------------------------------------------- 1 | // 2 | // Created by ruppet on 05.01.2020. 3 | // 4 | 5 | #ifndef uc-sflying-cm-_PAINTKIT_H 6 | #define uc-sflying-cm-_PAINTKIT_H 7 | 8 | template 9 | class c_node { 10 | public: 11 | int prev_id; 12 | int next_id; 13 | char pad[8]; 14 | K key; 15 | V value; 16 | }; 17 | 18 | template 19 | class c_nodelist { 20 | public: 21 | c_node* data; 22 | int alloc_size; 23 | int grow_size; 24 | int start_element; 25 | int next_available; 26 | char pad[4]; 27 | int last_element; 28 | }; 29 | 30 | class c_utlstring { 31 | public: 32 | char* value; 33 | unsigned int capacity; 34 | unsigned int grow_size; 35 | unsigned int size; 36 | }; 37 | 38 | class c_paintkit { 39 | public: 40 | int id; 41 | c_utlstring name; 42 | c_utlstring description; 43 | c_utlstring item_name; 44 | c_utlstring material_name; 45 | c_utlstring image_inventory; 46 | 47 | char pad_0x0054[0x8C]; 48 | }; 49 | 50 | #endif //uc-sflying-cm-_PAINTKIT_H 51 | -------------------------------------------------------------------------------- /sdk/playerresource.cpp: -------------------------------------------------------------------------------- 1 | #include "../cheat.h" 2 | 3 | int& c_playerresources::c4_carrier() { 4 | static auto n = csgo->netvars[str("DT_CSPlayerResource")][str("m_iPlayerC4")]; 5 | return g_offset(int, this, n.offset); 6 | } 7 | 8 | int& c_playerresources::ping(int entnum) { 9 | static auto n = csgo->netvars[str("DT_CSPlayerResource")][str("baseclass")][str("m_iPing")]; 10 | return g_offset(int, this, n.offset + (entnum * sizeof(int))); 11 | } -------------------------------------------------------------------------------- /sdk/playerresource.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | class c_playerresources : public c_entity { 4 | public: 5 | int& c4_carrier(); 6 | 7 | int& ping(int entnum); 8 | }; -------------------------------------------------------------------------------- /sdk/prediction.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | class c_prediction { 4 | public: 5 | void setup_move(c_entity* player, c_usercmd* ucmd, c_move* moveHelper, void* pMoveData) { 6 | typedef void(__thiscall* fn)(void*, c_entity*, c_usercmd*, c_move*, void*); 7 | return g_vfunc(fn, this, 20)(this, player, ucmd, moveHelper, pMoveData); 8 | } 9 | 10 | void finish_move(c_entity* player, c_usercmd* ucmd, void* pMoveData) { 11 | typedef void(__thiscall* fn)(void*, c_entity*, c_usercmd*, void*); 12 | return g_vfunc(fn, this, 21)(this, player, ucmd, pMoveData); 13 | } 14 | }; -------------------------------------------------------------------------------- /sdk/projectile.cpp: -------------------------------------------------------------------------------- 1 | #include "../cheat.h" 2 | 3 | #define it(i, t) strcpy(txt, b ? str(i) : str(t)) 4 | 5 | const char* c_projectile::get_icon(bool b) { 6 | auto txt = (char*)malloc(33); 7 | 8 | switch (get_client_class()->class_id) { 9 | case DT_BaseCSGrenadeProjectile: it("j", "High Explosive Grenade"); break; 10 | case DT_DecoyProjectile: it("m", "Decoy Grenade"); break; 11 | case DT_MolotovProjectile: it("l", "Molotov Cocktail"); break; 12 | case DT_SensorGrenadeProjectile: it("i", "Flashbang"); break; 13 | case DT_SmokeGrenadeProjectile: it("k", "Smoke Grenade"); break; 14 | case DT_TEClientProjectile: it("i", "Tactical Grenade"); break; 15 | case DT_SnowballProjectile: it("i", "Snowball"); break; 16 | } 17 | 18 | return txt; 19 | } 20 | 21 | #undef it -------------------------------------------------------------------------------- /sdk/projectile.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | class c_projectile : public c_dynamicbb { 4 | public: 5 | const char* get_icon(bool b); 6 | }; -------------------------------------------------------------------------------- /sdk/recv.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | typedef enum 4 | { 5 | DPT_Int = 0, 6 | DPT_Float, 7 | DPT_Vector, 8 | DPT_VectorXY, // Only encodes the XY of a vector, ignores Z 9 | DPT_String, 10 | DPT_Array, // An array of the base types (can't be of datatables). 11 | DPT_DataTable, 12 | DPT_NUMSendPropTypes 13 | 14 | } e_sendproptype; 15 | 16 | class c_recvtable; 17 | 18 | class c_recvprop { 19 | public: 20 | const char* name; 21 | e_sendproptype type; 22 | int flags; 23 | int string_buffer_size; 24 | bool is_inside_array; 25 | void* extra_data; 26 | c_recvprop* array_prop; 27 | void* array_length_proxy; 28 | void* proxy; 29 | void* dt_proxy; 30 | c_recvtable* table; 31 | int offset; 32 | int elements_stride; 33 | int num_elements; 34 | const char* parent_name; 35 | }; 36 | 37 | class c_recvtable { 38 | public: 39 | c_recvprop* props; 40 | int num; 41 | void* decoder; 42 | const char* name; 43 | }; -------------------------------------------------------------------------------- /sdk/renderview.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | class c_renderview { 4 | public: 5 | virtual void draw_brush_model(c_entity* baseentity, c_model* model, const c_vector& origin, const c_angle& angles, bool bUnused) = 0; 6 | virtual void draw_id_brush_model(void* pList, c_model* model) = 0; 7 | virtual void touch_light(struct dlight_t* light) = 0; 8 | virtual void draw_3d_overlays(void) = 0; 9 | virtual void set_blend(float blend) = 0; 10 | virtual float get_blend(void) = 0; 11 | virtual void set_color_modulation(float const* blend) = 0; 12 | virtual void get_color_modulation(float* blend) = 0; 13 | }; -------------------------------------------------------------------------------- /sdk/surface.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | class c_surface { 4 | public: 5 | void unlock_cursor() { 6 | g_vfunc(void(__thiscall*)(void*), this, 66)(this); 7 | } 8 | }; -------------------------------------------------------------------------------- /sdk/tonemap_controller.cpp: -------------------------------------------------------------------------------- 1 | #include "../cheat.h" 2 | 3 | bool& c_tonemap_controller::use_custom_autoexposure_min() { 4 | static auto n = csgo->netvars[str("DT_EnvTonemapController")][str("m_bUseCustomAutoExposureMin")]; 5 | return g_offset(bool, this, n.offset); 6 | } 7 | 8 | bool& c_tonemap_controller::use_custom_autoexposure_max() { 9 | static auto n = csgo->netvars[str("DT_EnvTonemapController")][str("m_bUseCustomAutoExposureMax")]; 10 | return g_offset(bool, this, n.offset); 11 | } 12 | 13 | bool& c_tonemap_controller::use_custom_bloom_scale() { 14 | static auto n = csgo->netvars[str("DT_EnvTonemapController")][str("m_bUseCustomBloomScale")]; 15 | return g_offset(bool, this, n.offset); 16 | } 17 | 18 | float& c_tonemap_controller::custom_autoexposure_max() { 19 | static auto n = csgo->netvars[str("DT_EnvTonemapController")][str("m_flCustomAutoExposureMax")]; 20 | return g_offset(float, this, n.offset); 21 | } 22 | 23 | float& c_tonemap_controller::custom_autoexposure_min() { 24 | static auto n = csgo->netvars[str("DT_EnvTonemapController")][str("m_flCustomAutoExposureMin")]; 25 | return g_offset(float, this, n.offset); 26 | } 27 | 28 | float& c_tonemap_controller::custom_bloom_scale() { 29 | static auto n = csgo->netvars[str("DT_EnvTonemapController")][str("m_flCustomBloomScale")]; 30 | return g_offset(float, this, n.offset); 31 | } 32 | -------------------------------------------------------------------------------- /sdk/tonemap_controller.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | class c_tonemap_controller : public c_entity { 4 | public: 5 | bool& use_custom_autoexposure_min(); 6 | bool& use_custom_autoexposure_max(); 7 | bool& use_custom_bloom_scale(); 8 | float& custom_autoexposure_max(); 9 | float& custom_autoexposure_min(); 10 | float& custom_bloom_scale(); 11 | }; -------------------------------------------------------------------------------- /sdk/usercmd.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "checksum_md5.h" 3 | class c_usercmd { 4 | public: 5 | c_usercmd() {} 6 | 7 | char pad_0x0000[0x4]; 8 | int commandnumber; 9 | int tickcount; 10 | c_angle viewangles; 11 | c_angle aimangles; 12 | float forwardmove; 13 | float sidemove; 14 | float upmove; 15 | int buttons; 16 | char impulse; 17 | int weaponselect; 18 | int weaponsubtype; 19 | int randomseed; 20 | short mousedx; 21 | short mousedy; 22 | bool hasbeenpredicted; 23 | char pad_0x4C[0x18]; 24 | }; -------------------------------------------------------------------------------- /sdk/viewsetup.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | class c_viewsetup 4 | { 5 | public: 6 | int x; 7 | int x_old; 8 | int y; 9 | int y_old; 10 | int width; 11 | int width_old; 12 | int height; 13 | int height_old; 14 | char pad_0x0020[0x90]; 15 | float fov; 16 | float viewmodel_fov; 17 | c_vector origin; 18 | c_angle angles; 19 | char pad_0x00D0[0x7C]; 20 | }; -------------------------------------------------------------------------------- /tools/c_utils.h: -------------------------------------------------------------------------------- 1 | // 2 | // Created by ruppet on 2/4/2020. 3 | // 4 | 5 | #ifndef uc-sflying-loader-c-utils-h 6 | #define uc-sflying-loader-c-utils-h 7 | 8 | 9 | class c_utils { 10 | public: 11 | void create_console(); 12 | void log(const char* text, ...); 13 | const char* format(const char* text, ...); 14 | void generate_random(char* buffer, size_t size); 15 | std::vector split(const std::string& str, const char* delim); 16 | unsigned long get_process_id(std::string name); 17 | }; 18 | 19 | 20 | #endif //uc-sflying-loader-c-utils-h 21 | -------------------------------------------------------------------------------- /tools/fnv.cpp: -------------------------------------------------------------------------------- 1 | // 2 | // Created by ruppet on 3/18/2020. 3 | // 4 | 5 | #include "fnv.h" 6 | 7 | namespace util 8 | { 9 | uint32_t runtime_basis = fnv1a_seed; 10 | } -------------------------------------------------------------------------------- /tools/fnv.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include 4 | #include 5 | 6 | namespace util 7 | { 8 | constexpr uint32_t fnv1a_seed = 0x37C4271F; 9 | constexpr uint32_t fnv1a_prime = 0x1000193; 10 | __declspec(dllexport) extern uint32_t runtime_basis; 11 | 12 | inline uint32_t fnv1a(const char* key) { 13 | const char* data = const_cast(key); 14 | auto hash = runtime_basis; 15 | 16 | for (size_t i = 0; i < strlen(key); ++i) { 17 | const uint8_t value = data[i]; 18 | hash = hash ^ value; 19 | hash *= fnv1a_prime; 20 | } 21 | 22 | return hash; 23 | } 24 | 25 | constexpr uint32_t fnv1a_ct(const char* str, const uint32_t value = fnv1a_seed) noexcept { 26 | return !*str ? value : fnv1a_ct(str + 1, static_cast(1ull * 27 | (value ^ static_cast(*str)) * fnv1a_prime)); 28 | } 29 | } 30 | 31 | template 32 | struct constant_holder 33 | { 34 | enum class val_holder : t 35 | { 36 | val = v 37 | }; 38 | }; 39 | 40 | #define CONSTANT(value) ((decltype(value))constant_holder::val_holder::val) 41 | 42 | #define fnv(s) (CONSTANT(util::fnv1a_ct(s))) 43 | #define fnv_cmp(a, b) (CONSTANT(util::fnv1a_ct(b)) == util::fnv1a(a)) 44 | #define fnv_cmp_imp(a, b) (b == util::fnv1a(a)) -------------------------------------------------------------------------------- /ui/freetype/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # FreeType 2 build system -- top-level Makefile 3 | # 4 | 5 | 6 | # Copyright 1996-2018 by 7 | # David Turner, Robert Wilhelm, and Werner Lemberg. 8 | # 9 | # This file is part of the FreeType project, and may only be used, modified, 10 | # and distributed under the terms of the FreeType project license, 11 | # LICENSE.TXT. By continuing to use, modify, or distribute this file you 12 | # indicate that you have read the license and understand and accept it 13 | # fully. 14 | 15 | 16 | # Project names 17 | # 18 | PROJECT := freetype 19 | PROJECT_TITLE := FreeType 20 | 21 | # The variable TOP_DIR holds the path to the topmost directory in the project 22 | # engine source hierarchy. If it is not defined, default it to `.'. 23 | # 24 | TOP_DIR ?= . 25 | 26 | # The variable OBJ_DIR gives the location where object files and the 27 | # FreeType library are built. 28 | # 29 | OBJ_DIR ?= $(TOP_DIR)/objs 30 | 31 | 32 | include $(TOP_DIR)/builds/toplevel.mk 33 | 34 | # EOF 35 | -------------------------------------------------------------------------------- /ui/freetype/docs/CMAKE: -------------------------------------------------------------------------------- 1 | Support for a cmake build has been contributed. See the remarks in the 2 | top-level `CMakeLists.txt' file for more. 3 | -------------------------------------------------------------------------------- /ui/freetype/docs/INSTALL.MAC: -------------------------------------------------------------------------------- 1 | Please follow the instructions in INSTALL.UNIX to install FreeType on 2 | Mac OS X. 3 | 4 | Currently FreeType2 functions based on some deprecated Carbon APIs 5 | return `FT_Err_Unimplemented_Feature' always, even if FreeType2 is 6 | configured and built on the system that deprecated Carbon APIs are 7 | available. To enable deprecated FreeType2 functions as far as 8 | possible, replace `src/base/ftmac.c' by `builds/mac/ftmac.c'. 9 | 10 | Starting with Mac OS X 10.5, gcc defaults the deployment target to 11 | 10.5. In previous versions of Mac OS X, this defaulted to 10.1. If 12 | you want your built binaries to run only on 10.5, this change does not 13 | concern you. If you want them to also run on older versions of Mac 14 | OS X, then you must either set the MACOSX_DEPLOYMENT_TARGET 15 | environment variable or pass `-mmacosx-version-min' to gcc. You 16 | should specify the oldest version of Mac OS you want the code to run 17 | on. For example, if you use Bourne shell: 18 | 19 | export MACOSX_DEPLOYMENT_TARGET=10.2 20 | 21 | or, if you use C shell: 22 | 23 | setenv MACOSX_DEPLOYMENT_TARGET 10.2 24 | 25 | Alternatively, you could pass `-mmacosx-version-min=10.2' to gcc. 26 | 27 | Here the number 10.2 is the lowest version that the built binaries can 28 | run on. In the above cases, the built binaries will run on Mac OS X 29 | 10.2 and later, but _not_ earlier. If you want to run on earlier, you 30 | have to set lower version, e.g., 10.0. 31 | 32 | For classic Mac OS (Mac OS 7, 8, 9) please refer to builds/mac/README. 33 | -------------------------------------------------------------------------------- /ui/freetype/docs/MAKEPP: -------------------------------------------------------------------------------- 1 | As a special exception, FreeType can also be built with the 'makepp' 2 | build tool, available from http://makepp.sourceforge.net. 3 | 4 | Note, however, that you will need at least version 2.0 and pass the 5 | option --norc-substitution to have it work correctly. 6 | -------------------------------------------------------------------------------- /ui/freetype/docs/TODO: -------------------------------------------------------------------------------- 1 | Here is a list of items that need to be addressed in FreeType 2 2 | --------------------------------------------------------------- 3 | 4 | * Implement stem3/counter hints properly in the Postscript hinter. 5 | 6 | * Add CIDCMap support to the CID driver. 7 | 8 | * Add track kerning support to the PFR driver. 9 | 10 | * Add kerning (AFM file) support to the CID driver. 11 | 12 | 13 | Here is a list of bugs which should be handled 14 | ---------------------------------------------- 15 | 16 | Other bugs have been registered at the savannah bugzilla of FreeType. 17 | 18 | * CID driver: 19 | Handle the case where a CID font has a top-level font matrix also 20 | (see PLRM, 5.11.3, Type 0 CIDFonts). Since CID_FaceInfoRec lacks 21 | a font_matrix entry we have to directly apply it to all subfont 22 | matrices. 23 | 24 | * CID driver: 25 | Use top-level font matrix entry for setting the upem value, not the 26 | entries in the FDarray. If absent, use 1000. 27 | 28 | ------------------------------------------------------------------------ 29 | 30 | Copyright 2001-2018 by 31 | David Turner, Robert Wilhelm, and Werner Lemberg. 32 | 33 | This file is part of the FreeType project, and may only be used, 34 | modified, and distributed under the terms of the FreeType project 35 | license, LICENSE.TXT. By continuing to use, modify, or distribute this 36 | file you indicate that you have read the license and understand and 37 | accept it fully. 38 | 39 | 40 | --- end of TODO --- 41 | -------------------------------------------------------------------------------- /ui/freetype/docs/reference/README: -------------------------------------------------------------------------------- 1 | After saying `make refdoc' this directory contains the FreeType API 2 | reference. You need python to make this target. 3 | 4 | This also works with Jam: Just type `jam refdoc' in the main directory. 5 | 6 | -------------------------------------------------------------------------------- /ui/freetype/include/freetype/config/ftmodule.h: -------------------------------------------------------------------------------- 1 | /* 2 | * This file registers the FreeType modules compiled into the library. 3 | * 4 | * If you use GNU make, this file IS NOT USED! Instead, it is created in 5 | * the objects directory (normally `/objs/') based on information 6 | * from `/modules.cfg'. 7 | * 8 | * Please read `docs/INSTALL.ANY' and `docs/CUSTOMIZE' how to compile 9 | * FreeType without GNU make. 10 | * 11 | */ 12 | 13 | FT_USE_MODULE( FT_Module_Class, autofit_module_class ) 14 | FT_USE_MODULE( FT_Driver_ClassRec, tt_driver_class ) 15 | FT_USE_MODULE( FT_Driver_ClassRec, t1_driver_class ) 16 | FT_USE_MODULE( FT_Driver_ClassRec, cff_driver_class ) 17 | FT_USE_MODULE( FT_Driver_ClassRec, t1cid_driver_class ) 18 | FT_USE_MODULE( FT_Driver_ClassRec, pfr_driver_class ) 19 | FT_USE_MODULE( FT_Driver_ClassRec, t42_driver_class ) 20 | FT_USE_MODULE( FT_Driver_ClassRec, winfnt_driver_class ) 21 | FT_USE_MODULE( FT_Driver_ClassRec, pcf_driver_class ) 22 | FT_USE_MODULE( FT_Module_Class, psaux_module_class ) 23 | FT_USE_MODULE( FT_Module_Class, psnames_module_class ) 24 | FT_USE_MODULE( FT_Module_Class, pshinter_module_class ) 25 | FT_USE_MODULE( FT_Renderer_Class, ft_raster1_renderer_class ) 26 | FT_USE_MODULE( FT_Module_Class, sfnt_module_class ) 27 | FT_USE_MODULE( FT_Renderer_Class, ft_smooth_renderer_class ) 28 | FT_USE_MODULE( FT_Renderer_Class, ft_smooth_lcd_renderer_class ) 29 | FT_USE_MODULE( FT_Renderer_Class, ft_smooth_lcdv_renderer_class ) 30 | FT_USE_MODULE( FT_Driver_ClassRec, bdf_driver_class ) 31 | 32 | /* EOF */ 33 | -------------------------------------------------------------------------------- /ui/freetype/objs/README: -------------------------------------------------------------------------------- 1 | This directory contains all the object files created when building the 2 | library. 3 | -------------------------------------------------------------------------------- /ui/freetype/objs/Win32/Release Static/autofit.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flying1337/csgo-project/72dc1362646309931bab72fef8535b0d40d383a5/ui/freetype/objs/Win32/Release Static/autofit.obj -------------------------------------------------------------------------------- /ui/freetype/objs/Win32/Release Static/bdf.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flying1337/csgo-project/72dc1362646309931bab72fef8535b0d40d383a5/ui/freetype/objs/Win32/Release Static/bdf.obj -------------------------------------------------------------------------------- /ui/freetype/objs/Win32/Release Static/cff.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flying1337/csgo-project/72dc1362646309931bab72fef8535b0d40d383a5/ui/freetype/objs/Win32/Release Static/cff.obj -------------------------------------------------------------------------------- /ui/freetype/objs/Win32/Release Static/freetype.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flying1337/csgo-project/72dc1362646309931bab72fef8535b0d40d383a5/ui/freetype/objs/Win32/Release Static/freetype.lib -------------------------------------------------------------------------------- /ui/freetype/objs/Win32/Release Static/freetype.log: -------------------------------------------------------------------------------- 1 |  autofit.c 2 | ftbase.c 3 | ftbbox.c 4 | ftbdf.c 5 | ftbitmap.c 6 | ftcid.c 7 | ftfstype.c 8 | ftgasp.c 9 | ftglyph.c 10 | ftgxval.c 11 | ftinit.c 12 | ftmm.c 13 | ftotval.c 14 | ftpatent.c 15 | ftpfr.c 16 | ftstroke.c 17 | ftsynth.c 18 | ftsystem.c 19 | fttype1.c 20 | ftwinfnt.c 21 | bdf.c 22 | ftcache.c 23 | cff.c 24 | type1cid.c 25 | ftgzip.c 26 | ftlzw.c 27 | pcf.c 28 | pfr.c 29 | psaux.c 30 | pshinter.c 31 | psmodule.c 32 | raster.c 33 | sfnt.c 34 | smooth.c 35 | truetype.c 36 | type1.c 37 | type42.c 38 | f:\imgui-1.68\freetype-2.9.1\src\truetype\ttgxvar.c(2136): warning C4701: использована потенциально неинициализированная локальная переменная "fvar_head" 39 | winfnt.c 40 | ftdebug.c 41 | freetype.vcxproj -> F:\imgui-1.68\freetype-2.9.1\builds\windows\vc2010\..\..\..\objs\Win32\Release Static\freetype.lib 42 | -------------------------------------------------------------------------------- /ui/freetype/objs/Win32/Release Static/freetype.tlog/CL.command.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flying1337/csgo-project/72dc1362646309931bab72fef8535b0d40d383a5/ui/freetype/objs/Win32/Release Static/freetype.tlog/CL.command.1.tlog -------------------------------------------------------------------------------- /ui/freetype/objs/Win32/Release Static/freetype.tlog/CL.read.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flying1337/csgo-project/72dc1362646309931bab72fef8535b0d40d383a5/ui/freetype/objs/Win32/Release Static/freetype.tlog/CL.read.1.tlog -------------------------------------------------------------------------------- /ui/freetype/objs/Win32/Release Static/freetype.tlog/CL.write.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flying1337/csgo-project/72dc1362646309931bab72fef8535b0d40d383a5/ui/freetype/objs/Win32/Release Static/freetype.tlog/CL.write.1.tlog -------------------------------------------------------------------------------- /ui/freetype/objs/Win32/Release Static/freetype.tlog/Lib-link-cvtres.read.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flying1337/csgo-project/72dc1362646309931bab72fef8535b0d40d383a5/ui/freetype/objs/Win32/Release Static/freetype.tlog/Lib-link-cvtres.read.1.tlog -------------------------------------------------------------------------------- /ui/freetype/objs/Win32/Release Static/freetype.tlog/Lib-link-cvtres.write.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flying1337/csgo-project/72dc1362646309931bab72fef8535b0d40d383a5/ui/freetype/objs/Win32/Release Static/freetype.tlog/Lib-link-cvtres.write.1.tlog -------------------------------------------------------------------------------- /ui/freetype/objs/Win32/Release Static/freetype.tlog/Lib.command.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flying1337/csgo-project/72dc1362646309931bab72fef8535b0d40d383a5/ui/freetype/objs/Win32/Release Static/freetype.tlog/Lib.command.1.tlog -------------------------------------------------------------------------------- /ui/freetype/objs/Win32/Release Static/freetype.tlog/freetype.lastbuildstate: -------------------------------------------------------------------------------- 1 | #TargetFrameworkVersion=v4.0:PlatformToolSet=v141:EnableManagedIncrementalBuild=false:VCToolArchitecture=Native32Bit:WindowsTargetPlatformVersion=10.0.17763.0 2 | Release Static|Win32|F:\imgui-1.68\freetype-2.9.1\builds\windows\vc2010\| 3 | -------------------------------------------------------------------------------- /ui/freetype/objs/Win32/Release Static/freetype.tlog/rc.command.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flying1337/csgo-project/72dc1362646309931bab72fef8535b0d40d383a5/ui/freetype/objs/Win32/Release Static/freetype.tlog/rc.command.1.tlog -------------------------------------------------------------------------------- /ui/freetype/objs/Win32/Release Static/freetype.tlog/rc.read.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flying1337/csgo-project/72dc1362646309931bab72fef8535b0d40d383a5/ui/freetype/objs/Win32/Release Static/freetype.tlog/rc.read.1.tlog -------------------------------------------------------------------------------- /ui/freetype/objs/Win32/Release Static/freetype.tlog/rc.write.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flying1337/csgo-project/72dc1362646309931bab72fef8535b0d40d383a5/ui/freetype/objs/Win32/Release Static/freetype.tlog/rc.write.1.tlog -------------------------------------------------------------------------------- /ui/freetype/objs/Win32/Release Static/ftbase.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flying1337/csgo-project/72dc1362646309931bab72fef8535b0d40d383a5/ui/freetype/objs/Win32/Release Static/ftbase.obj -------------------------------------------------------------------------------- /ui/freetype/objs/Win32/Release Static/ftbbox.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flying1337/csgo-project/72dc1362646309931bab72fef8535b0d40d383a5/ui/freetype/objs/Win32/Release Static/ftbbox.obj -------------------------------------------------------------------------------- /ui/freetype/objs/Win32/Release Static/ftbdf.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flying1337/csgo-project/72dc1362646309931bab72fef8535b0d40d383a5/ui/freetype/objs/Win32/Release Static/ftbdf.obj -------------------------------------------------------------------------------- /ui/freetype/objs/Win32/Release Static/ftbitmap.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flying1337/csgo-project/72dc1362646309931bab72fef8535b0d40d383a5/ui/freetype/objs/Win32/Release Static/ftbitmap.obj -------------------------------------------------------------------------------- /ui/freetype/objs/Win32/Release Static/ftcache.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flying1337/csgo-project/72dc1362646309931bab72fef8535b0d40d383a5/ui/freetype/objs/Win32/Release Static/ftcache.obj -------------------------------------------------------------------------------- /ui/freetype/objs/Win32/Release Static/ftcid.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flying1337/csgo-project/72dc1362646309931bab72fef8535b0d40d383a5/ui/freetype/objs/Win32/Release Static/ftcid.obj -------------------------------------------------------------------------------- /ui/freetype/objs/Win32/Release Static/ftdebug.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flying1337/csgo-project/72dc1362646309931bab72fef8535b0d40d383a5/ui/freetype/objs/Win32/Release Static/ftdebug.obj -------------------------------------------------------------------------------- /ui/freetype/objs/Win32/Release Static/ftfstype.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flying1337/csgo-project/72dc1362646309931bab72fef8535b0d40d383a5/ui/freetype/objs/Win32/Release Static/ftfstype.obj -------------------------------------------------------------------------------- /ui/freetype/objs/Win32/Release Static/ftgasp.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flying1337/csgo-project/72dc1362646309931bab72fef8535b0d40d383a5/ui/freetype/objs/Win32/Release Static/ftgasp.obj -------------------------------------------------------------------------------- /ui/freetype/objs/Win32/Release Static/ftglyph.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flying1337/csgo-project/72dc1362646309931bab72fef8535b0d40d383a5/ui/freetype/objs/Win32/Release Static/ftglyph.obj -------------------------------------------------------------------------------- /ui/freetype/objs/Win32/Release Static/ftgxval.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flying1337/csgo-project/72dc1362646309931bab72fef8535b0d40d383a5/ui/freetype/objs/Win32/Release Static/ftgxval.obj -------------------------------------------------------------------------------- /ui/freetype/objs/Win32/Release Static/ftgzip.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flying1337/csgo-project/72dc1362646309931bab72fef8535b0d40d383a5/ui/freetype/objs/Win32/Release Static/ftgzip.obj -------------------------------------------------------------------------------- /ui/freetype/objs/Win32/Release Static/ftinit.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flying1337/csgo-project/72dc1362646309931bab72fef8535b0d40d383a5/ui/freetype/objs/Win32/Release Static/ftinit.obj -------------------------------------------------------------------------------- /ui/freetype/objs/Win32/Release Static/ftlzw.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flying1337/csgo-project/72dc1362646309931bab72fef8535b0d40d383a5/ui/freetype/objs/Win32/Release Static/ftlzw.obj -------------------------------------------------------------------------------- /ui/freetype/objs/Win32/Release Static/ftmm.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flying1337/csgo-project/72dc1362646309931bab72fef8535b0d40d383a5/ui/freetype/objs/Win32/Release Static/ftmm.obj -------------------------------------------------------------------------------- /ui/freetype/objs/Win32/Release Static/ftotval.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flying1337/csgo-project/72dc1362646309931bab72fef8535b0d40d383a5/ui/freetype/objs/Win32/Release Static/ftotval.obj -------------------------------------------------------------------------------- /ui/freetype/objs/Win32/Release Static/ftpatent.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flying1337/csgo-project/72dc1362646309931bab72fef8535b0d40d383a5/ui/freetype/objs/Win32/Release Static/ftpatent.obj -------------------------------------------------------------------------------- /ui/freetype/objs/Win32/Release Static/ftpfr.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flying1337/csgo-project/72dc1362646309931bab72fef8535b0d40d383a5/ui/freetype/objs/Win32/Release Static/ftpfr.obj -------------------------------------------------------------------------------- /ui/freetype/objs/Win32/Release Static/ftstroke.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flying1337/csgo-project/72dc1362646309931bab72fef8535b0d40d383a5/ui/freetype/objs/Win32/Release Static/ftstroke.obj -------------------------------------------------------------------------------- /ui/freetype/objs/Win32/Release Static/ftsynth.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flying1337/csgo-project/72dc1362646309931bab72fef8535b0d40d383a5/ui/freetype/objs/Win32/Release Static/ftsynth.obj -------------------------------------------------------------------------------- /ui/freetype/objs/Win32/Release Static/ftsystem.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flying1337/csgo-project/72dc1362646309931bab72fef8535b0d40d383a5/ui/freetype/objs/Win32/Release Static/ftsystem.obj -------------------------------------------------------------------------------- /ui/freetype/objs/Win32/Release Static/fttype1.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flying1337/csgo-project/72dc1362646309931bab72fef8535b0d40d383a5/ui/freetype/objs/Win32/Release Static/fttype1.obj -------------------------------------------------------------------------------- /ui/freetype/objs/Win32/Release Static/ftver.res: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flying1337/csgo-project/72dc1362646309931bab72fef8535b0d40d383a5/ui/freetype/objs/Win32/Release Static/ftver.res -------------------------------------------------------------------------------- /ui/freetype/objs/Win32/Release Static/ftwinfnt.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flying1337/csgo-project/72dc1362646309931bab72fef8535b0d40d383a5/ui/freetype/objs/Win32/Release Static/ftwinfnt.obj -------------------------------------------------------------------------------- /ui/freetype/objs/Win32/Release Static/pcf.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flying1337/csgo-project/72dc1362646309931bab72fef8535b0d40d383a5/ui/freetype/objs/Win32/Release Static/pcf.obj -------------------------------------------------------------------------------- /ui/freetype/objs/Win32/Release Static/pfr.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flying1337/csgo-project/72dc1362646309931bab72fef8535b0d40d383a5/ui/freetype/objs/Win32/Release Static/pfr.obj -------------------------------------------------------------------------------- /ui/freetype/objs/Win32/Release Static/psaux.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flying1337/csgo-project/72dc1362646309931bab72fef8535b0d40d383a5/ui/freetype/objs/Win32/Release Static/psaux.obj -------------------------------------------------------------------------------- /ui/freetype/objs/Win32/Release Static/pshinter.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flying1337/csgo-project/72dc1362646309931bab72fef8535b0d40d383a5/ui/freetype/objs/Win32/Release Static/pshinter.obj -------------------------------------------------------------------------------- /ui/freetype/objs/Win32/Release Static/psmodule.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flying1337/csgo-project/72dc1362646309931bab72fef8535b0d40d383a5/ui/freetype/objs/Win32/Release Static/psmodule.obj -------------------------------------------------------------------------------- /ui/freetype/objs/Win32/Release Static/raster.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flying1337/csgo-project/72dc1362646309931bab72fef8535b0d40d383a5/ui/freetype/objs/Win32/Release Static/raster.obj -------------------------------------------------------------------------------- /ui/freetype/objs/Win32/Release Static/sfnt.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flying1337/csgo-project/72dc1362646309931bab72fef8535b0d40d383a5/ui/freetype/objs/Win32/Release Static/sfnt.obj -------------------------------------------------------------------------------- /ui/freetype/objs/Win32/Release Static/smooth.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flying1337/csgo-project/72dc1362646309931bab72fef8535b0d40d383a5/ui/freetype/objs/Win32/Release Static/smooth.obj -------------------------------------------------------------------------------- /ui/freetype/objs/Win32/Release Static/truetype.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flying1337/csgo-project/72dc1362646309931bab72fef8535b0d40d383a5/ui/freetype/objs/Win32/Release Static/truetype.obj -------------------------------------------------------------------------------- /ui/freetype/objs/Win32/Release Static/type1.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flying1337/csgo-project/72dc1362646309931bab72fef8535b0d40d383a5/ui/freetype/objs/Win32/Release Static/type1.obj -------------------------------------------------------------------------------- /ui/freetype/objs/Win32/Release Static/type1cid.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flying1337/csgo-project/72dc1362646309931bab72fef8535b0d40d383a5/ui/freetype/objs/Win32/Release Static/type1cid.obj -------------------------------------------------------------------------------- /ui/freetype/objs/Win32/Release Static/type42.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flying1337/csgo-project/72dc1362646309931bab72fef8535b0d40d383a5/ui/freetype/objs/Win32/Release Static/type42.obj -------------------------------------------------------------------------------- /ui/freetype/objs/Win32/Release Static/winfnt.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flying1337/csgo-project/72dc1362646309931bab72fef8535b0d40d383a5/ui/freetype/objs/Win32/Release Static/winfnt.obj -------------------------------------------------------------------------------- /ui/freetype/objs/freetype.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flying1337/csgo-project/72dc1362646309931bab72fef8535b0d40d383a5/ui/freetype/objs/freetype.lib -------------------------------------------------------------------------------- /ui/freetype/src/Jamfile: -------------------------------------------------------------------------------- 1 | # FreeType 2 src Jamfile 2 | # 3 | # Copyright 2001-2018 by 4 | # David Turner, Robert Wilhelm, and Werner Lemberg. 5 | # 6 | # This file is part of the FreeType project, and may only be used, modified, 7 | # and distributed under the terms of the FreeType project license, 8 | # LICENSE.TXT. By continuing to use, modify, or distribute this file you 9 | # indicate that you have read the license and understand and accept it 10 | # fully. 11 | 12 | SubDir FT2_TOP $(FT2_SRC_DIR) ; 13 | 14 | for xx in $(FT2_COMPONENTS) 15 | { 16 | SubInclude FT2_TOP $(FT2_SRC_DIR) $(xx) ; 17 | } 18 | 19 | # end of src Jamfile 20 | -------------------------------------------------------------------------------- /ui/freetype/src/autofit/Jamfile: -------------------------------------------------------------------------------- 1 | # FreeType 2 src/autofit Jamfile 2 | # 3 | # Copyright 2003-2018 by 4 | # David Turner, Robert Wilhelm, and Werner Lemberg. 5 | # 6 | # This file is part of the FreeType project, and may only be used, modified, 7 | # and distributed under the terms of the FreeType project license, 8 | # LICENSE.TXT. By continuing to use, modify, or distribute this file you 9 | # indicate that you have read the license and understand and accept it 10 | # fully. 11 | 12 | SubDir FT2_TOP src autofit ; 13 | 14 | { 15 | local _sources ; 16 | 17 | # define FT2_AUTOFIT2 to enable experimental latin hinter replacement 18 | if $(FT2_AUTOFIT2) 19 | { 20 | CCFLAGS += FT_OPTION_AUTOFIT2 ; 21 | } 22 | if $(FT2_MULTI) 23 | { 24 | _sources = afangles 25 | afblue 26 | afcjk 27 | afdummy 28 | afglobal 29 | afhints 30 | afindic 31 | aflatin 32 | afloader 33 | afmodule 34 | afpic 35 | afranges 36 | afshaper 37 | afwarp 38 | ; 39 | 40 | if $(FT2_AUTOFIT2) 41 | { 42 | _sources += aflatin2 ; 43 | } 44 | } 45 | else 46 | { 47 | _sources = autofit ; 48 | } 49 | 50 | Library $(FT2_LIB) : $(_sources).c ; 51 | } 52 | 53 | # end of src/autofit Jamfile 54 | -------------------------------------------------------------------------------- /ui/freetype/src/autofit/afangles.h: -------------------------------------------------------------------------------- 1 | /* 2 | * afangles.h 3 | * 4 | * This is a dummy file, used to please the build system. It is never 5 | * included by the auto-fitter sources. 6 | * 7 | */ 8 | -------------------------------------------------------------------------------- /ui/freetype/src/autofit/module.mk: -------------------------------------------------------------------------------- 1 | # 2 | # FreeType 2 auto-fitter module definition 3 | # 4 | 5 | 6 | # Copyright 2003-2018 by 7 | # David Turner, Robert Wilhelm, and Werner Lemberg. 8 | # 9 | # This file is part of the FreeType project, and may only be used, modified, 10 | # and distributed under the terms of the FreeType project license, 11 | # LICENSE.TXT. By continuing to use, modify, or distribute this file you 12 | # indicate that you have read the license and understand and accept it 13 | # fully. 14 | 15 | 16 | FTMODULE_H_COMMANDS += AUTOFIT_MODULE 17 | 18 | define AUTOFIT_MODULE 19 | $(OPEN_DRIVER) FT_Module_Class, autofit_module_class $(CLOSE_DRIVER) 20 | $(ECHO_DRIVER)autofit $(ECHO_DRIVER_DESC)automatic hinting module$(ECHO_DRIVER_DONE) 21 | endef 22 | 23 | # EOF 24 | -------------------------------------------------------------------------------- /ui/freetype/src/base/md5.h: -------------------------------------------------------------------------------- 1 | /* 2 | * This is an OpenSSL-compatible implementation of the RSA Data Security, Inc. 3 | * MD5 Message-Digest Algorithm (RFC 1321). 4 | * 5 | * Homepage: 6 | * http://openwall.info/wiki/people/solar/software/public-domain-source-code/md5 7 | * 8 | * Author: 9 | * Alexander Peslyak, better known as Solar Designer 10 | * 11 | * This software was written by Alexander Peslyak in 2001. No copyright is 12 | * claimed, and the software is hereby placed in the public domain. 13 | * In case this attempt to disclaim copyright and place the software in the 14 | * public domain is deemed null and void, then the software is 15 | * Copyright (c) 2001 Alexander Peslyak and it is hereby released to the 16 | * general public under the following terms: 17 | * 18 | * Redistribution and use in source and binary forms, with or without 19 | * modification, are permitted. 20 | * 21 | * There's ABSOLUTELY NO WARRANTY, express or implied. 22 | * 23 | * See md5.c for more information. 24 | */ 25 | 26 | #ifdef HAVE_OPENSSL 27 | #include 28 | #elif !defined(_MD5_H) 29 | #define _MD5_H 30 | 31 | /* Any 32-bit or wider unsigned integer data type will do */ 32 | typedef unsigned int MD5_u32plus; 33 | 34 | typedef struct { 35 | MD5_u32plus lo, hi; 36 | MD5_u32plus a, b, c, d; 37 | unsigned char buffer[64]; 38 | MD5_u32plus block[16]; 39 | } MD5_CTX; 40 | 41 | extern void MD5_Init(MD5_CTX *ctx); 42 | extern void MD5_Update(MD5_CTX *ctx, const void *data, unsigned long size); 43 | extern void MD5_Final(unsigned char *result, MD5_CTX *ctx); 44 | 45 | #endif 46 | -------------------------------------------------------------------------------- /ui/freetype/src/bdf/Jamfile: -------------------------------------------------------------------------------- 1 | # FreeType 2 src/bdf Jamfile 2 | # 3 | # Copyright 2002-2018 by 4 | # David Turner, Robert Wilhelm, and Werner Lemberg. 5 | # 6 | # This file is part of the FreeType project, and may only be used, modified, 7 | # and distributed under the terms of the FreeType project license, 8 | # LICENSE.TXT. By continuing to use, modify, or distribute this file you 9 | # indicate that you have read the license and understand and accept it 10 | # fully. 11 | 12 | SubDir FT2_TOP $(FT2_SRC_DIR) bdf ; 13 | 14 | { 15 | local _sources ; 16 | 17 | if $(FT2_MULTI) 18 | { 19 | _sources = bdfdrivr 20 | bdflib 21 | ; 22 | } 23 | else 24 | { 25 | _sources = bdf ; 26 | } 27 | 28 | Library $(FT2_LIB) : $(_sources).c ; 29 | } 30 | 31 | # end of src/bdf Jamfile 32 | -------------------------------------------------------------------------------- /ui/freetype/src/bdf/bdf.c: -------------------------------------------------------------------------------- 1 | /* bdf.c 2 | 3 | FreeType font driver for bdf files 4 | 5 | Copyright (C) 2001, 2002 by 6 | Francesco Zappa Nardelli 7 | 8 | Permission is hereby granted, free of charge, to any person obtaining a copy 9 | of this software and associated documentation files (the "Software"), to deal 10 | in the Software without restriction, including without limitation the rights 11 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | copies of the Software, and to permit persons to whom the Software is 13 | furnished to do so, subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be included in 16 | all copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 22 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 23 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 24 | THE SOFTWARE. 25 | */ 26 | 27 | 28 | #define FT_MAKE_OPTION_SINGLE_OBJECT 29 | #include 30 | 31 | #include "bdflib.c" 32 | #include "bdfdrivr.c" 33 | 34 | 35 | /* END */ 36 | -------------------------------------------------------------------------------- /ui/freetype/src/bdf/module.mk: -------------------------------------------------------------------------------- 1 | # 2 | # FreeType 2 BDF module definition 3 | # 4 | 5 | # Copyright 2001, 2002, 2006 by 6 | # Francesco Zappa Nardelli 7 | # 8 | # Permission is hereby granted, free of charge, to any person obtaining a copy 9 | # of this software and associated documentation files (the "Software"), to deal 10 | # in the Software without restriction, including without limitation the rights 11 | # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | # copies of the Software, and to permit persons to whom the Software is 13 | # furnished to do so, subject to the following conditions: 14 | # 15 | # The above copyright notice and this permission notice shall be included in 16 | # all copies or substantial portions of the Software. 17 | # 18 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 22 | # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 23 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 24 | # THE SOFTWARE. 25 | 26 | 27 | FTMODULE_H_COMMANDS += BDF_DRIVER 28 | 29 | define BDF_DRIVER 30 | $(OPEN_DRIVER) FT_Driver_ClassRec, bdf_driver_class $(CLOSE_DRIVER) 31 | $(ECHO_DRIVER)bdf $(ECHO_DRIVER_DESC)bdf bitmap fonts$(ECHO_DRIVER_DONE) 32 | endef 33 | 34 | # EOF 35 | -------------------------------------------------------------------------------- /ui/freetype/src/bzip2/Jamfile: -------------------------------------------------------------------------------- 1 | # FreeType 2 src/bzip2 Jamfile 2 | # 3 | # Copyright 2010-2018 by 4 | # Joel Klinghed 5 | # 6 | # based on `src/lzw/Jamfile' 7 | # 8 | # This file is part of the FreeType project, and may only be used, modified, 9 | # and distributed under the terms of the FreeType project license, 10 | # LICENSE.TXT. By continuing to use, modify, or distribute this file you 11 | # indicate that you have read the license and understand and accept it 12 | # fully. 13 | 14 | SubDir FT2_TOP $(FT2_SRC_DIR) bzip2 ; 15 | 16 | Library $(FT2_LIB) : ftbzip2.c ; 17 | 18 | # end of src/bzip2 Jamfile 19 | -------------------------------------------------------------------------------- /ui/freetype/src/cache/Jamfile: -------------------------------------------------------------------------------- 1 | # FreeType 2 src/cache Jamfile 2 | # 3 | # Copyright 2001-2018 by 4 | # David Turner, Robert Wilhelm, and Werner Lemberg. 5 | # 6 | # This file is part of the FreeType project, and may only be used, modified, 7 | # and distributed under the terms of the FreeType project license, 8 | # LICENSE.TXT. By continuing to use, modify, or distribute this file you 9 | # indicate that you have read the license and understand and accept it 10 | # fully. 11 | 12 | SubDir FT2_TOP $(FT2_SRC_DIR) cache ; 13 | 14 | { 15 | local _sources ; 16 | 17 | if $(FT2_MULTI) 18 | { 19 | _sources = ftcbasic 20 | ftccache 21 | ftcglyph 22 | ftcimage 23 | ftcmanag 24 | ftccmap 25 | ftcmru 26 | ftcsbits 27 | ; 28 | } 29 | else 30 | { 31 | _sources = ftcache ; 32 | } 33 | 34 | Library $(FT2_LIB) : $(_sources).c ; 35 | } 36 | 37 | # end of src/cache Jamfile 38 | -------------------------------------------------------------------------------- /ui/freetype/src/cff/Jamfile: -------------------------------------------------------------------------------- 1 | # FreeType 2 src/cff Jamfile 2 | # 3 | # Copyright 2001-2018 by 4 | # David Turner, Robert Wilhelm, and Werner Lemberg. 5 | # 6 | # This file is part of the FreeType project, and may only be used, modified, 7 | # and distributed under the terms of the FreeType project license, 8 | # LICENSE.TXT. By continuing to use, modify, or distribute this file you 9 | # indicate that you have read the license and understand and accept it 10 | # fully. 11 | 12 | SubDir FT2_TOP $(FT2_SRC_DIR) cff ; 13 | 14 | { 15 | local _sources ; 16 | 17 | if $(FT2_MULTI) 18 | { 19 | _sources = cffcmap 20 | cffdrivr 21 | cffgload 22 | cffload 23 | cffobjs 24 | cffparse 25 | cffpic 26 | ; 27 | } 28 | else 29 | { 30 | _sources = cff ; 31 | } 32 | 33 | Library $(FT2_LIB) : $(_sources).c ; 34 | } 35 | 36 | # end of src/cff Jamfile 37 | -------------------------------------------------------------------------------- /ui/freetype/src/cff/cff.c: -------------------------------------------------------------------------------- 1 | /***************************************************************************/ 2 | /* */ 3 | /* cff.c */ 4 | /* */ 5 | /* FreeType OpenType driver component (body only). */ 6 | /* */ 7 | /* Copyright 1996-2018 by */ 8 | /* David Turner, Robert Wilhelm, and Werner Lemberg. */ 9 | /* */ 10 | /* This file is part of the FreeType project, and may only be used, */ 11 | /* modified, and distributed under the terms of the FreeType project */ 12 | /* license, LICENSE.TXT. By continuing to use, modify, or distribute */ 13 | /* this file you indicate that you have read the license and */ 14 | /* understand and accept it fully. */ 15 | /* */ 16 | /***************************************************************************/ 17 | 18 | 19 | #define FT_MAKE_OPTION_SINGLE_OBJECT 20 | #include 21 | 22 | #include "cffcmap.c" 23 | #include "cffdrivr.c" 24 | #include "cffgload.c" 25 | #include "cffparse.c" 26 | #include "cffpic.c" 27 | #include "cffload.c" 28 | #include "cffobjs.c" 29 | 30 | /* END */ 31 | -------------------------------------------------------------------------------- /ui/freetype/src/cff/cffdrivr.h: -------------------------------------------------------------------------------- 1 | /***************************************************************************/ 2 | /* */ 3 | /* cffdrivr.h */ 4 | /* */ 5 | /* High-level OpenType driver interface (specification). */ 6 | /* */ 7 | /* Copyright 1996-2018 by */ 8 | /* David Turner, Robert Wilhelm, and Werner Lemberg. */ 9 | /* */ 10 | /* This file is part of the FreeType project, and may only be used, */ 11 | /* modified, and distributed under the terms of the FreeType project */ 12 | /* license, LICENSE.TXT. By continuing to use, modify, or distribute */ 13 | /* this file you indicate that you have read the license and */ 14 | /* understand and accept it fully. */ 15 | /* */ 16 | /***************************************************************************/ 17 | 18 | 19 | #ifndef CFFDRIVER_H_ 20 | #define CFFDRIVER_H_ 21 | 22 | 23 | #include 24 | #include FT_INTERNAL_DRIVER_H 25 | 26 | 27 | FT_BEGIN_HEADER 28 | 29 | 30 | FT_DECLARE_DRIVER( cff_driver_class ) 31 | 32 | 33 | FT_END_HEADER 34 | 35 | #endif /* CFFDRIVER_H_ */ 36 | 37 | 38 | /* END */ 39 | -------------------------------------------------------------------------------- /ui/freetype/src/cff/module.mk: -------------------------------------------------------------------------------- 1 | # 2 | # FreeType 2 CFF module definition 3 | # 4 | 5 | 6 | # Copyright 1996-2018 by 7 | # David Turner, Robert Wilhelm, and Werner Lemberg. 8 | # 9 | # This file is part of the FreeType project, and may only be used, modified, 10 | # and distributed under the terms of the FreeType project license, 11 | # LICENSE.TXT. By continuing to use, modify, or distribute this file you 12 | # indicate that you have read the license and understand and accept it 13 | # fully. 14 | 15 | 16 | FTMODULE_H_COMMANDS += CFF_DRIVER 17 | 18 | define CFF_DRIVER 19 | $(OPEN_DRIVER) FT_Driver_ClassRec, cff_driver_class $(CLOSE_DRIVER) 20 | $(ECHO_DRIVER)cff $(ECHO_DRIVER_DESC)OpenType fonts with extension *.otf$(ECHO_DRIVER_DONE) 21 | endef 22 | 23 | # EOF 24 | -------------------------------------------------------------------------------- /ui/freetype/src/cid/Jamfile: -------------------------------------------------------------------------------- 1 | # FreeType 2 src/cid Jamfile 2 | # 3 | # Copyright 2001-2018 by 4 | # David Turner, Robert Wilhelm, and Werner Lemberg. 5 | # 6 | # This file is part of the FreeType project, and may only be used, modified, 7 | # and distributed under the terms of the FreeType project license, 8 | # LICENSE.TXT. By continuing to use, modify, or distribute this file you 9 | # indicate that you have read the license and understand and accept it 10 | # fully. 11 | 12 | SubDir FT2_TOP $(FT2_SRC_DIR) cid ; 13 | 14 | { 15 | local _sources ; 16 | 17 | if $(FT2_MULTI) 18 | { 19 | _sources = cidgload 20 | cidload 21 | cidobjs 22 | cidparse 23 | cidriver 24 | ; 25 | } 26 | else 27 | { 28 | _sources = type1cid ; 29 | } 30 | 31 | Library $(FT2_LIB) : $(_sources).c ; 32 | } 33 | 34 | # end of src/cid Jamfile 35 | -------------------------------------------------------------------------------- /ui/freetype/src/cid/module.mk: -------------------------------------------------------------------------------- 1 | # 2 | # FreeType 2 CID module definition 3 | # 4 | 5 | 6 | # Copyright 1996-2018 by 7 | # David Turner, Robert Wilhelm, and Werner Lemberg. 8 | # 9 | # This file is part of the FreeType project, and may only be used, modified, 10 | # and distributed under the terms of the FreeType project license, 11 | # LICENSE.TXT. By continuing to use, modify, or distribute this file you 12 | # indicate that you have read the license and understand and accept it 13 | # fully. 14 | 15 | 16 | FTMODULE_H_COMMANDS += TYPE1CID_DRIVER 17 | 18 | define TYPE1CID_DRIVER 19 | $(OPEN_DRIVER) FT_Driver_ClassRec, t1cid_driver_class $(CLOSE_DRIVER) 20 | $(ECHO_DRIVER)cid $(ECHO_DRIVER_DESC)Postscript CID-keyed fonts, no known extension$(ECHO_DRIVER_DONE) 21 | endef 22 | 23 | # EOF 24 | -------------------------------------------------------------------------------- /ui/freetype/src/cid/type1cid.c: -------------------------------------------------------------------------------- 1 | /***************************************************************************/ 2 | /* */ 3 | /* type1cid.c */ 4 | /* */ 5 | /* FreeType OpenType driver component (body only). */ 6 | /* */ 7 | /* Copyright 1996-2018 by */ 8 | /* David Turner, Robert Wilhelm, and Werner Lemberg. */ 9 | /* */ 10 | /* This file is part of the FreeType project, and may only be used, */ 11 | /* modified, and distributed under the terms of the FreeType project */ 12 | /* license, LICENSE.TXT. By continuing to use, modify, or distribute */ 13 | /* this file you indicate that you have read the license and */ 14 | /* understand and accept it fully. */ 15 | /* */ 16 | /***************************************************************************/ 17 | 18 | 19 | #define FT_MAKE_OPTION_SINGLE_OBJECT 20 | #include 21 | 22 | #include "cidgload.c" 23 | #include "cidload.c" 24 | #include "cidobjs.c" 25 | #include "cidparse.c" 26 | #include "cidriver.c" 27 | 28 | 29 | /* END */ 30 | -------------------------------------------------------------------------------- /ui/freetype/src/gxvalid/Jamfile: -------------------------------------------------------------------------------- 1 | # FreeType 2 src/gxvalid Jamfile 2 | # 3 | # Copyright 2005-2018 by 4 | # suzuki toshiya, Masatake YAMATO and Red Hat K.K. 5 | # 6 | # This file is part of the FreeType project, and may only be used, modified, 7 | # and distributed under the terms of the FreeType project license, 8 | # LICENSE.TXT. By continuing to use, modify, or distribute this file you 9 | # indicate that you have read the license and understand and accept it 10 | # fully. 11 | 12 | SubDir FT2_TOP $(FT2_SRC_DIR) gxvalid ; 13 | 14 | 15 | { 16 | local _sources ; 17 | 18 | if $(FT2_MULTI) 19 | { 20 | _sources = gxvbsln 21 | gxvcommn 22 | gxvfeat 23 | gxvjust 24 | gxvkern 25 | gxvlcar 26 | gxvmod 27 | gxvmort 28 | gxvmort0 29 | gxvmort1 30 | gxvmort2 31 | gxvmort4 32 | gxvmort5 33 | gxvmorx 34 | gxvmorx0 35 | gxvmorx1 36 | gxvmorx2 37 | gxvmorx4 38 | gxvmorx5 39 | gxvopbd 40 | gxvprop 41 | gxvtrak 42 | ; 43 | } 44 | else 45 | { 46 | _sources = gxvalid ; 47 | } 48 | 49 | Library $(FT2_LIB) : $(_sources).c ; 50 | } 51 | 52 | # end of src/gxvalid Jamfile 53 | -------------------------------------------------------------------------------- /ui/freetype/src/gxvalid/module.mk: -------------------------------------------------------------------------------- 1 | # 2 | # FreeType 2 gxvalid module definition 3 | # 4 | 5 | # Copyright 2004-2018 by 6 | # suzuki toshiya, Masatake YAMATO, Red Hat K.K., 7 | # David Turner, Robert Wilhelm, and Werner Lemberg. 8 | # 9 | # This file is part of the FreeType project, and may only be used, modified, 10 | # and distributed under the terms of the FreeType project license, 11 | # LICENSE.TXT. By continuing to use, modify, or distribute this file you 12 | # indicate that you have read the license and understand and accept it 13 | # fully. 14 | 15 | 16 | FTMODULE_H_COMMANDS += GXVALID_MODULE 17 | 18 | define GXVALID_MODULE 19 | $(OPEN_DRIVER) FT_Module_Class, gxv_module_class $(CLOSE_DRIVER) 20 | $(ECHO_DRIVER)gxvalid $(ECHO_DRIVER_DESC)TrueTypeGX/AAT validation module$(ECHO_DRIVER_DONE) 21 | endef 22 | 23 | # EOF 24 | -------------------------------------------------------------------------------- /ui/freetype/src/gzip/Jamfile: -------------------------------------------------------------------------------- 1 | # FreeType 2 src/gzip Jamfile 2 | # 3 | # Copyright 2001-2018 by 4 | # David Turner, Robert Wilhelm, and Werner Lemberg. 5 | # 6 | # This file is part of the FreeType project, and may only be used, modified, 7 | # and distributed under the terms of the FreeType project license, 8 | # LICENSE.TXT. By continuing to use, modify, or distribute this file you 9 | # indicate that you have read the license and understand and accept it 10 | # fully. 11 | 12 | SubDir FT2_TOP $(FT2_SRC_DIR) gzip ; 13 | 14 | Library $(FT2_LIB) : ftgzip.c ; 15 | 16 | # end of src/pcf Jamfile 17 | -------------------------------------------------------------------------------- /ui/freetype/src/gzip/adler32.c: -------------------------------------------------------------------------------- 1 | /* adler32.c -- compute the Adler-32 checksum of a data stream 2 | * Copyright (C) 1995-2002 Mark Adler 3 | * For conditions of distribution and use, see copyright notice in zlib.h 4 | */ 5 | 6 | /* @(#) $Id$ */ 7 | 8 | #include "zlib.h" 9 | 10 | #define BASE 65521L /* largest prime smaller than 65536 */ 11 | #define NMAX 5552 12 | /* NMAX is the largest n such that 255n(n+1)/2 + (n+1)(BASE-1) <= 2^32-1 */ 13 | 14 | #define DO1(buf,i) {s1 += buf[i]; s2 += s1;} 15 | #define DO2(buf,i) DO1(buf,i); DO1(buf,i+1); 16 | #define DO4(buf,i) DO2(buf,i); DO2(buf,i+2); 17 | #define DO8(buf,i) DO4(buf,i); DO4(buf,i+4); 18 | #define DO16(buf) DO8(buf,0); DO8(buf,8); 19 | 20 | /* ========================================================================= */ 21 | ZEXPORT(uLong) adler32( /* adler, buf, len) */ 22 | uLong adler, 23 | const Bytef *buf, 24 | uInt len ) 25 | { 26 | unsigned long s1 = adler & 0xffff; 27 | unsigned long s2 = (adler >> 16) & 0xffff; 28 | int k; 29 | 30 | if (buf == Z_NULL) return 1L; 31 | 32 | while (len > 0) { 33 | k = len < NMAX ? len : NMAX; 34 | len -= k; 35 | while (k >= 16) { 36 | DO16(buf); 37 | buf += 16; 38 | k -= 16; 39 | } 40 | if (k != 0) do { 41 | s1 += *buf++; 42 | s2 += s1; 43 | } while (--k); 44 | s1 %= BASE; 45 | s2 %= BASE; 46 | } 47 | return (s2 << 16) | s1; 48 | } 49 | -------------------------------------------------------------------------------- /ui/freetype/src/gzip/infblock.h: -------------------------------------------------------------------------------- 1 | /* infblock.h -- header to use infblock.c 2 | * Copyright (C) 1995-2002 Mark Adler 3 | * For conditions of distribution and use, see copyright notice in zlib.h 4 | */ 5 | 6 | /* WARNING: this file should *not* be used by applications. It is 7 | part of the implementation of the compression library and is 8 | subject to change. Applications should only use zlib.h. 9 | */ 10 | 11 | #ifndef _INFBLOCK_H 12 | #define _INFBLOCK_H 13 | 14 | struct inflate_blocks_state; 15 | typedef struct inflate_blocks_state FAR inflate_blocks_statef; 16 | 17 | local inflate_blocks_statef * inflate_blocks_new OF(( 18 | z_streamp z, 19 | check_func c, /* check function */ 20 | uInt w)); /* window size */ 21 | 22 | local int inflate_blocks OF(( 23 | inflate_blocks_statef *, 24 | z_streamp , 25 | int)); /* initial return code */ 26 | 27 | local void inflate_blocks_reset OF(( 28 | inflate_blocks_statef *, 29 | z_streamp , 30 | uLongf *)); /* check value on output */ 31 | 32 | local int inflate_blocks_free OF(( 33 | inflate_blocks_statef *, 34 | z_streamp)); 35 | 36 | #endif /* _INFBLOCK_H */ 37 | -------------------------------------------------------------------------------- /ui/freetype/src/gzip/infcodes.h: -------------------------------------------------------------------------------- 1 | /* infcodes.h -- header to use infcodes.c 2 | * Copyright (C) 1995-2002 Mark Adler 3 | * For conditions of distribution and use, see copyright notice in zlib.h 4 | */ 5 | 6 | /* WARNING: this file should *not* be used by applications. It is 7 | part of the implementation of the compression library and is 8 | subject to change. Applications should only use zlib.h. 9 | */ 10 | 11 | #ifndef _INFCODES_H 12 | #define _INFCODES_H 13 | 14 | struct inflate_codes_state; 15 | typedef struct inflate_codes_state FAR inflate_codes_statef; 16 | 17 | local inflate_codes_statef *inflate_codes_new OF(( 18 | uInt, uInt, 19 | inflate_huft *, inflate_huft *, 20 | z_streamp )); 21 | 22 | local int inflate_codes OF(( 23 | inflate_blocks_statef *, 24 | z_streamp , 25 | int)); 26 | 27 | local void inflate_codes_free OF(( 28 | inflate_codes_statef *, 29 | z_streamp )); 30 | 31 | #endif /* _INFCODES_H */ 32 | -------------------------------------------------------------------------------- /ui/freetype/src/lzw/Jamfile: -------------------------------------------------------------------------------- 1 | # FreeType 2 src/lzw Jamfile 2 | # 3 | # Copyright 2004-2018 by 4 | # David Turner, Robert Wilhelm, and Werner Lemberg. 5 | # 6 | # This file is part of the FreeType project, and may only be used, modified, 7 | # and distributed under the terms of the FreeType project license, 8 | # LICENSE.TXT. By continuing to use, modify, or distribute this file you 9 | # indicate that you have read the license and understand and accept it 10 | # fully. 11 | 12 | SubDir FT2_TOP $(FT2_SRC_DIR) lzw ; 13 | 14 | Library $(FT2_LIB) : ftlzw.c ; 15 | 16 | # end of src/lzw Jamfile 17 | -------------------------------------------------------------------------------- /ui/freetype/src/otvalid/Jamfile: -------------------------------------------------------------------------------- 1 | # FreeType 2 src/otvalid Jamfile 2 | # 3 | # Copyright 2004-2018 by 4 | # David Turner, Robert Wilhelm, and Werner Lemberg. 5 | # 6 | # This file is part of the FreeType project, and may only be used, modified, 7 | # and distributed under the terms of the FreeType project license, 8 | # LICENSE.TXT. By continuing to use, modify, or distribute this file you 9 | # indicate that you have read the license and understand and accept it 10 | # fully. 11 | 12 | SubDir FT2_TOP $(FT2_SRC_DIR) otvalid ; 13 | 14 | { 15 | local _sources ; 16 | 17 | if $(FT2_MULTI) 18 | { 19 | _sources = otvbase 20 | otvcommn 21 | otvgdef 22 | otvgpos 23 | otvgsub 24 | otvjstf 25 | otvmath 26 | otvmod 27 | ; 28 | } 29 | else 30 | { 31 | _sources = otvalid ; 32 | } 33 | 34 | Library $(FT2_LIB) : $(_sources).c ; 35 | } 36 | 37 | # end of src/otvalid Jamfile 38 | -------------------------------------------------------------------------------- /ui/freetype/src/otvalid/module.mk: -------------------------------------------------------------------------------- 1 | # 2 | # FreeType 2 otvalid module definition 3 | # 4 | 5 | 6 | # Copyright 2004-2018 by 7 | # David Turner, Robert Wilhelm, and Werner Lemberg. 8 | # 9 | # This file is part of the FreeType project, and may only be used, modified, 10 | # and distributed under the terms of the FreeType project license, 11 | # LICENSE.TXT. By continuing to use, modify, or distribute this file you 12 | # indicate that you have read the license and understand and accept it 13 | # fully. 14 | 15 | 16 | FTMODULE_H_COMMANDS += OTVALID_MODULE 17 | 18 | define OTVALID_MODULE 19 | $(OPEN_DRIVER) FT_Module_Class, otv_module_class $(CLOSE_DRIVER) 20 | $(ECHO_DRIVER)otvalid $(ECHO_DRIVER_DESC)OpenType validation module$(ECHO_DRIVER_DONE) 21 | endef 22 | 23 | # EOF 24 | -------------------------------------------------------------------------------- /ui/freetype/src/pcf/Jamfile: -------------------------------------------------------------------------------- 1 | # FreeType 2 src/pcf Jamfile 2 | # 3 | # Copyright 2001-2018 by 4 | # David Turner, Robert Wilhelm, and Werner Lemberg. 5 | # 6 | # This file is part of the FreeType project, and may only be used, modified, 7 | # and distributed under the terms of the FreeType project license, 8 | # LICENSE.TXT. By continuing to use, modify, or distribute this file you 9 | # indicate that you have read the license and understand and accept it 10 | # fully. 11 | 12 | SubDir FT2_TOP $(FT2_SRC_DIR) pcf ; 13 | 14 | { 15 | local _sources ; 16 | 17 | if $(FT2_MULTI) 18 | { 19 | _sources = pcfdrivr 20 | pcfread 21 | pcfutil 22 | ; 23 | } 24 | else 25 | { 26 | _sources = pcf ; 27 | } 28 | 29 | Library $(FT2_LIB) : $(_sources).c ; 30 | } 31 | 32 | # end of src/pcf Jamfile 33 | -------------------------------------------------------------------------------- /ui/freetype/src/pcf/module.mk: -------------------------------------------------------------------------------- 1 | # 2 | # FreeType 2 PCF module definition 3 | # 4 | 5 | # Copyright 2000, 2006 by 6 | # Francesco Zappa Nardelli 7 | # 8 | # Permission is hereby granted, free of charge, to any person obtaining a copy 9 | # of this software and associated documentation files (the "Software"), to deal 10 | # in the Software without restriction, including without limitation the rights 11 | # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | # copies of the Software, and to permit persons to whom the Software is 13 | # furnished to do so, subject to the following conditions: 14 | # 15 | # The above copyright notice and this permission notice shall be included in 16 | # all copies or substantial portions of the Software. 17 | # 18 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 22 | # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 23 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 24 | # THE SOFTWARE. 25 | 26 | 27 | FTMODULE_H_COMMANDS += PCF_DRIVER 28 | 29 | define PCF_DRIVER 30 | $(OPEN_DRIVER) FT_Driver_ClassRec, pcf_driver_class $(CLOSE_DRIVER) 31 | $(ECHO_DRIVER)pcf $(ECHO_DRIVER_DESC)pcf bitmap fonts$(ECHO_DRIVER_DONE) 32 | endef 33 | 34 | # EOF 35 | -------------------------------------------------------------------------------- /ui/freetype/src/pcf/pcf.c: -------------------------------------------------------------------------------- 1 | /* pcf.c 2 | 3 | FreeType font driver for pcf fonts 4 | 5 | Copyright 2000-2001, 2003 by 6 | Francesco Zappa Nardelli 7 | 8 | Permission is hereby granted, free of charge, to any person obtaining a copy 9 | of this software and associated documentation files (the "Software"), to deal 10 | in the Software without restriction, including without limitation the rights 11 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | copies of the Software, and to permit persons to whom the Software is 13 | furnished to do so, subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be included in 16 | all copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 22 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 23 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 24 | THE SOFTWARE. 25 | */ 26 | 27 | 28 | #define FT_MAKE_OPTION_SINGLE_OBJECT 29 | #include 30 | 31 | #include "pcfdrivr.c" 32 | #include "pcfread.c" 33 | #include "pcfutil.c" 34 | 35 | 36 | /* END */ 37 | -------------------------------------------------------------------------------- /ui/freetype/src/pcf/pcfread.h: -------------------------------------------------------------------------------- 1 | /* pcfread.h 2 | 3 | FreeType font driver for pcf fonts 4 | 5 | Copyright 2003 by 6 | Francesco Zappa Nardelli 7 | 8 | Permission is hereby granted, free of charge, to any person obtaining a copy 9 | of this software and associated documentation files (the "Software"), to deal 10 | in the Software without restriction, including without limitation the rights 11 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | copies of the Software, and to permit persons to whom the Software is 13 | furnished to do so, subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be included in 16 | all copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 22 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 23 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 24 | THE SOFTWARE. 25 | */ 26 | 27 | 28 | #ifndef PCFREAD_H_ 29 | #define PCFREAD_H_ 30 | 31 | 32 | #include 33 | 34 | FT_BEGIN_HEADER 35 | 36 | FT_LOCAL( PCF_Property ) 37 | pcf_find_property( PCF_Face face, 38 | const FT_String* prop ); 39 | 40 | FT_END_HEADER 41 | 42 | #endif /* PCFREAD_H_ */ 43 | 44 | 45 | /* END */ 46 | -------------------------------------------------------------------------------- /ui/freetype/src/pfr/Jamfile: -------------------------------------------------------------------------------- 1 | # FreeType 2 src/pfr Jamfile 2 | # 3 | # Copyright 2002-2018 by 4 | # David Turner, Robert Wilhelm, and Werner Lemberg. 5 | # 6 | # This file is part of the FreeType project, and may only be used, modified, 7 | # and distributed under the terms of the FreeType project license, 8 | # LICENSE.TXT. By continuing to use, modify, or distribute this file you 9 | # indicate that you have read the license and understand and accept it 10 | # fully. 11 | 12 | SubDir FT2_TOP $(FT2_SRC_DIR) pfr ; 13 | 14 | { 15 | local _sources ; 16 | 17 | if $(FT2_MULTI) 18 | { 19 | _sources = pfrcmap 20 | pfrdrivr 21 | pfrgload 22 | pfrload 23 | pfrobjs 24 | pfrsbit 25 | ; 26 | } 27 | else 28 | { 29 | _sources = pfr ; 30 | } 31 | 32 | Library $(FT2_LIB) : $(_sources).c ; 33 | } 34 | 35 | # end of src/pfr Jamfile 36 | -------------------------------------------------------------------------------- /ui/freetype/src/pfr/module.mk: -------------------------------------------------------------------------------- 1 | # 2 | # FreeType 2 PFR module definition 3 | # 4 | 5 | 6 | # Copyright 2002-2018 by 7 | # David Turner, Robert Wilhelm, and Werner Lemberg. 8 | # 9 | # This file is part of the FreeType project, and may only be used, modified, 10 | # and distributed under the terms of the FreeType project license, 11 | # LICENSE.TXT. By continuing to use, modify, or distribute this file you 12 | # indicate that you have read the license and understand and accept it 13 | # fully. 14 | 15 | 16 | FTMODULE_H_COMMANDS += PFR_DRIVER 17 | 18 | define PFR_DRIVER 19 | $(OPEN_DRIVER) FT_Driver_ClassRec, pfr_driver_class $(CLOSE_DRIVER) 20 | $(ECHO_DRIVER)pfr $(ECHO_DRIVER_DESC)PFR/TrueDoc font files with extension *.pfr$(ECHO_DRIVER_DONE) 21 | endef 22 | 23 | # EOF 24 | -------------------------------------------------------------------------------- /ui/freetype/src/pfr/pfr.c: -------------------------------------------------------------------------------- 1 | /***************************************************************************/ 2 | /* */ 3 | /* pfr.c */ 4 | /* */ 5 | /* FreeType PFR driver component. */ 6 | /* */ 7 | /* Copyright 2002-2018 by */ 8 | /* David Turner, Robert Wilhelm, and Werner Lemberg. */ 9 | /* */ 10 | /* This file is part of the FreeType project, and may only be used, */ 11 | /* modified, and distributed under the terms of the FreeType project */ 12 | /* license, LICENSE.TXT. By continuing to use, modify, or distribute */ 13 | /* this file you indicate that you have read the license and */ 14 | /* understand and accept it fully. */ 15 | /* */ 16 | /***************************************************************************/ 17 | 18 | 19 | #define FT_MAKE_OPTION_SINGLE_OBJECT 20 | #include 21 | 22 | #include "pfrcmap.c" 23 | #include "pfrdrivr.c" 24 | #include "pfrgload.c" 25 | #include "pfrload.c" 26 | #include "pfrobjs.c" 27 | #include "pfrsbit.c" 28 | 29 | 30 | /* END */ 31 | -------------------------------------------------------------------------------- /ui/freetype/src/psaux/Jamfile: -------------------------------------------------------------------------------- 1 | # FreeType 2 src/psaux Jamfile 2 | # 3 | # Copyright 2001-2018 by 4 | # David Turner, Robert Wilhelm, and Werner Lemberg. 5 | # 6 | # This file is part of the FreeType project, and may only be used, modified, 7 | # and distributed under the terms of the FreeType project license, 8 | # LICENSE.TXT. By continuing to use, modify, or distribute this file you 9 | # indicate that you have read the license and understand and accept it 10 | # fully. 11 | 12 | SubDir FT2_TOP $(FT2_SRC_DIR) psaux ; 13 | 14 | { 15 | local _sources ; 16 | 17 | if $(FT2_MULTI) 18 | { 19 | _sources = afmparse 20 | psauxmod 21 | psconv 22 | psobjs 23 | t1cmap 24 | t1decode 25 | cffdecode 26 | psarrst 27 | psblues 28 | pserror 29 | psfont 30 | psft 31 | pshints 32 | psintrp 33 | psread 34 | psstack 35 | ; 36 | } 37 | else 38 | { 39 | _sources = psaux ; 40 | } 41 | 42 | Library $(FT2_LIB) : $(_sources).c ; 43 | } 44 | 45 | # end of src/psaux Jamfile 46 | -------------------------------------------------------------------------------- /ui/freetype/src/psaux/module.mk: -------------------------------------------------------------------------------- 1 | # 2 | # FreeType 2 PSaux module definition 3 | # 4 | 5 | 6 | # Copyright 1996-2018 by 7 | # David Turner, Robert Wilhelm, and Werner Lemberg. 8 | # 9 | # This file is part of the FreeType project, and may only be used, modified, 10 | # and distributed under the terms of the FreeType project license, 11 | # LICENSE.TXT. By continuing to use, modify, or distribute this file you 12 | # indicate that you have read the license and understand and accept it 13 | # fully. 14 | 15 | 16 | FTMODULE_H_COMMANDS += PSAUX_MODULE 17 | 18 | define PSAUX_MODULE 19 | $(OPEN_DRIVER) FT_Module_Class, psaux_module_class $(CLOSE_DRIVER) 20 | $(ECHO_DRIVER)psaux $(ECHO_DRIVER_DESC)Postscript Type 1 & Type 2 helper module$(ECHO_DRIVER_DONE) 21 | endef 22 | 23 | # EOF 24 | -------------------------------------------------------------------------------- /ui/freetype/src/pshinter/Jamfile: -------------------------------------------------------------------------------- 1 | # FreeType 2 src/pshinter Jamfile 2 | # 3 | # Copyright 2001-2018 by 4 | # David Turner, Robert Wilhelm, and Werner Lemberg. 5 | # 6 | # This file is part of the FreeType project, and may only be used, modified, 7 | # and distributed under the terms of the FreeType project license, 8 | # LICENSE.TXT. By continuing to use, modify, or distribute this file you 9 | # indicate that you have read the license and understand and accept it 10 | # fully. 11 | 12 | SubDir FT2_TOP $(FT2_SRC_DIR) pshinter ; 13 | 14 | { 15 | local _sources ; 16 | 17 | if $(FT2_MULTI) 18 | { 19 | _sources = pshalgo 20 | pshglob 21 | pshmod 22 | pshpic 23 | pshrec 24 | ; 25 | } 26 | else 27 | { 28 | _sources = pshinter ; 29 | } 30 | 31 | Library $(FT2_LIB) : $(_sources).c ; 32 | } 33 | 34 | # end of src/pshinter Jamfile 35 | -------------------------------------------------------------------------------- /ui/freetype/src/pshinter/module.mk: -------------------------------------------------------------------------------- 1 | # 2 | # FreeType 2 PSHinter module definition 3 | # 4 | 5 | 6 | # Copyright 1996-2018 by 7 | # David Turner, Robert Wilhelm, and Werner Lemberg. 8 | # 9 | # This file is part of the FreeType project, and may only be used, modified, 10 | # and distributed under the terms of the FreeType project license, 11 | # LICENSE.TXT. By continuing to use, modify, or distribute this file you 12 | # indicate that you have read the license and understand and accept it 13 | # fully. 14 | 15 | 16 | FTMODULE_H_COMMANDS += PSHINTER_MODULE 17 | 18 | define PSHINTER_MODULE 19 | $(OPEN_DRIVER) FT_Module_Class, pshinter_module_class $(CLOSE_DRIVER) 20 | $(ECHO_DRIVER)pshinter $(ECHO_DRIVER_DESC)Postscript hinter module$(ECHO_DRIVER_DONE) 21 | endef 22 | 23 | # EOF 24 | -------------------------------------------------------------------------------- /ui/freetype/src/pshinter/pshinter.c: -------------------------------------------------------------------------------- 1 | /***************************************************************************/ 2 | /* */ 3 | /* pshinter.c */ 4 | /* */ 5 | /* FreeType PostScript Hinting module */ 6 | /* */ 7 | /* Copyright 2001-2018 by */ 8 | /* David Turner, Robert Wilhelm, and Werner Lemberg. */ 9 | /* */ 10 | /* This file is part of the FreeType project, and may only be used, */ 11 | /* modified, and distributed under the terms of the FreeType project */ 12 | /* license, LICENSE.TXT. By continuing to use, modify, or distribute */ 13 | /* this file you indicate that you have read the license and */ 14 | /* understand and accept it fully. */ 15 | /* */ 16 | /***************************************************************************/ 17 | 18 | 19 | #define FT_MAKE_OPTION_SINGLE_OBJECT 20 | #include 21 | 22 | #include "pshalgo.c" 23 | #include "pshglob.c" 24 | #include "pshmod.c" 25 | #include "pshpic.c" 26 | #include "pshrec.c" 27 | 28 | 29 | /* END */ 30 | -------------------------------------------------------------------------------- /ui/freetype/src/pshinter/pshmod.h: -------------------------------------------------------------------------------- 1 | /***************************************************************************/ 2 | /* */ 3 | /* pshmod.h */ 4 | /* */ 5 | /* PostScript hinter module interface (specification). */ 6 | /* */ 7 | /* Copyright 2001-2018 by */ 8 | /* David Turner, Robert Wilhelm, and Werner Lemberg. */ 9 | /* */ 10 | /* This file is part of the FreeType project, and may only be used, */ 11 | /* modified, and distributed under the terms of the FreeType project */ 12 | /* license, LICENSE.TXT. By continuing to use, modify, or distribute */ 13 | /* this file you indicate that you have read the license and */ 14 | /* understand and accept it fully. */ 15 | /* */ 16 | /***************************************************************************/ 17 | 18 | 19 | #ifndef PSHMOD_H_ 20 | #define PSHMOD_H_ 21 | 22 | 23 | #include 24 | #include FT_MODULE_H 25 | 26 | 27 | FT_BEGIN_HEADER 28 | 29 | 30 | FT_DECLARE_MODULE( pshinter_module_class ) 31 | 32 | 33 | FT_END_HEADER 34 | 35 | 36 | #endif /* PSHMOD_H_ */ 37 | 38 | 39 | /* END */ 40 | -------------------------------------------------------------------------------- /ui/freetype/src/psnames/Jamfile: -------------------------------------------------------------------------------- 1 | # FreeType 2 src/psnames Jamfile 2 | # 3 | # Copyright 2001-2018 by 4 | # David Turner, Robert Wilhelm, and Werner Lemberg. 5 | # 6 | # This file is part of the FreeType project, and may only be used, modified, 7 | # and distributed under the terms of the FreeType project license, 8 | # LICENSE.TXT. By continuing to use, modify, or distribute this file you 9 | # indicate that you have read the license and understand and accept it 10 | # fully. 11 | 12 | SubDir FT2_TOP $(FT2_SRC_DIR) psnames ; 13 | 14 | { 15 | local _sources ; 16 | 17 | if $(FT2_MULTI) 18 | { 19 | _sources = psmodule 20 | pspic 21 | ; 22 | } 23 | else 24 | { 25 | _sources = psnames ; 26 | } 27 | 28 | Library $(FT2_LIB) : $(_sources).c ; 29 | } 30 | 31 | # end of src/psnames Jamfile 32 | -------------------------------------------------------------------------------- /ui/freetype/src/psnames/module.mk: -------------------------------------------------------------------------------- 1 | # 2 | # FreeType 2 PSnames module definition 3 | # 4 | 5 | 6 | # Copyright 1996-2018 by 7 | # David Turner, Robert Wilhelm, and Werner Lemberg. 8 | # 9 | # This file is part of the FreeType project, and may only be used, modified, 10 | # and distributed under the terms of the FreeType project license, 11 | # LICENSE.TXT. By continuing to use, modify, or distribute this file you 12 | # indicate that you have read the license and understand and accept it 13 | # fully. 14 | 15 | 16 | FTMODULE_H_COMMANDS += PSNAMES_MODULE 17 | 18 | define PSNAMES_MODULE 19 | $(OPEN_DRIVER) FT_Module_Class, psnames_module_class $(CLOSE_DRIVER) 20 | $(ECHO_DRIVER)psnames $(ECHO_DRIVER_DESC)Postscript & Unicode Glyph name handling$(ECHO_DRIVER_DONE) 21 | endef 22 | 23 | # EOF 24 | -------------------------------------------------------------------------------- /ui/freetype/src/psnames/psmodule.h: -------------------------------------------------------------------------------- 1 | /***************************************************************************/ 2 | /* */ 3 | /* psmodule.h */ 4 | /* */ 5 | /* High-level PSNames module interface (specification). */ 6 | /* */ 7 | /* Copyright 1996-2018 by */ 8 | /* David Turner, Robert Wilhelm, and Werner Lemberg. */ 9 | /* */ 10 | /* This file is part of the FreeType project, and may only be used, */ 11 | /* modified, and distributed under the terms of the FreeType project */ 12 | /* license, LICENSE.TXT. By continuing to use, modify, or distribute */ 13 | /* this file you indicate that you have read the license and */ 14 | /* understand and accept it fully. */ 15 | /* */ 16 | /***************************************************************************/ 17 | 18 | 19 | #ifndef PSMODULE_H_ 20 | #define PSMODULE_H_ 21 | 22 | 23 | #include 24 | #include FT_MODULE_H 25 | 26 | 27 | FT_BEGIN_HEADER 28 | 29 | 30 | FT_DECLARE_MODULE( psnames_module_class ) 31 | 32 | 33 | FT_END_HEADER 34 | 35 | #endif /* PSMODULE_H_ */ 36 | 37 | 38 | /* END */ 39 | -------------------------------------------------------------------------------- /ui/freetype/src/psnames/psnames.c: -------------------------------------------------------------------------------- 1 | /***************************************************************************/ 2 | /* */ 3 | /* psnames.c */ 4 | /* */ 5 | /* FreeType PSNames module component (body only). */ 6 | /* */ 7 | /* Copyright 1996-2018 by */ 8 | /* David Turner, Robert Wilhelm, and Werner Lemberg. */ 9 | /* */ 10 | /* This file is part of the FreeType project, and may only be used, */ 11 | /* modified, and distributed under the terms of the FreeType project */ 12 | /* license, LICENSE.TXT. By continuing to use, modify, or distribute */ 13 | /* this file you indicate that you have read the license and */ 14 | /* understand and accept it fully. */ 15 | /* */ 16 | /***************************************************************************/ 17 | 18 | 19 | #define FT_MAKE_OPTION_SINGLE_OBJECT 20 | #include 21 | 22 | #include "psmodule.c" 23 | #include "pspic.c" 24 | 25 | 26 | /* END */ 27 | -------------------------------------------------------------------------------- /ui/freetype/src/raster/Jamfile: -------------------------------------------------------------------------------- 1 | # FreeType 2 src/raster Jamfile 2 | # 3 | # Copyright 2001-2018 by 4 | # David Turner, Robert Wilhelm, and Werner Lemberg. 5 | # 6 | # This file is part of the FreeType project, and may only be used, modified, 7 | # and distributed under the terms of the FreeType project license, 8 | # LICENSE.TXT. By continuing to use, modify, or distribute this file you 9 | # indicate that you have read the license and understand and accept it 10 | # fully. 11 | 12 | SubDir FT2_TOP $(FT2_SRC_DIR) raster ; 13 | 14 | { 15 | local _sources ; 16 | 17 | if $(FT2_MULTI) 18 | { 19 | _sources = ftraster 20 | ftrend1 21 | rastpic 22 | ; 23 | } 24 | else 25 | { 26 | _sources = raster ; 27 | } 28 | 29 | Library $(FT2_LIB) : $(_sources).c ; 30 | } 31 | 32 | # end of src/raster Jamfile 33 | -------------------------------------------------------------------------------- /ui/freetype/src/raster/ftrend1.h: -------------------------------------------------------------------------------- 1 | /***************************************************************************/ 2 | /* */ 3 | /* ftrend1.h */ 4 | /* */ 5 | /* The FreeType glyph rasterizer interface (specification). */ 6 | /* */ 7 | /* Copyright 1996-2018 by */ 8 | /* David Turner, Robert Wilhelm, and Werner Lemberg. */ 9 | /* */ 10 | /* This file is part of the FreeType project, and may only be used, */ 11 | /* modified, and distributed under the terms of the FreeType project */ 12 | /* license, LICENSE.TXT. By continuing to use, modify, or distribute */ 13 | /* this file you indicate that you have read the license and */ 14 | /* understand and accept it fully. */ 15 | /* */ 16 | /***************************************************************************/ 17 | 18 | 19 | #ifndef FTREND1_H_ 20 | #define FTREND1_H_ 21 | 22 | 23 | #include 24 | #include FT_RENDER_H 25 | 26 | 27 | FT_BEGIN_HEADER 28 | 29 | 30 | FT_DECLARE_RENDERER( ft_raster1_renderer_class ) 31 | 32 | 33 | FT_END_HEADER 34 | 35 | #endif /* FTREND1_H_ */ 36 | 37 | 38 | /* END */ 39 | -------------------------------------------------------------------------------- /ui/freetype/src/raster/module.mk: -------------------------------------------------------------------------------- 1 | # 2 | # FreeType 2 renderer module definition 3 | # 4 | 5 | 6 | # Copyright 1996-2018 by 7 | # David Turner, Robert Wilhelm, and Werner Lemberg. 8 | # 9 | # This file is part of the FreeType project, and may only be used, modified, 10 | # and distributed under the terms of the FreeType project license, 11 | # LICENSE.TXT. By continuing to use, modify, or distribute this file you 12 | # indicate that you have read the license and understand and accept it 13 | # fully. 14 | 15 | 16 | FTMODULE_H_COMMANDS += RASTER_MODULE 17 | 18 | define RASTER_MODULE 19 | $(OPEN_DRIVER) FT_Renderer_Class, ft_raster1_renderer_class $(CLOSE_DRIVER) 20 | $(ECHO_DRIVER)raster $(ECHO_DRIVER_DESC)monochrome bitmap renderer$(ECHO_DRIVER_DONE) 21 | endef 22 | 23 | # EOF 24 | -------------------------------------------------------------------------------- /ui/freetype/src/raster/raster.c: -------------------------------------------------------------------------------- 1 | /***************************************************************************/ 2 | /* */ 3 | /* raster.c */ 4 | /* */ 5 | /* FreeType monochrome rasterer module component (body only). */ 6 | /* */ 7 | /* Copyright 1996-2018 by */ 8 | /* David Turner, Robert Wilhelm, and Werner Lemberg. */ 9 | /* */ 10 | /* This file is part of the FreeType project, and may only be used, */ 11 | /* modified, and distributed under the terms of the FreeType project */ 12 | /* license, LICENSE.TXT. By continuing to use, modify, or distribute */ 13 | /* this file you indicate that you have read the license and */ 14 | /* understand and accept it fully. */ 15 | /* */ 16 | /***************************************************************************/ 17 | 18 | 19 | #define FT_MAKE_OPTION_SINGLE_OBJECT 20 | #include 21 | 22 | #include "ftraster.c" 23 | #include "ftrend1.c" 24 | #include "rastpic.c" 25 | 26 | 27 | /* END */ 28 | -------------------------------------------------------------------------------- /ui/freetype/src/sfnt/Jamfile: -------------------------------------------------------------------------------- 1 | # FreeType 2 src/sfnt Jamfile 2 | # 3 | # Copyright 2001-2018 by 4 | # David Turner, Robert Wilhelm, and Werner Lemberg. 5 | # 6 | # This file is part of the FreeType project, and may only be used, modified, 7 | # and distributed under the terms of the FreeType project license, 8 | # LICENSE.TXT. By continuing to use, modify, or distribute this file you 9 | # indicate that you have read the license and understand and accept it 10 | # fully. 11 | 12 | SubDir FT2_TOP $(FT2_SRC_DIR) sfnt ; 13 | 14 | { 15 | local _sources ; 16 | 17 | if $(FT2_MULTI) 18 | { 19 | _sources = pngshim 20 | sfdriver 21 | sfntpic 22 | sfobjs 23 | ttbdf 24 | ttcmap 25 | ttkern 26 | ttload 27 | ttmtx 28 | ttpost 29 | ttsbit 30 | ; 31 | } 32 | else 33 | { 34 | _sources = sfnt ; 35 | } 36 | 37 | Library $(FT2_LIB) : $(_sources).c ; 38 | } 39 | 40 | # end of src/sfnt Jamfile 41 | -------------------------------------------------------------------------------- /ui/freetype/src/sfnt/module.mk: -------------------------------------------------------------------------------- 1 | # 2 | # FreeType 2 SFNT module definition 3 | # 4 | 5 | 6 | # Copyright 1996-2018 by 7 | # David Turner, Robert Wilhelm, and Werner Lemberg. 8 | # 9 | # This file is part of the FreeType project, and may only be used, modified, 10 | # and distributed under the terms of the FreeType project license, 11 | # LICENSE.TXT. By continuing to use, modify, or distribute this file you 12 | # indicate that you have read the license and understand and accept it 13 | # fully. 14 | 15 | 16 | FTMODULE_H_COMMANDS += SFNT_MODULE 17 | 18 | define SFNT_MODULE 19 | $(OPEN_DRIVER) FT_Module_Class, sfnt_module_class $(CLOSE_DRIVER) 20 | $(ECHO_DRIVER)sfnt $(ECHO_DRIVER_DESC)helper module for TrueType & OpenType formats$(ECHO_DRIVER_DONE) 21 | endef 22 | 23 | # EOF 24 | -------------------------------------------------------------------------------- /ui/freetype/src/sfnt/sfdriver.h: -------------------------------------------------------------------------------- 1 | /***************************************************************************/ 2 | /* */ 3 | /* sfdriver.h */ 4 | /* */ 5 | /* High-level SFNT driver interface (specification). */ 6 | /* */ 7 | /* Copyright 1996-2018 by */ 8 | /* David Turner, Robert Wilhelm, and Werner Lemberg. */ 9 | /* */ 10 | /* This file is part of the FreeType project, and may only be used, */ 11 | /* modified, and distributed under the terms of the FreeType project */ 12 | /* license, LICENSE.TXT. By continuing to use, modify, or distribute */ 13 | /* this file you indicate that you have read the license and */ 14 | /* understand and accept it fully. */ 15 | /* */ 16 | /***************************************************************************/ 17 | 18 | 19 | #ifndef SFDRIVER_H_ 20 | #define SFDRIVER_H_ 21 | 22 | 23 | #include 24 | #include FT_MODULE_H 25 | 26 | 27 | FT_BEGIN_HEADER 28 | 29 | 30 | FT_DECLARE_MODULE( sfnt_module_class ) 31 | 32 | 33 | FT_END_HEADER 34 | 35 | #endif /* SFDRIVER_H_ */ 36 | 37 | 38 | /* END */ 39 | -------------------------------------------------------------------------------- /ui/freetype/src/smooth/Jamfile: -------------------------------------------------------------------------------- 1 | # FreeType 2 src/smooth Jamfile 2 | # 3 | # Copyright 2001-2018 by 4 | # David Turner, Robert Wilhelm, and Werner Lemberg. 5 | # 6 | # This file is part of the FreeType project, and may only be used, modified, 7 | # and distributed under the terms of the FreeType project license, 8 | # LICENSE.TXT. By continuing to use, modify, or distribute this file you 9 | # indicate that you have read the license and understand and accept it 10 | # fully. 11 | 12 | SubDir FT2_TOP $(FT2_SRC_DIR) smooth ; 13 | 14 | { 15 | local _sources ; 16 | 17 | if $(FT2_MULTI) 18 | { 19 | _sources = ftgrays 20 | ftsmooth 21 | ftspic 22 | ; 23 | } 24 | else 25 | { 26 | _sources = smooth ; 27 | } 28 | 29 | Library $(FT2_LIB) : $(_sources).c ; 30 | } 31 | 32 | # end of src/smooth Jamfile 33 | -------------------------------------------------------------------------------- /ui/freetype/src/smooth/module.mk: -------------------------------------------------------------------------------- 1 | # 2 | # FreeType 2 smooth renderer module definition 3 | # 4 | 5 | 6 | # Copyright 1996-2018 by 7 | # David Turner, Robert Wilhelm, and Werner Lemberg. 8 | # 9 | # This file is part of the FreeType project, and may only be used, modified, 10 | # and distributed under the terms of the FreeType project license, 11 | # LICENSE.TXT. By continuing to use, modify, or distribute this file you 12 | # indicate that you have read the license and understand and accept it 13 | # fully. 14 | 15 | 16 | FTMODULE_H_COMMANDS += SMOOTH_RENDERER 17 | 18 | define SMOOTH_RENDERER 19 | $(OPEN_DRIVER) FT_Renderer_Class, ft_smooth_renderer_class $(CLOSE_DRIVER) 20 | $(ECHO_DRIVER)smooth $(ECHO_DRIVER_DESC)anti-aliased bitmap renderer$(ECHO_DRIVER_DONE) 21 | $(OPEN_DRIVER) FT_Renderer_Class, ft_smooth_lcd_renderer_class $(CLOSE_DRIVER) 22 | $(ECHO_DRIVER)smooth $(ECHO_DRIVER_DESC)anti-aliased bitmap renderer for LCDs$(ECHO_DRIVER_DONE) 23 | $(OPEN_DRIVER) FT_Renderer_Class, ft_smooth_lcdv_renderer_class $(CLOSE_DRIVER) 24 | $(ECHO_DRIVER)smooth $(ECHO_DRIVER_DESC)anti-aliased bitmap renderer for vertical LCDs$(ECHO_DRIVER_DONE) 25 | endef 26 | 27 | # EOF 28 | -------------------------------------------------------------------------------- /ui/freetype/src/smooth/smooth.c: -------------------------------------------------------------------------------- 1 | /***************************************************************************/ 2 | /* */ 3 | /* smooth.c */ 4 | /* */ 5 | /* FreeType anti-aliasing rasterer module component (body only). */ 6 | /* */ 7 | /* Copyright 1996-2018 by */ 8 | /* David Turner, Robert Wilhelm, and Werner Lemberg. */ 9 | /* */ 10 | /* This file is part of the FreeType project, and may only be used, */ 11 | /* modified, and distributed under the terms of the FreeType project */ 12 | /* license, LICENSE.TXT. By continuing to use, modify, or distribute */ 13 | /* this file you indicate that you have read the license and */ 14 | /* understand and accept it fully. */ 15 | /* */ 16 | /***************************************************************************/ 17 | 18 | 19 | #define FT_MAKE_OPTION_SINGLE_OBJECT 20 | #include 21 | 22 | #include "ftgrays.c" 23 | #include "ftsmooth.c" 24 | #include "ftspic.c" 25 | 26 | 27 | /* END */ 28 | -------------------------------------------------------------------------------- /ui/freetype/src/tools/Jamfile: -------------------------------------------------------------------------------- 1 | # Jamfile for src/tools 2 | # 3 | SubDir FT2_TOP src tools ; 4 | 5 | Main apinames : apinames.c ; 6 | -------------------------------------------------------------------------------- /ui/freetype/src/tools/cordic.py: -------------------------------------------------------------------------------- 1 | # compute arctangent table for CORDIC computations in fttrigon.c 2 | import sys, math 3 | 4 | #units = 64*65536.0 # don't change !! 5 | units = 180 * 2**16 6 | scale = units/math.pi 7 | shrink = 1.0 8 | comma = "" 9 | 10 | print "" 11 | print "table of arctan( 1/2^n ) for PI = " + repr(units/65536.0) + " units" 12 | 13 | for n in range(1,32): 14 | 15 | x = 0.5**n # tangent value 16 | 17 | angle = math.atan(x) # arctangent 18 | angle2 = round(angle*scale) # arctangent in FT_Angle units 19 | 20 | if angle2 <= 0: 21 | break 22 | 23 | sys.stdout.write( comma + repr( int(angle2) ) ) 24 | comma = ", " 25 | 26 | shrink /= math.sqrt( 1 + x*x ) 27 | 28 | print 29 | print "shrink factor = " + repr( shrink ) 30 | print "shrink factor 2 = " + repr( int( shrink * (2**32) ) ) 31 | print "expansion factor = " + repr( 1/shrink ) 32 | print "" 33 | 34 | -------------------------------------------------------------------------------- /ui/freetype/src/tools/ftfuzzer/runinput.cc: -------------------------------------------------------------------------------- 1 | // runinput.cc 2 | // 3 | // A `main' function for fuzzers like `ftfuzzer.cc'. 4 | // 5 | // Copyright 2015-2018 by 6 | // David Turner, Robert Wilhelm, and Werner Lemberg. 7 | // 8 | // This file is part of the FreeType project, and may only be used, 9 | // modified, and distributed under the terms of the FreeType project 10 | // license, LICENSE.TXT. By continuing to use, modify, or distribute 11 | // this file you indicate that you have read the license and 12 | // understand and accept it fully. 13 | 14 | 15 | #include 16 | #include 17 | #include 18 | #include 19 | #include 20 | 21 | 22 | extern "C" void 23 | LLVMFuzzerTestOneInput( const uint8_t* data, 24 | size_t size ); 25 | 26 | 27 | unsigned char a[1 << 24]; 28 | 29 | 30 | int 31 | main( int argc, 32 | char* *argv ) 33 | { 34 | assert( argc >= 2 ); 35 | 36 | for ( int i = 1; i < argc; i++ ) 37 | { 38 | fprintf( stderr, "%s\n", argv[i] ); 39 | 40 | FILE* f = fopen( argv[i], "r" ); 41 | assert( f ); 42 | 43 | size_t n = fread( a, 1, sizeof ( a ), f ); 44 | fclose( f ); 45 | if ( !n ) 46 | continue; 47 | 48 | unsigned char* b = (unsigned char*)malloc( n ); 49 | memcpy( b, a, n ); 50 | 51 | LLVMFuzzerTestOneInput( b, n ); 52 | 53 | free( b ); 54 | } 55 | } 56 | 57 | 58 | // END 59 | -------------------------------------------------------------------------------- /ui/freetype/src/tools/ftrandom/Makefile: -------------------------------------------------------------------------------- 1 | # TOP_DIR and OBJ_DIR should be set by the user to the right directories, 2 | # if necessary. 3 | 4 | TOP_DIR ?= ../../.. 5 | OBJ_DIR ?= $(TOP_DIR)/objs 6 | 7 | 8 | # The setup below is for gcc on a Unix-like platform, 9 | # where FreeType has been set up to create a static library 10 | # (which is the default). 11 | 12 | VPATH = $(OBJ_DIR) \ 13 | $(OBJ_DIR)/.libs 14 | 15 | SRC_DIR = $(TOP_DIR)/src/tools/ftrandom 16 | 17 | CC = gcc 18 | WFLAGS = -Wmissing-prototypes \ 19 | -Wunused \ 20 | -Wimplicit \ 21 | -Wreturn-type \ 22 | -Wparentheses \ 23 | -pedantic \ 24 | -Wformat \ 25 | -Wchar-subscripts \ 26 | -Wsequence-point 27 | CFLAGS = $(WFLAGS) \ 28 | -g 29 | INCLUDES = -I $(TOP_DIR)/include 30 | LDFLAGS = 31 | LIBS = -lm \ 32 | -lz \ 33 | -lpng \ 34 | -lbz2 \ 35 | -lharfbuzz 36 | 37 | all: $(OBJ_DIR)/ftrandom 38 | 39 | $(OBJ_DIR)/ftrandom.o: $(SRC_DIR)/ftrandom.c 40 | $(CC) $(CFLAGS) $(INCLUDES) -c -o $@ $< 41 | 42 | $(OBJ_DIR)/ftrandom: $(OBJ_DIR)/ftrandom.o libfreetype.a 43 | $(CC) $(LDFLAGS) -o $@ $^ $(LIBS) 44 | 45 | # EOF 46 | -------------------------------------------------------------------------------- /ui/freetype/src/tools/no-copyright: -------------------------------------------------------------------------------- 1 | # Files that don't get a copyright, or which are taken from elsewhere. 2 | # 3 | # All lines in this file are patterns, including the comment lines; this 4 | # means that e.g. `FTL.TXT' matches all files that have this string in 5 | # the file name (including the path relative to the current directory, 6 | # always starting with `./'). 7 | # 8 | # Don't put empty lines into this file! 9 | # 10 | .gitignore 11 | # 12 | builds/unix/pkg.m4 13 | # 14 | docs/FTL.TXT 15 | docs/GPLv2.TXT 16 | # 17 | include/freetype/internal/fthash.h 18 | # 19 | src/base/fthash.c 20 | src/base/md5.c 21 | src/base/md5.h 22 | # 23 | src/bdf/bdf.c 24 | src/bdf/bdf.h 25 | src/bdf/bdfdrivr.c 26 | src/bdf/bdfdrivr.h 27 | src/bdf/bdferror.h 28 | src/bdf/bdflib.c 29 | src/bdf/module.mk 30 | src/bdf/README 31 | src/bdf/rules.mk 32 | # 33 | src/pcf/module.mk 34 | src/pcf/pcf.c 35 | src/pcf/pcf.h 36 | src/pcf/pcfdrivr.c 37 | src/pcf/pcfdrivr.h 38 | src/pcf/pcferror.h 39 | src/pcf/pcfread.c 40 | src/pcf/pcfread.h 41 | src/pcf/pcfutil.c 42 | src/pcf/pcfutil.h 43 | src/pcf/README 44 | src/pcf/rules.mk 45 | # 46 | src/gzip/adler32.c 47 | src/gzip/infblock.c 48 | src/gzip/infblock.h 49 | src/gzip/infcodes.c 50 | src/gzip/infcodes.h 51 | src/gzip/inffixed.h 52 | src/gzip/inflate.c 53 | src/gzip/inftrees.c 54 | src/gzip/inftrees.h 55 | src/gzip/infutil.c 56 | src/gzip/infutil.h 57 | src/gzip/zconf.h 58 | src/gzip/zlib.h 59 | src/gzip/zutil.c 60 | src/gzip/zutil.h 61 | # 62 | src/tools/apinames.c 63 | src/tools/ftrandom/ftrandom.c 64 | # 65 | # EOF 66 | -------------------------------------------------------------------------------- /ui/freetype/src/tools/update-copyright: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # Run the `update-copyright-year' script on all files in the git repository, 4 | # taking care of exceptions stored in file `no-copyright'. 5 | 6 | topdir=`git rev-parse --show-toplevel` 7 | toolsdir=$topdir/src/tools 8 | 9 | git ls-files --full-name $topdir \ 10 | | sed 's|^|../../|' \ 11 | | grep -vFf $toolsdir/no-copyright \ 12 | | xargs $toolsdir/update-copyright-year 13 | 14 | # EOF 15 | -------------------------------------------------------------------------------- /ui/freetype/src/truetype/Jamfile: -------------------------------------------------------------------------------- 1 | # FreeType 2 src/truetype Jamfile 2 | # 3 | # Copyright 2001-2018 by 4 | # David Turner, Robert Wilhelm, and Werner Lemberg. 5 | # 6 | # This file is part of the FreeType project, and may only be used, modified, 7 | # and distributed under the terms of the FreeType project license, 8 | # LICENSE.TXT. By continuing to use, modify, or distribute this file you 9 | # indicate that you have read the license and understand and accept it 10 | # fully. 11 | 12 | SubDir FT2_TOP $(FT2_SRC_DIR) truetype ; 13 | 14 | { 15 | local _sources ; 16 | 17 | if $(FT2_MULTI) 18 | { 19 | _sources = ttdriver 20 | ttgload 21 | ttgxvar 22 | ttinterp 23 | ttobjs 24 | ttpic 25 | ttpload 26 | ttsubpix 27 | ; 28 | } 29 | else 30 | { 31 | _sources = truetype ; 32 | } 33 | 34 | Library $(FT2_LIB) : $(_sources).c ; 35 | } 36 | 37 | # end of src/truetype Jamfile 38 | -------------------------------------------------------------------------------- /ui/freetype/src/truetype/module.mk: -------------------------------------------------------------------------------- 1 | # 2 | # FreeType 2 TrueType module definition 3 | # 4 | 5 | 6 | # Copyright 1996-2018 by 7 | # David Turner, Robert Wilhelm, and Werner Lemberg. 8 | # 9 | # This file is part of the FreeType project, and may only be used, modified, 10 | # and distributed under the terms of the FreeType project license, 11 | # LICENSE.TXT. By continuing to use, modify, or distribute this file you 12 | # indicate that you have read the license and understand and accept it 13 | # fully. 14 | 15 | 16 | FTMODULE_H_COMMANDS += TRUETYPE_DRIVER 17 | 18 | define TRUETYPE_DRIVER 19 | $(OPEN_DRIVER) FT_Driver_ClassRec, tt_driver_class $(CLOSE_DRIVER) 20 | $(ECHO_DRIVER)truetype $(ECHO_DRIVER_DESC)Windows/Mac font files with extension *.ttf or *.ttc$(ECHO_DRIVER_DONE) 21 | endef 22 | 23 | # EOF 24 | -------------------------------------------------------------------------------- /ui/freetype/src/type1/Jamfile: -------------------------------------------------------------------------------- 1 | # FreeType 2 src/type1 Jamfile 2 | # 3 | # Copyright 2001-2018 by 4 | # David Turner, Robert Wilhelm, and Werner Lemberg. 5 | # 6 | # This file is part of the FreeType project, and may only be used, modified, 7 | # and distributed under the terms of the FreeType project license, 8 | # LICENSE.TXT. By continuing to use, modify, or distribute this file you 9 | # indicate that you have read the license and understand and accept it 10 | # fully. 11 | 12 | SubDir FT2_TOP $(FT2_SRC_DIR) type1 ; 13 | 14 | { 15 | local _sources ; 16 | 17 | if $(FT2_MULTI) 18 | { 19 | _sources = t1afm 20 | t1driver 21 | t1gload 22 | t1load 23 | t1objs 24 | t1parse 25 | ; 26 | } 27 | else 28 | { 29 | _sources = type1 ; 30 | } 31 | 32 | Library $(FT2_LIB) : $(_sources).c ; 33 | } 34 | 35 | # end of src/type1 Jamfile 36 | -------------------------------------------------------------------------------- /ui/freetype/src/type1/module.mk: -------------------------------------------------------------------------------- 1 | # 2 | # FreeType 2 Type1 module definition 3 | # 4 | 5 | 6 | # Copyright 1996-2018 by 7 | # David Turner, Robert Wilhelm, and Werner Lemberg. 8 | # 9 | # This file is part of the FreeType project, and may only be used, modified, 10 | # and distributed under the terms of the FreeType project license, 11 | # LICENSE.TXT. By continuing to use, modify, or distribute this file you 12 | # indicate that you have read the license and understand and accept it 13 | # fully. 14 | 15 | 16 | FTMODULE_H_COMMANDS += TYPE1_DRIVER 17 | 18 | define TYPE1_DRIVER 19 | $(OPEN_DRIVER) FT_Driver_ClassRec, t1_driver_class $(CLOSE_DRIVER) 20 | $(ECHO_DRIVER)type1 $(ECHO_DRIVER_DESC)Postscript font files with extension *.pfa or *.pfb$(ECHO_DRIVER_DONE) 21 | endef 22 | 23 | # EOF 24 | -------------------------------------------------------------------------------- /ui/freetype/src/type1/type1.c: -------------------------------------------------------------------------------- 1 | /***************************************************************************/ 2 | /* */ 3 | /* type1.c */ 4 | /* */ 5 | /* FreeType Type 1 driver component (body only). */ 6 | /* */ 7 | /* Copyright 1996-2018 by */ 8 | /* David Turner, Robert Wilhelm, and Werner Lemberg. */ 9 | /* */ 10 | /* This file is part of the FreeType project, and may only be used, */ 11 | /* modified, and distributed under the terms of the FreeType project */ 12 | /* license, LICENSE.TXT. By continuing to use, modify, or distribute */ 13 | /* this file you indicate that you have read the license and */ 14 | /* understand and accept it fully. */ 15 | /* */ 16 | /***************************************************************************/ 17 | 18 | 19 | #define FT_MAKE_OPTION_SINGLE_OBJECT 20 | #include 21 | 22 | #include "t1afm.c" 23 | #include "t1driver.c" 24 | #include "t1gload.c" 25 | #include "t1load.c" 26 | #include "t1objs.c" 27 | #include "t1parse.c" 28 | 29 | 30 | /* END */ 31 | -------------------------------------------------------------------------------- /ui/freetype/src/type42/Jamfile: -------------------------------------------------------------------------------- 1 | # FreeType 2 src/type42 Jamfile 2 | # 3 | # Copyright 2002-2018 by 4 | # David Turner, Robert Wilhelm, and Werner Lemberg. 5 | # 6 | # This file is part of the FreeType project, and may only be used, modified, 7 | # and distributed under the terms of the FreeType project license, 8 | # LICENSE.TXT. By continuing to use, modify, or distribute this file you 9 | # indicate that you have read the license and understand and accept it 10 | # fully. 11 | 12 | SubDir FT2_TOP $(FT2_SRC_DIR) type42 ; 13 | 14 | { 15 | local _sources ; 16 | 17 | if $(FT2_MULTI) 18 | { 19 | _sources = t42drivr 20 | t42objs 21 | t42parse 22 | ; 23 | } 24 | else 25 | { 26 | _sources = type42 ; 27 | } 28 | 29 | Library $(FT2_LIB) : $(_sources).c ; 30 | } 31 | 32 | # end of src/type42 Jamfile 33 | -------------------------------------------------------------------------------- /ui/freetype/src/type42/module.mk: -------------------------------------------------------------------------------- 1 | # 2 | # FreeType 2 Type42 module definition 3 | # 4 | 5 | 6 | # Copyright 2002-2018 by 7 | # David Turner, Robert Wilhelm, and Werner Lemberg. 8 | # 9 | # This file is part of the FreeType project, and may only be used, modified, 10 | # and distributed under the terms of the FreeType project license, 11 | # LICENSE.TXT. By continuing to use, modify, or distribute this file you 12 | # indicate that you have read the license and understand and accept it 13 | # fully. 14 | 15 | 16 | FTMODULE_H_COMMANDS += TYPE42_DRIVER 17 | 18 | define TYPE42_DRIVER 19 | $(OPEN_DRIVER) FT_Driver_ClassRec, t42_driver_class $(CLOSE_DRIVER) 20 | $(ECHO_DRIVER)type42 $(ECHO_DRIVER_DESC)Type 42 font files with no known extension$(ECHO_DRIVER_DONE) 21 | endef 22 | 23 | # EOF 24 | -------------------------------------------------------------------------------- /ui/freetype/src/type42/type42.c: -------------------------------------------------------------------------------- 1 | /***************************************************************************/ 2 | /* */ 3 | /* type42.c */ 4 | /* */ 5 | /* FreeType Type 42 driver component. */ 6 | /* */ 7 | /* Copyright 2002-2018 by */ 8 | /* David Turner, Robert Wilhelm, and Werner Lemberg. */ 9 | /* */ 10 | /* This file is part of the FreeType project, and may only be used, */ 11 | /* modified, and distributed under the terms of the FreeType project */ 12 | /* license, LICENSE.TXT. By continuing to use, modify, or distribute */ 13 | /* this file you indicate that you have read the license and */ 14 | /* understand and accept it fully. */ 15 | /* */ 16 | /***************************************************************************/ 17 | 18 | 19 | #define FT_MAKE_OPTION_SINGLE_OBJECT 20 | #include 21 | 22 | #include "t42drivr.c" 23 | #include "t42objs.c" 24 | #include "t42parse.c" 25 | 26 | 27 | /* END */ 28 | -------------------------------------------------------------------------------- /ui/freetype/src/winfonts/Jamfile: -------------------------------------------------------------------------------- 1 | # FreeType 2 src/winfonts Jamfile 2 | # 3 | # Copyright 2001-2018 by 4 | # David Turner, Robert Wilhelm, and Werner Lemberg. 5 | # 6 | # This file is part of the FreeType project, and may only be used, modified, 7 | # and distributed under the terms of the FreeType project license, 8 | # LICENSE.TXT. By continuing to use, modify, or distribute this file you 9 | # indicate that you have read the license and understand and accept it 10 | # fully. 11 | 12 | SubDir FT2_TOP $(FT2_SRC_DIR) winfonts ; 13 | 14 | Library $(FT2_LIB) : winfnt.c ; 15 | 16 | # end of src/winfonts Jamfile 17 | -------------------------------------------------------------------------------- /ui/freetype/src/winfonts/module.mk: -------------------------------------------------------------------------------- 1 | # 2 | # FreeType 2 Windows FNT/FON module definition 3 | # 4 | 5 | 6 | # Copyright 1996-2018 by 7 | # David Turner, Robert Wilhelm, and Werner Lemberg. 8 | # 9 | # This file is part of the FreeType project, and may only be used, modified, 10 | # and distributed under the terms of the FreeType project license, 11 | # LICENSE.TXT. By continuing to use, modify, or distribute this file you 12 | # indicate that you have read the license and understand and accept it 13 | # fully. 14 | 15 | 16 | FTMODULE_H_COMMANDS += WINDOWS_DRIVER 17 | 18 | define WINDOWS_DRIVER 19 | $(OPEN_DRIVER) FT_Driver_ClassRec, winfnt_driver_class $(CLOSE_DRIVER) 20 | $(ECHO_DRIVER)winfnt $(ECHO_DRIVER_DESC)Windows bitmap fonts with extension *.fnt or *.fon$(ECHO_DRIVER_DONE) 21 | endef 22 | 23 | # EOF 24 | -------------------------------------------------------------------------------- /ui/freetype/version.sed: -------------------------------------------------------------------------------- 1 | #! /usr/bin/sed -nf 2 | 3 | s/^#define *FREETYPE_MAJOR *\([^ ][^ ]*\).*$/freetype_major="\1" ;/p 4 | s/^#define *FREETYPE_MINOR *\([^ ][^ ]*\).*$/freetype_minor=".\1" ;/p 5 | s/^#define *FREETYPE_PATCH *\([^ ][^ ]*\).*$/freetype_patch=".\1" ;/p 6 | -------------------------------------------------------------------------------- /ui/imgui_impl_dx9.h: -------------------------------------------------------------------------------- 1 | // dear imgui: Renderer for DirectX9 2 | // This needs to be used along with a Platform Binding (e.g. Win32) 3 | 4 | // Implemented features: 5 | // [X] Renderer: User texture binding. Use 'LPDIRECT3DTEXTURE9' as ImTextureID. Read the FAQ about ImTextureID in imgui.cpp. 6 | 7 | // You can copy and use unmodified imgui_impl_* files in your project. See main.cpp for an example of using this. 8 | // If you are new to dear imgui, read examples/README.txt and read the documentation at the top of imgui.cpp. 9 | // https://github.com/ocornut/imgui 10 | 11 | #pragma once 12 | 13 | struct IDirect3DDevice9; 14 | 15 | IMGUI_IMPL_API bool ImGui_ImplDX9_Init(IDirect3DDevice9* device); 16 | IMGUI_IMPL_API void ImGui_ImplDX9_Shutdown(); 17 | IMGUI_IMPL_API void ImGui_ImplDX9_NewFrame(); 18 | IMGUI_IMPL_API void ImGui_ImplDX9_RenderDrawData(ImDrawData* draw_data); 19 | 20 | // Use if you want to reset your rendering device without losing ImGui state. 21 | IMGUI_IMPL_API void ImGui_ImplDX9_InvalidateDeviceObjects(); 22 | IMGUI_IMPL_API bool ImGui_ImplDX9_CreateDeviceObjects(); 23 | -------------------------------------------------------------------------------- /ui/imgui_impl_win32.h: -------------------------------------------------------------------------------- 1 | // dear imgui: Platform Binding for Windows (standard windows API for 32 and 64 bits applications) 2 | // This needs to be used along with a Renderer (e.g. DirectX11, OpenGL3, Vulkan..) 3 | 4 | // Implemented features: 5 | // [X] Platform: Clipboard support (for Win32 this is actually part of core imgui) 6 | // [X] Platform: Mouse cursor shape and visibility. Disable with 'io.ConfigFlags |= ImGuiConfigFlags_NoMouseCursorChange'. 7 | // [X] Platform: Keyboard arrays indexed using VK_* Virtual Key Codes, e.g. ImGui::IsKeyPressed(VK_SPACE). 8 | // [X] Platform: Gamepad support. Enabled with 'io.ConfigFlags |= ImGuiConfigFlags_NavEnableGamepad'. 9 | 10 | #pragma once 11 | 12 | IMGUI_IMPL_API bool ImGui_ImplWin32_Init(void* hwnd); 13 | IMGUI_IMPL_API void ImGui_ImplWin32_Shutdown(); 14 | IMGUI_IMPL_API void ImGui_ImplWin32_NewFrame(); 15 | 16 | // Handler for Win32 messages, update mouse/keyboard data. 17 | // You may or not need this for your implementation, but it can serve as reference for handling inputs. 18 | // Intentionally commented out to avoid dragging dependencies on types. You can COPY this line into your .cpp code instead. 19 | /* 20 | IMGUI_IMPL_API LRESULT ImGui_ImplWin32_WndProcHandler(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam); 21 | */ 22 | -------------------------------------------------------------------------------- /ui/ui/c_ui_button.h: -------------------------------------------------------------------------------- 1 | // 2 | // Created by ruppet on 23.01.2020. 3 | // 4 | 5 | #ifndef uc-sflying-MENU_C_UI_BUTTON_H 6 | #define uc-sflying-MENU_C_UI_BUTTON_H 7 | 8 | #include "c_ui_element.h" 9 | class c_ui_button : public c_ui_element { 10 | public: 11 | void setup(std::string n) override; 12 | void draw(c_ui_window* wnd) override; 13 | 14 | e_element_type get_type() override { return ELEMENT_TYPE_CONTROL; } 15 | e_control_type get_control_type() override { return CONTROL_BUTTON; } 16 | 17 | private: 18 | ImColor outline; 19 | 20 | bool applied = false; 21 | }; 22 | 23 | 24 | #endif //uc-sflying-MENU_C_UI_BUTTON_H 25 | -------------------------------------------------------------------------------- /ui/ui/c_ui_checkbox.h: -------------------------------------------------------------------------------- 1 | // 2 | // Created by ruppet on 22.01.2020. 3 | // 4 | 5 | #ifndef uc-sflying-MENU_C_UI_CHECKBOX_H 6 | #define uc-sflying-MENU_C_UI_CHECKBOX_H 7 | 8 | #include "c_ui_element.h" 9 | 10 | class c_ui_checkbox : public c_ui_element { 11 | public: 12 | void setup(std::string name) override; 13 | void setup(std::string name, bool* v); 14 | void draw(c_ui_window* wnd) override; 15 | 16 | e_element_type get_type() override { return ELEMENT_TYPE_CONTROL; } 17 | e_control_type get_control_type() override { return CONTROL_CHECKBOX; } 18 | 19 | void set_var(bool* v) { value = v; } 20 | 21 | bool get_value() { return value ? *value : false; } 22 | void set_value(bool v) { if (value) *value = v; } 23 | 24 | private: 25 | bool* value = nullptr; 26 | 27 | bool applied = false; 28 | 29 | ImColor outline; 30 | }; 31 | 32 | 33 | #endif //uc-sflying-MENU_C_UI_CHECKBOX_H 34 | -------------------------------------------------------------------------------- /ui/ui/c_ui_colorpicker.h: -------------------------------------------------------------------------------- 1 | // 2 | // Created by ruppet on 23.01.2020. 3 | // 4 | 5 | #ifndef uc-sflying-MENU_C_UI_COLORPICKER_H 6 | #define uc-sflying-MENU_C_UI_COLORPICKER_H 7 | 8 | #include "c_ui_element.h" 9 | 10 | class c_ui_colorpicker : public c_ui_element { 11 | public: 12 | void setup(std::string n) override { setup(n, new float[4] {0, 0, 0, 1}); }; 13 | void setup(std::string n, float* v); 14 | void draw(c_ui_window* wnd) override; 15 | 16 | e_element_type get_type() override { return ELEMENT_TYPE_CONTROL; } 17 | e_control_type get_control_type() override { return CONTROL_COLORPICKER; } 18 | 19 | void set_var(float* v) { val = v; } 20 | 21 | ImU32 get_value() { return val ? ImColor(val[0], val[1], val[2], val[3]) : ImColor(0, 0, 0, 0); } 22 | void set_value(ImU32 v) { auto c = ImColor(v); val[0] = c.Value.x; val[1] = c.Value.y; val[2] = c.Value.z; val[3] = c.Value.w; } 23 | 24 | void set_value(int i, float v) { if (val) val[i] = v; } 25 | float get_value(int i) { return val ? val[i] : 0.f; } 26 | 27 | void set_alphabar(bool b) { draw_alpha_bar = b; } 28 | bool get_alphabar() { return draw_alpha_bar; } 29 | private: 30 | float* val; 31 | 32 | ImGuiID beh_id = 0; 33 | 34 | ImColor outline; 35 | bool applied = false; 36 | bool clear = false; 37 | bool draw_alpha_bar = true; 38 | 39 | bool changing_col = false; 40 | bool changing_hue = false; 41 | bool changing_alpha = false; 42 | 43 | float hue = 0.f; 44 | float col[3] = {}; 45 | }; 46 | 47 | 48 | #endif //uc-sflying-MENU_C_UI_COLORPICKER_H 49 | -------------------------------------------------------------------------------- /ui/ui/c_ui_dropdown.h: -------------------------------------------------------------------------------- 1 | // 2 | // Created by ruppet on 23.01.2020. 3 | // 4 | 5 | #ifndef uc-sflying-MENU_C_UI_DROPDOWN_H 6 | #define uc-sflying-MENU_C_UI_DROPDOWN_H 7 | 8 | #include "c_ui_element.h" 9 | 10 | class c_ui_dropdown : public c_ui_element { 11 | public: 12 | void setup(std::string n) override; 13 | void setup(std::string n, int* v); 14 | void draw(c_ui_window* wnd) override; 15 | 16 | e_element_type get_type() override { return ELEMENT_TYPE_CONTROL; } 17 | e_control_type get_control_type() override { return CONTROL_DROPDOWN; } 18 | 19 | void add(const std::string& t) { dd_elements.push_back(t); } 20 | void remove(const std::string& t) { dd_elements.erase(std::find(dd_elements.begin(), dd_elements.end(), t)); } 21 | void remove_all() { dd_elements.clear(); } 22 | int count() { return dd_elements.size(); } 23 | 24 | int get_value() { return val ? *val : 0; } 25 | void set_value(int v) { if (val) *val = v; } 26 | 27 | void set_var(int* v) { val = v; } 28 | 29 | private: 30 | int* val = nullptr; 31 | 32 | ImColor outline; 33 | bool applied = false; 34 | bool clear = false; 35 | 36 | std::vector dd_elements; 37 | }; 38 | 39 | 40 | #endif //uc-sflying-MENU_C_UI_DROPDOWN_H 41 | -------------------------------------------------------------------------------- /ui/ui/c_ui_element.cpp: -------------------------------------------------------------------------------- 1 | // 2 | // Created by ruppet on 21.01.2020. 3 | // 4 | 5 | #include "../../cheat.h" 6 | 7 | bool c_ui_element::in_bounds() { 8 | auto ms = ImGui::GetIO().MousePos; 9 | return ms.x >= pos.x && ms.x <= pos.x + size.x && ms.y >= pos.y && ms.y <= pos.y + size.y; 10 | } 11 | 12 | void c_ui_element::draw_desc(c_ui* ui) { 13 | if (description.empty()) return; 14 | 15 | ui->set_current_id(id); 16 | if (!ui->is_hovered(ImRect(pos, pos + size))) { 17 | ui->set_current_id(0); 18 | return; 19 | } 20 | 21 | auto d = &ImGui::GetCurrentContext()->ForegroundDrawList; 22 | 23 | auto _pos = ImGui::GetIO().MousePos + ImVec2(15.f, 15.f); 24 | auto _size = ImVec2(10.f + c_ui::text_size(description).x, 20.f); 25 | 26 | auto rect = ImRect(_pos, _pos + _size); 27 | d->AddRectFilled(rect.Min, rect.Max, ui->style.bottom); 28 | d->AddRect(rect.Min, rect.Max, ui->style.outline); 29 | d->AddRect(rect.Min + ImVec2(1.f, 1.f), rect.Max - ImVec2(1.f, 1.f), ui->style.shadow); 30 | 31 | d->AddText(rect.Min + ImVec2(5.f, 4.f), ui->style.text_normal, description.c_str()); 32 | 33 | ui->set_current_id(0); 34 | } -------------------------------------------------------------------------------- /ui/ui/c_ui_group.h: -------------------------------------------------------------------------------- 1 | // 2 | // Created by ruppet on 22.01.2020. 3 | // 4 | 5 | #ifndef uc-sflying-MENU_C_UI_GROUP_H 6 | #define uc-sflying-MENU_C_UI_GROUP_H 7 | 8 | #include "c_ui_element.h" 9 | 10 | class c_ui_group : public c_ui_element { 11 | public: 12 | void setup(std::string name) override; 13 | void draw(c_ui_window* wnd) override; 14 | 15 | e_element_type get_type() override { return ELEMENT_TYPE_CONTAINER; } 16 | 17 | private: 18 | float scroll = 0.f; 19 | 20 | ImGuiID scroll_id = 0; 21 | }; 22 | 23 | 24 | #endif //uc-sflying-MENU_C_UI_GROUP_H 25 | -------------------------------------------------------------------------------- /ui/ui/c_ui_hotkey.h: -------------------------------------------------------------------------------- 1 | // 2 | // Created by ruppet on 23.01.2020. 3 | // 4 | 5 | #ifndef uc-sflying-MENU_C_UI_HOTKEY_H 6 | #define uc-sflying-MENU_C_UI_HOTKEY_H 7 | 8 | #include "c_ui_element.h" 9 | class c_ui_hotkey : public c_ui_element { 10 | public: 11 | void setup(std::string n) override { setup(n, new int(0), new int(0)); } 12 | void setup(std::string n, int* v) { setup(n, v, nullptr); } 13 | void setup(std::string n, int* v, int* b); 14 | void draw(c_ui_window* wnd) override; 15 | 16 | e_element_type get_type() override { return ELEMENT_TYPE_CONTROL; } 17 | e_control_type get_control_type() override { return CONTROL_HOTKEY; } 18 | 19 | bool get_state(); 20 | 21 | int get_value() { return val ? *val : 0; } 22 | void set_value(int v) { if (val) *val = v; } 23 | 24 | int get_behaviour() { return beh ? *beh : 0; } 25 | void set_behaviour(int v) { if (beh) *beh = v; } 26 | 27 | void set_var(int* v) { val = v; } 28 | void set_beh(int* v) { beh = v; } 29 | 30 | private: 31 | int* val = nullptr; 32 | int* beh = nullptr; 33 | 34 | ImGuiID beh_id = 0; 35 | 36 | bool clear = false; 37 | 38 | ImColor outline; 39 | bool applied = false; 40 | }; 41 | 42 | 43 | #endif //uc-sflying-MENU_C_UI_HOTKEY_H 44 | -------------------------------------------------------------------------------- /ui/ui/c_ui_label.cpp: -------------------------------------------------------------------------------- 1 | // 2 | // Created by ruppet on 22.01.2020. 3 | // 4 | 5 | #include "c_ui.h" 6 | #include "../imgui_internal.h" 7 | 8 | void c_ui_label::setup(std::string n) { 9 | name = std::move(n); 10 | 11 | id = ImHashStr(name.c_str(), name.size(), rand()); 12 | 13 | size = ImVec2(0.f, 20.f); 14 | } 15 | 16 | void c_ui_label::draw(c_ui_window *wnd) { 17 | auto ui = wnd->get_parent(); 18 | 19 | // UPDATE 20 | pos += ImVec2(30.f, 2.f); 21 | size = ImVec2(c_ui::text_size(name).x + 30.f, 20.f); 22 | 23 | // DRAW 24 | auto d = ui->get_painting(); 25 | 26 | d->AddText(pos + ImVec2(0.f, 4.f), is_active ? ui->style.text_normal : ui->style.text_disabled, name.c_str()); 27 | 28 | draw_desc(ui); 29 | } 30 | -------------------------------------------------------------------------------- /ui/ui/c_ui_label.h: -------------------------------------------------------------------------------- 1 | // 2 | // Created by ruppet on 22.01.2020. 3 | // 4 | 5 | #ifndef uc-sflying-MENU_C_UI_LABEL_H 6 | #define uc-sflying-MENU_C_UI_LABEL_H 7 | 8 | #include "c_ui_element.h" 9 | 10 | class c_ui_label : public c_ui_element { 11 | public: 12 | void setup(std::string name) override; 13 | void draw(c_ui_window* wnd) override; 14 | 15 | e_element_type get_type() override { return ELEMENT_TYPE_CONTROL; } 16 | e_control_type get_control_type() override { return CONTROL_LABEL; } 17 | }; 18 | 19 | 20 | #endif //uc-sflying-MENU_C_UI_LABEL_H 21 | -------------------------------------------------------------------------------- /ui/ui/c_ui_listbox.h: -------------------------------------------------------------------------------- 1 | // 2 | // Created by ruppet on 23.01.2020. 3 | // 4 | 5 | #ifndef uc-sflying-MENU_C_UI_LISTBOX_H 6 | #define uc-sflying-MENU_C_UI_LISTBOX_H 7 | 8 | #include "c_ui_element.h" 9 | 10 | class c_ui_listbox : public c_ui_element { 11 | public: 12 | void setup(std::string n) override; 13 | void setup(std::string n, int* v); 14 | void draw(c_ui_window* wnd) override; 15 | 16 | e_element_type get_type() override { return ELEMENT_TYPE_CONTROL; } 17 | e_control_type get_control_type() override { return CONTROL_LISTBOX; } 18 | 19 | void add(const std::string& t) { dd_elements.push_back(t); } 20 | void remove(const std::string& t) { dd_elements.erase(std::find(dd_elements.begin(), dd_elements.end(), t)); } 21 | void remove_all() { dd_elements.clear(); } 22 | int count() { return dd_elements.size(); } 23 | 24 | int get_value() { return val ? *val : 0; } 25 | void set_value(int v) { if (val) *val = v; } 26 | 27 | void set_var(int* v) { val = v; } 28 | 29 | private: 30 | int* val = nullptr; 31 | 32 | float scroll = 0.f; 33 | 34 | std::vector dd_elements; 35 | }; 36 | 37 | 38 | #endif //uc-sflying-MENU_C_UI_LISTBOX_H 39 | -------------------------------------------------------------------------------- /ui/ui/c_ui_multiselect.h: -------------------------------------------------------------------------------- 1 | // 2 | // Created by ruppet on 23.01.2020. 3 | // 4 | 5 | #ifndef uc-sflying-MENU_C_UI_MULTISELECT_H 6 | #define uc-sflying-MENU_C_UI_MULTISELECT_H 7 | 8 | #include "c_ui_element.h" 9 | 10 | class c_ui_multiselect : public c_ui_element { 11 | public: 12 | void setup(std::string n) override; 13 | void setup(std::string n, bool* v); 14 | void draw(c_ui_window* wnd) override; 15 | 16 | e_element_type get_type() override { return ELEMENT_TYPE_CONTROL; } 17 | e_control_type get_control_type() override { return CONTROL_MULTISELECT; } 18 | 19 | void add(const std::string& t) { dd_elements.push_back(t); } 20 | void remove(const std::string& t) { dd_elements.erase(std::find(dd_elements.begin(), dd_elements.end(), t)); } 21 | void remove_all() { dd_elements.clear(); } 22 | int count() { return dd_elements.size(); } 23 | 24 | bool get_value(int i) { return val ? val[i] : false; } 25 | void set_value(int i, bool v) { if (val) val[i] = v; } 26 | 27 | void set_var(bool* v) { val = v; } 28 | 29 | std::vector dd_elements; 30 | private: 31 | bool* val = nullptr; 32 | 33 | ImColor outline; 34 | bool applied = false; 35 | bool clear = false; 36 | }; 37 | 38 | 39 | #endif //uc-sflying-MENU_C_UI_MULTISELECT_H 40 | -------------------------------------------------------------------------------- /ui/ui/c_ui_products.h: -------------------------------------------------------------------------------- 1 | // 2 | // Created by ruppet on 2/5/2020. 3 | // 4 | 5 | #ifndef uc-sflying-LOADER_C_UI_PRODUCTS_H 6 | #define uc-sflying-LOADER_C_UI_PRODUCTS_H 7 | 8 | #include "c_ui_element.h" 9 | #include "../../core/subscription.h" 10 | 11 | class c_ui_products : public c_ui_element { 12 | public: 13 | void setup(std::string n) override; 14 | void setup(std::string n, int* v, IDirect3DDevice9* device); 15 | void draw(c_ui_window* wnd) override; 16 | 17 | e_element_type get_type() override { return ELEMENT_TYPE_CONTROL; } 18 | e_control_type get_control_type() override { return CONTROL_LISTBOX; } 19 | 20 | void add(const c_subscription& t) { dd_elements.push_back(t); } 21 | void remove_all() { dd_elements.clear(); } 22 | int count() { return dd_elements.size(); } 23 | 24 | int get_value() { return val ? *val : 0; } 25 | void set_value(int v) { if (val) *val = v; } 26 | 27 | void set_var(int* v) { val = v; } 28 | 29 | private: 30 | int* val = nullptr; 31 | 32 | float scroll = 0.f; 33 | 34 | std::vector dd_elements; 35 | std::unordered_map icons; 36 | }; 37 | 38 | 39 | #endif //uc-sflying-LOADER_C_UI_PRODUCTS_H 40 | -------------------------------------------------------------------------------- /ui/ui/c_ui_slider_float.h: -------------------------------------------------------------------------------- 1 | // 2 | // Created by ruppet on 22.01.2020. 3 | // 4 | 5 | #ifndef uc-sflying-MENU_C_UI_SLIDER_FLOAT_H 6 | #define uc-sflying-MENU_C_UI_SLIDER_FLOAT_H 7 | 8 | #include "c_ui_element.h" 9 | class c_ui_slider_float : public c_ui_element { 10 | public: 11 | void setup(std::string name) override; 12 | void setup(std::string name, float* v, float min, float max, std::string fmt = "%.1f"); 13 | void draw(c_ui_window* wnd) override; 14 | 15 | void set_pm_active(bool b) { pm = b; } 16 | bool get_pm_active() { return pm; } 17 | 18 | e_element_type get_type() override { return ELEMENT_TYPE_CONTROL; } 19 | e_control_type get_control_type() override { return CONTROL_SLIDER_FLOAT; } 20 | 21 | void set_format(std::string f) { fmt = std::move(f); } 22 | std::string get_format() { return fmt; } 23 | 24 | float get_value() { return val ? *val : 0; } 25 | void set_value(float v) { if (val) *val = v; } 26 | 27 | void set_var(float* v) { val = v; } 28 | 29 | private: 30 | float* val = nullptr; 31 | float min = 0; 32 | float max = 100; 33 | 34 | std::string fmt = "%d"; 35 | 36 | bool applied = false; 37 | bool pm = false; 38 | 39 | ImColor outline; 40 | 41 | ImGuiID minus; 42 | ImGuiID plus; 43 | }; 44 | 45 | 46 | #endif //uc-sflying-MENU_C_UI_SLIDER_FLOAT_H 47 | -------------------------------------------------------------------------------- /ui/ui/c_ui_slider_int.h: -------------------------------------------------------------------------------- 1 | // 2 | // Created by ruppet on 22.01.2020. 3 | // 4 | 5 | #ifndef uc-sflying-MENU_C_UI_SLIDER_INT_H 6 | #define uc-sflying-MENU_C_UI_SLIDER_INT_H 7 | 8 | #include "c_ui_element.h" 9 | class c_ui_slider_int : public c_ui_element { 10 | public: 11 | void setup(std::string name) override; 12 | void setup(std::string name, int* v, int min, int max, std::string fmt = "%d"); 13 | void draw(c_ui_window* wnd) override; 14 | 15 | void set_pm_active(bool b) { pm = b; } 16 | bool get_pm_active() { return pm; } 17 | 18 | void set_format(std::string f) { fmt = std::move(f); } 19 | std::string get_format() { return fmt; } 20 | 21 | e_element_type get_type() override { return ELEMENT_TYPE_CONTROL; } 22 | e_control_type get_control_type() override { return CONTROL_SLIDER_INT; } 23 | 24 | int get_value() { return val ? *val : 0; } 25 | void set_value(int v) { if (val) *val = v; } 26 | 27 | void set_var(int* v) { val = v; } 28 | 29 | private: 30 | int* val = nullptr; 31 | int min = 0; 32 | int max = 100; 33 | 34 | std::string fmt = "%d"; 35 | 36 | bool applied = false; 37 | bool pm = false; 38 | 39 | ImColor outline; 40 | 41 | ImGuiID minus; 42 | ImGuiID plus; 43 | }; 44 | 45 | 46 | #endif //uc-sflying-MENU_C_UI_SLIDER_INT_H 47 | -------------------------------------------------------------------------------- /ui/ui/c_ui_spinner.h: -------------------------------------------------------------------------------- 1 | // 2 | // Created by ruppet on 2/4/2020. 3 | // 4 | 5 | #ifndef uc-sflying-LOADER_C_UI_SPINNER_H 6 | #define uc-sflying-LOADER_C_UI_SPINNER_H 7 | 8 | #include "c_ui_element.h" 9 | 10 | class IDirect3DTexture9; 11 | 12 | class c_ui_spinner : public c_ui_element { 13 | public: 14 | void setup(std::string name) override {} 15 | void setup(std::string name, IDirect3DDevice9* device); 16 | void draw(c_ui_window* wnd) override; 17 | 18 | e_element_type get_type() override { return ELEMENT_TYPE_CONTROL; } 19 | e_control_type get_control_type() override { return CONTROL_SPINNER; } 20 | 21 | private: 22 | IDirect3DTexture9* spinners[8] = {0}; 23 | 24 | int spinner = 0; 25 | 26 | float time = 0.f; 27 | float lasttime = 0.f; 28 | }; 29 | 30 | 31 | #endif //uc-sflying-LOADER_C_UI_SPINNER_H 32 | -------------------------------------------------------------------------------- /ui/ui/c_ui_tab.h: -------------------------------------------------------------------------------- 1 | // 2 | // Created by ruppet on 21.01.2020. 3 | // 4 | 5 | #ifndef uc-sflying-MENU_C_UI_TAB_H 6 | #define uc-sflying-MENU_C_UI_TAB_H 7 | 8 | #include "c_ui_element.h" 9 | 10 | class c_ui_tab : public c_ui_element { 11 | public: 12 | void setup(std::string name) override; 13 | void draw(c_ui_window* wnd) override; 14 | 15 | void set_tab(int i, int m) { tab_id = i; tab_max = m; } 16 | 17 | e_element_type get_type() override { return ELEMENT_TYPE_CONTAINER; } 18 | bool is_tab() override { return true; } 19 | 20 | private: 21 | int tab_id = 0; 22 | int tab_max = 0; 23 | 24 | bool set_color = false; 25 | 26 | float height = 0.f; 27 | ImColor text_color; 28 | }; 29 | 30 | 31 | #endif //uc-sflying-MENU_C_UI_TAB_H 32 | -------------------------------------------------------------------------------- /ui/ui/c_ui_textbox.h: -------------------------------------------------------------------------------- 1 | // 2 | // Created by ruppet on 23.01.2020. 3 | // 4 | 5 | #ifndef uc-sflying-MENU_C_UI_TEXTBOX_H 6 | #define uc-sflying-MENU_C_UI_TEXTBOX_H 7 | 8 | #include "c_ui_element.h" 9 | 10 | class c_ui_textbox : public c_ui_element { 11 | public: 12 | void setup(std::string n) override { setup(n, nullptr, 0); } 13 | void setup(std::string n, std::string* v, int m); 14 | void draw(c_ui_window* wnd) override; 15 | 16 | e_element_type get_type() override { return ELEMENT_TYPE_CONTROL; } 17 | e_control_type get_control_type() override { return CONTROL_TEXTBOX; } 18 | 19 | void set_password(bool v) { is_password = v; } 20 | bool get_password() { return is_password; } 21 | 22 | std::string get_value() { return val ? *val : ""; } 23 | void set_value(std::string v) { if (val) *val = std::move(v); } 24 | 25 | void set_var(std::string* v) { val = v; } 26 | 27 | private: 28 | std::string* val = nullptr; 29 | int max = 0; 30 | 31 | ImColor outline; 32 | bool applied = false; 33 | bool is_password = false; 34 | }; 35 | 36 | 37 | #endif //uc-sflying-MENU_C_UI_TEXTBOX_H 38 | -------------------------------------------------------------------------------- /ui/ui/c_ui_window.h: -------------------------------------------------------------------------------- 1 | // 2 | // Created by ruppet on 21.01.2020. 3 | // 4 | 5 | #ifndef uc-sflying-MENU_C_UI_WINDOW_H 6 | #define uc-sflying-MENU_C_UI_WINDOW_H 7 | 8 | #include 9 | #include "../imgui.h" 10 | 11 | class c_ui; 12 | class c_ui_element; 13 | 14 | class c_ui_window { 15 | public: 16 | void setup(std::string name); 17 | void draw(); 18 | 19 | void set_active(bool b) { is_active = b; } 20 | bool get_active() { return is_active; } 21 | 22 | void set_name(std::string n) { name = std::move(n); } 23 | std::string get_name() { return name; } 24 | 25 | void set_pos(ImVec2 p) { pos = p; } 26 | ImVec2 get_pos() { return pos; } 27 | 28 | void set_size(ImVec2 s) { size = s; } 29 | ImVec2 get_size() { return size; } 30 | 31 | void set_parent(c_ui* ui); 32 | c_ui* get_parent() { return parent; } 33 | 34 | void add(c_ui_element* e) { elements.push_back(e); } 35 | c_ui_element* find(const std::string& name); 36 | c_ui_element* find(const std::string& name, const std::string& group); 37 | c_ui_element* find(const std::string& tab, const std::string& group, const std::string& name); 38 | 39 | std::vector elements; 40 | 41 | private: 42 | c_ui* parent = nullptr; 43 | 44 | bool is_active = false; 45 | bool is_movable = false; 46 | std::string name; 47 | 48 | ImVec2 pos; 49 | ImVec2 size; 50 | 51 | ImRect cb_rect; 52 | 53 | ImGuiID id; 54 | ImGuiID cb_id; 55 | }; 56 | 57 | 58 | #endif //uc-sflying-MENU_C_UI_WINDOW_H 59 | -------------------------------------------------------------------------------- /ui/ui/ui.rar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flying1337/csgo-project/72dc1362646309931bab72fef8535b0d40d383a5/ui/ui/ui.rar --------------------------------------------------------------------------------