├── .gitattributes ├── .gitignore ├── Accelerator ├── Accelerator.sln ├── Accelerator │ ├── Accelerator.cpp │ ├── Accelerator.h │ ├── Accelerator.vcxproj │ ├── Accelerator.vcxproj.filters │ ├── detours.h │ ├── detours.lib │ ├── detver.h │ ├── drawtext.cpp │ ├── drawtext.h │ ├── dxsdk │ │ ├── Include │ │ │ ├── D3D10.h │ │ │ ├── D3D10effect.h │ │ │ ├── D3D10shader.h │ │ │ ├── D3DX10.h │ │ │ ├── D3DX10core.h │ │ │ ├── D3DX10math.h │ │ │ ├── D3DX10math.inl │ │ │ ├── D3DX10mesh.h │ │ │ ├── D3DX10tex.h │ │ │ ├── DXGI.h │ │ │ ├── DXGIType.h │ │ │ ├── DxErr.h │ │ │ ├── OneNote 目录.onetoc2 │ │ │ ├── PIXPlugin.h │ │ │ ├── X3DAudio.h │ │ │ ├── XInput.h │ │ │ ├── comdecl.h │ │ │ ├── d3d.h │ │ │ ├── d3d10misc.h │ │ │ ├── d3d10sdklayers.h │ │ │ ├── d3d8.h │ │ │ ├── d3d8caps.h │ │ │ ├── d3d8types.h │ │ │ ├── d3d9.h │ │ │ ├── d3d9caps.h │ │ │ ├── d3d9types.h │ │ │ ├── d3dcaps.h │ │ │ ├── d3drm.h │ │ │ ├── d3drmdef.h │ │ │ ├── d3drmobj.h │ │ │ ├── d3drmwin.h │ │ │ ├── d3dtypes.h │ │ │ ├── d3dvec.inl │ │ │ ├── d3dx10async.h │ │ │ ├── d3dx9.h │ │ │ ├── d3dx9anim.h │ │ │ ├── d3dx9core.h │ │ │ ├── d3dx9effect.h │ │ │ ├── d3dx9math.h │ │ │ ├── d3dx9math.inl │ │ │ ├── d3dx9mesh.h │ │ │ ├── d3dx9shader.h │ │ │ ├── d3dx9shape.h │ │ │ ├── d3dx9tex.h │ │ │ ├── d3dx9xof.h │ │ │ ├── ddraw.h │ │ │ ├── dinput.h │ │ │ ├── dinputd.h │ │ │ ├── dls1.h │ │ │ ├── dls2.h │ │ │ ├── dmdls.h │ │ │ ├── dmerror.h │ │ │ ├── dmksctrl.h │ │ │ ├── dmplugin.h │ │ │ ├── dmusbuff.h │ │ │ ├── dmusicc.h │ │ │ ├── dmusicf.h │ │ │ ├── dmusici.h │ │ │ ├── dmusics.h │ │ │ ├── dpaddr.h │ │ │ ├── dplay.h │ │ │ ├── dplay8.h │ │ │ ├── dplobby.h │ │ │ ├── dplobby8.h │ │ │ ├── dpnathlp.h │ │ │ ├── dsconf.h │ │ │ ├── dsetup.h │ │ │ ├── dsound.h │ │ │ ├── dvoice.h │ │ │ ├── dvp.h │ │ │ ├── dx7todx8.h │ │ │ ├── dxdiag.h │ │ │ ├── dxerr8.h │ │ │ ├── dxerr9.h │ │ │ ├── dxfile.h │ │ │ ├── dxsdkver.h │ │ │ ├── dxtrans.h │ │ │ ├── gameux.h │ │ │ ├── multimon.h │ │ │ ├── rmxfguid.h │ │ │ ├── rmxftmpl.h │ │ │ ├── strsafe.h │ │ │ ├── xact.h │ │ │ ├── xact2wb.h │ │ │ └── xact3d.h │ │ └── Lib │ │ │ └── x86 │ │ │ ├── DxErr.lib │ │ │ ├── DxErr8.lib │ │ │ ├── DxErr9.lib │ │ │ ├── X3DAudio.lib │ │ │ ├── XInput.lib │ │ │ ├── d3d10.lib │ │ │ ├── d3d8.lib │ │ │ ├── d3d9.lib │ │ │ ├── d3dx10.lib │ │ │ ├── d3dx10d.lib │ │ │ ├── d3dx9.lib │ │ │ ├── d3dx9d.lib │ │ │ ├── d3dx9d_beta.lib │ │ │ ├── d3dxof.lib │ │ │ ├── ddraw.lib │ │ │ ├── dinput.lib │ │ │ ├── dinput8.lib │ │ │ ├── dplayx.lib │ │ │ ├── dsetup.lib │ │ │ ├── dsound.lib │ │ │ ├── dxgi.lib │ │ │ ├── dxguid.lib │ │ │ └── dxtrans.lib │ ├── ftsdk │ │ ├── include │ │ │ ├── PaxHeaders.3009 │ │ │ │ ├── config │ │ │ │ ├── freetype.h │ │ │ │ ├── ft2build.h │ │ │ │ ├── ftadvanc.h │ │ │ │ ├── ftautoh.h │ │ │ │ ├── ftbbox.h │ │ │ │ ├── ftbdf.h │ │ │ │ ├── ftbitmap.h │ │ │ │ ├── ftbzip2.h │ │ │ │ ├── ftcache.h │ │ │ │ ├── ftcffdrv.h │ │ │ │ ├── ftchapters.h │ │ │ │ ├── ftcid.h │ │ │ │ ├── fterrdef.h │ │ │ │ ├── fterrors.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 │ │ │ │ ├── ftpfr.h │ │ │ │ ├── ftrender.h │ │ │ │ ├── ftsizes.h │ │ │ │ ├── ftsnames.h │ │ │ │ ├── ftstroke.h │ │ │ │ ├── ftsynth.h │ │ │ │ ├── ftsystem.h │ │ │ │ ├── fttrigon.h │ │ │ │ ├── ftttdrv.h │ │ │ │ ├── fttypes.h │ │ │ │ ├── ftwinfnt.h │ │ │ │ ├── ftxf86.h │ │ │ │ ├── internal │ │ │ │ ├── t1tables.h │ │ │ │ ├── ttnameid.h │ │ │ │ ├── tttables.h │ │ │ │ ├── tttags.h │ │ │ │ └── ttunpat.h │ │ │ ├── config │ │ │ │ ├── PaxHeaders.3009 │ │ │ │ │ ├── ftconfig.h │ │ │ │ │ ├── ftheader.h │ │ │ │ │ ├── ftmodule.h │ │ │ │ │ ├── ftoption.h │ │ │ │ │ └── ftstdlib.h │ │ │ │ ├── ftconfig.h │ │ │ │ ├── ftheader.h │ │ │ │ ├── ftmodule.h │ │ │ │ ├── ftoption.h │ │ │ │ └── ftstdlib.h │ │ │ ├── freetype.h │ │ │ ├── ft2build.h │ │ │ ├── ftadvanc.h │ │ │ ├── ftautoh.h │ │ │ ├── ftbbox.h │ │ │ ├── ftbdf.h │ │ │ ├── ftbitmap.h │ │ │ ├── ftbzip2.h │ │ │ ├── ftcache.h │ │ │ ├── ftcffdrv.h │ │ │ ├── ftchapters.h │ │ │ ├── ftcid.h │ │ │ ├── fterrdef.h │ │ │ ├── fterrors.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 │ │ │ ├── ftpfr.h │ │ │ ├── ftrender.h │ │ │ ├── ftsizes.h │ │ │ ├── ftsnames.h │ │ │ ├── ftstroke.h │ │ │ ├── ftsynth.h │ │ │ ├── ftsystem.h │ │ │ ├── fttrigon.h │ │ │ ├── ftttdrv.h │ │ │ ├── fttypes.h │ │ │ ├── ftwinfnt.h │ │ │ ├── ftxf86.h │ │ │ ├── internal │ │ │ │ ├── PaxHeaders.3009 │ │ │ │ │ ├── autohint.h │ │ │ │ │ ├── ftcalc.h │ │ │ │ │ ├── ftdebug.h │ │ │ │ │ ├── ftdriver.h │ │ │ │ │ ├── ftgloadr.h │ │ │ │ │ ├── ftmemory.h │ │ │ │ │ ├── ftobjs.h │ │ │ │ │ ├── ftpic.h │ │ │ │ │ ├── ftrfork.h │ │ │ │ │ ├── ftserv.h │ │ │ │ │ ├── ftstream.h │ │ │ │ │ ├── fttrace.h │ │ │ │ │ ├── ftvalid.h │ │ │ │ │ ├── internal.h │ │ │ │ │ ├── psaux.h │ │ │ │ │ ├── pshints.h │ │ │ │ │ ├── services │ │ │ │ │ ├── sfnt.h │ │ │ │ │ ├── t1types.h │ │ │ │ │ └── tttypes.h │ │ │ │ ├── autohint.h │ │ │ │ ├── ftcalc.h │ │ │ │ ├── ftdebug.h │ │ │ │ ├── ftdriver.h │ │ │ │ ├── ftgloadr.h │ │ │ │ ├── ftmemory.h │ │ │ │ ├── ftobjs.h │ │ │ │ ├── ftpic.h │ │ │ │ ├── ftrfork.h │ │ │ │ ├── ftserv.h │ │ │ │ ├── ftstream.h │ │ │ │ ├── fttrace.h │ │ │ │ ├── ftvalid.h │ │ │ │ ├── internal.h │ │ │ │ ├── psaux.h │ │ │ │ ├── pshints.h │ │ │ │ ├── services │ │ │ │ │ ├── PaxHeaders.3009 │ │ │ │ │ │ ├── svbdf.h │ │ │ │ │ │ ├── svcid.h │ │ │ │ │ │ ├── svgldict.h │ │ │ │ │ │ ├── svgxval.h │ │ │ │ │ │ ├── svkern.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 │ │ │ │ │ │ └── svxf86nm.h │ │ │ │ │ ├── svbdf.h │ │ │ │ │ ├── svcid.h │ │ │ │ │ ├── svgldict.h │ │ │ │ │ ├── svgxval.h │ │ │ │ │ ├── svkern.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 │ │ │ │ │ └── svxf86nm.h │ │ │ │ ├── sfnt.h │ │ │ │ ├── t1types.h │ │ │ │ └── tttypes.h │ │ │ ├── t1tables.h │ │ │ ├── ttnameid.h │ │ │ ├── tttables.h │ │ │ ├── tttags.h │ │ │ └── ttunpat.h │ │ └── lib │ │ │ └── freetype.lib │ ├── libpng16.lib │ ├── png.h │ ├── pngconf.h │ ├── pngfile.cpp │ ├── pngfile.h │ ├── pnglibconf.h │ ├── replacemap.cpp │ ├── replacemap.h │ ├── scriptparser.cpp │ ├── scriptparser.h │ ├── tools.cpp │ ├── tools.h │ ├── translate.cpp │ ├── translate.h │ ├── types.h │ ├── zconf.h │ ├── zlib.h │ └── zlib.lib ├── GameInfo.txt ├── ImportText │ ├── ImportText.py │ └── ImportTextByOffset.py └── Readme.txt ├── Misaka ├── DumpFile │ ├── DumpFile.cpp │ ├── DumpFile.vcxproj │ ├── DumpFile.vcxproj.filters │ ├── ReadMe.txt │ ├── detours.h │ ├── detours.lib │ ├── detver.h │ ├── dllmain.cpp │ ├── stdafx.cpp │ ├── stdafx.h │ ├── targetver.h │ ├── zconf.h │ ├── zlib.h │ └── zlib.lib ├── GameInfo.txt ├── Misaka.sln ├── Misaka │ ├── Misaka.cpp │ ├── Misaka.vcxproj │ ├── Misaka.vcxproj.filters │ ├── ReadMe.txt │ ├── detours.h │ ├── detours.lib │ ├── detver.h │ ├── dllmain.cpp │ ├── stdafx.cpp │ ├── stdafx.h │ ├── targetver.h │ ├── zconf.h │ ├── zlib.h │ └── zlib.lib ├── Readme.txt └── YukaPack.py └── Readme.txt /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | 4 | # Custom for Visual Studio 5 | *.cs diff=csharp 6 | *.sln merge=union 7 | *.csproj merge=union 8 | *.vbproj merge=union 9 | *.fsproj merge=union 10 | *.dbproj merge=union 11 | 12 | # Standard to msysgit 13 | *.doc diff=astextplain 14 | *.DOC diff=astextplain 15 | *.docx diff=astextplain 16 | *.DOCX diff=astextplain 17 | *.dot diff=astextplain 18 | *.DOT diff=astextplain 19 | *.pdf diff=astextplain 20 | *.PDF diff=astextplain 21 | *.rtf diff=astextplain 22 | *.RTF diff=astextplain 23 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | ################# 2 | ## Eclipse 3 | ################# 4 | 5 | *.pydevproject 6 | .project 7 | .metadata 8 | bin/ 9 | tmp/ 10 | *.tmp 11 | *.bak 12 | *.swp 13 | *~.nib 14 | local.properties 15 | .classpath 16 | .settings/ 17 | .loadpath 18 | 19 | # External tool builders 20 | .externalToolBuilders/ 21 | 22 | # Locally stored "Eclipse launch configurations" 23 | *.launch 24 | 25 | # CDT-specific 26 | .cproject 27 | 28 | # PDT-specific 29 | .buildpath 30 | 31 | 32 | ################# 33 | ## Visual Studio 34 | ################# 35 | 36 | ## Ignore Visual Studio temporary files, build results, and 37 | ## files generated by popular Visual Studio add-ons. 38 | 39 | # User-specific files 40 | *.suo 41 | *.user 42 | *.sln.docstates 43 | 44 | # Build results 45 | 46 | [Dd]ebug/ 47 | [Rr]elease/ 48 | x64/ 49 | build/ 50 | [Bb]in/ 51 | [Oo]bj/ 52 | 53 | # MSTest test Results 54 | [Tt]est[Rr]esult*/ 55 | [Bb]uild[Ll]og.* 56 | 57 | *_i.c 58 | *_p.c 59 | *.ilk 60 | *.meta 61 | *.obj 62 | *.pch 63 | *.pdb 64 | *.pgc 65 | *.pgd 66 | *.rsp 67 | *.sbr 68 | *.tlb 69 | *.tli 70 | *.tlh 71 | *.tmp 72 | *.tmp_proj 73 | *.log 74 | *.vspscc 75 | *.vssscc 76 | .builds 77 | *.pidb 78 | *.log 79 | *.scc 80 | 81 | # Visual C++ cache files 82 | ipch/ 83 | *.aps 84 | *.ncb 85 | *.opensdf 86 | *.sdf 87 | *.cachefile 88 | 89 | # Visual Studio profiler 90 | *.psess 91 | *.vsp 92 | *.vspx 93 | 94 | # Guidance Automation Toolkit 95 | *.gpState 96 | 97 | # ReSharper is a .NET coding add-in 98 | _ReSharper*/ 99 | *.[Rr]e[Ss]harper 100 | 101 | # TeamCity is a build add-in 102 | _TeamCity* 103 | 104 | # DotCover is a Code Coverage Tool 105 | *.dotCover 106 | 107 | # NCrunch 108 | *.ncrunch* 109 | .*crunch*.local.xml 110 | 111 | # Installshield output folder 112 | [Ee]xpress/ 113 | 114 | # DocProject is a documentation generator add-in 115 | DocProject/buildhelp/ 116 | DocProject/Help/*.HxT 117 | DocProject/Help/*.HxC 118 | DocProject/Help/*.hhc 119 | DocProject/Help/*.hhk 120 | DocProject/Help/*.hhp 121 | DocProject/Help/Html2 122 | DocProject/Help/html 123 | 124 | # Click-Once directory 125 | publish/ 126 | 127 | # Publish Web Output 128 | *.Publish.xml 129 | *.pubxml 130 | 131 | # NuGet Packages Directory 132 | ## TODO: If you have NuGet Package Restore enabled, uncomment the next line 133 | #packages/ 134 | 135 | # Windows Azure Build Output 136 | csx 137 | *.build.csdef 138 | 139 | # Windows Store app package directory 140 | AppPackages/ 141 | 142 | # Others 143 | sql/ 144 | *.Cache 145 | ClientBin/ 146 | [Ss]tyle[Cc]op.* 147 | ~$* 148 | *~ 149 | *.dbmdl 150 | *.[Pp]ublish.xml 151 | *.pfx 152 | *.publishsettings 153 | 154 | # RIA/Silverlight projects 155 | Generated_Code/ 156 | 157 | # Backup & report files from converting an old project file to a newer 158 | # Visual Studio version. Backup files are not needed, because we have git ;-) 159 | _UpgradeReport_Files/ 160 | Backup*/ 161 | UpgradeLog*.XML 162 | UpgradeLog*.htm 163 | 164 | # SQL Server files 165 | App_Data/*.mdf 166 | App_Data/*.ldf 167 | 168 | ############# 169 | ## Windows detritus 170 | ############# 171 | 172 | # Windows image file caches 173 | Thumbs.db 174 | ehthumbs.db 175 | 176 | # Folder config file 177 | Desktop.ini 178 | 179 | # Recycle Bin used on file shares 180 | $RECYCLE.BIN/ 181 | 182 | # Mac crap 183 | .DS_Store 184 | 185 | 186 | ############# 187 | ## Python 188 | ############# 189 | 190 | *.py[co] 191 | 192 | # Packages 193 | *.egg 194 | *.egg-info 195 | dist/ 196 | build/ 197 | eggs/ 198 | parts/ 199 | var/ 200 | sdist/ 201 | develop-eggs/ 202 | .installed.cfg 203 | 204 | # Installer logs 205 | pip-log.txt 206 | 207 | # Unit test / coverage reports 208 | .coverage 209 | .tox 210 | 211 | #Translations 212 | *.mo 213 | 214 | #Mr Developer 215 | .mr.developer.cfg 216 | -------------------------------------------------------------------------------- /Accelerator/Accelerator.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 2013 4 | VisualStudioVersion = 12.0.21005.1 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Accelerator", "Accelerator\Accelerator.vcxproj", "{5568391D-B3E5-480D-860C-A997138F3C00}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Win32 = Debug|Win32 11 | Release|Win32 = Release|Win32 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {5568391D-B3E5-480D-860C-A997138F3C00}.Debug|Win32.ActiveCfg = Debug|Win32 15 | {5568391D-B3E5-480D-860C-A997138F3C00}.Debug|Win32.Build.0 = Debug|Win32 16 | {5568391D-B3E5-480D-860C-A997138F3C00}.Release|Win32.ActiveCfg = Release|Win32 17 | {5568391D-B3E5-480D-860C-A997138F3C00}.Release|Win32.Build.0 = Release|Win32 18 | EndGlobalSection 19 | GlobalSection(SolutionProperties) = preSolution 20 | HideSolutionNode = FALSE 21 | EndGlobalSection 22 | EndGlobal 23 | -------------------------------------------------------------------------------- /Accelerator/Accelerator/Accelerator.h: -------------------------------------------------------------------------------- 1 | /******************************************************************************\ 2 | * Copyright (C) 2014 Fuyin 3 | * ALL RIGHTS RESERVED 4 | * Author: Fuyin 5 | * Description: 6 | \******************************************************************************/ 7 | 8 | #ifndef ACCELERATOR_H 9 | #define ACCELERATOR_H 10 | 11 | #include 12 | #include 13 | 14 | #include "detours.h" 15 | #include "drawtext.h" 16 | #include "tools.h" 17 | #include "translate.h" 18 | #include "scriptparser.h" 19 | 20 | #include "pngfile.h" 21 | #include "replacemap.h" 22 | 23 | #endif -------------------------------------------------------------------------------- /Accelerator/Accelerator/Accelerator.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | 头文件 20 | 21 | 22 | 头文件 23 | 24 | 25 | 头文件 26 | 27 | 28 | 头文件 29 | 30 | 31 | 头文件 32 | 33 | 34 | 头文件 35 | 36 | 37 | 头文件 38 | 39 | 40 | 头文件 41 | 42 | 43 | 头文件 44 | 45 | 46 | 头文件 47 | 48 | 49 | 头文件 50 | 51 | 52 | 头文件 53 | 54 | 55 | 56 | 57 | 资源文件 58 | 59 | 60 | 资源文件 61 | 62 | 63 | 资源文件 64 | 65 | 66 | 67 | 68 | 源文件 69 | 70 | 71 | 源文件 72 | 73 | 74 | 源文件 75 | 76 | 77 | 源文件 78 | 79 | 80 | 源文件 81 | 82 | 83 | 源文件 84 | 85 | 86 | -------------------------------------------------------------------------------- /Accelerator/Accelerator/detours.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Inori/Accelerator/ad1df0ee349dc626bafa0a94b549619a18d1762d/Accelerator/Accelerator/detours.lib -------------------------------------------------------------------------------- /Accelerator/Accelerator/detver.h: -------------------------------------------------------------------------------- 1 | ////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // Common version parameters. 4 | // 5 | // Microsoft Research Detours Package, Version 3.0 Build_316. 6 | // 7 | // Copyright (c) Microsoft Corporation. All rights reserved. 8 | // 9 | 10 | #ifndef DETOURS_STRINGIFY 11 | #define DETOURS_STRINGIFY(x) DETOURS_STRINGIFY_(x) 12 | #define DETOURS_STRINGIFY_(x) #x 13 | #endif 14 | 15 | #define VER_FILEFLAGSMASK 0x3fL 16 | #define VER_FILEFLAGS 0x0L 17 | #define VER_FILEOS 0x00040004L 18 | #define VER_FILETYPE 0x00000002L 19 | #define VER_FILESUBTYPE 0x00000000L 20 | 21 | #define VER_DETOURS_BITS DETOUR_STRINGIFY(DETOURS_BITS) 22 | -------------------------------------------------------------------------------- /Accelerator/Accelerator/drawtext.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Inori/Accelerator/ad1df0ee349dc626bafa0a94b549619a18d1762d/Accelerator/Accelerator/drawtext.cpp -------------------------------------------------------------------------------- /Accelerator/Accelerator/drawtext.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Inori/Accelerator/ad1df0ee349dc626bafa0a94b549619a18d1762d/Accelerator/Accelerator/drawtext.h -------------------------------------------------------------------------------- /Accelerator/Accelerator/dxsdk/Include/D3DX10.h: -------------------------------------------------------------------------------- 1 | ////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // Copyright (C) Microsoft Corporation. All Rights Reserved. 4 | // 5 | // File: d3dx10.h 6 | // Content: D3DX10 utility library 7 | // 8 | ////////////////////////////////////////////////////////////////////////////// 9 | 10 | #ifdef __D3DX10_INTERNAL__ 11 | #error Incorrect D3DX10 header used 12 | #endif 13 | 14 | #ifndef __D3DX10_H__ 15 | #define __D3DX10_H__ 16 | 17 | 18 | // Defines 19 | #include 20 | #include 21 | 22 | #define D3DX10_DEFAULT ((UINT) -1) 23 | #define D3DX10_FROM_FILE ((UINT) -3) 24 | #define DXGI_FORMAT_FROM_FILE ((DXGI_FORMAT) -3) 25 | 26 | #ifndef D3DX10INLINE 27 | #ifdef _MSC_VER 28 | #if (_MSC_VER >= 1200) 29 | #define D3DX10INLINE __forceinline 30 | #else 31 | #define D3DX10INLINE __inline 32 | #endif 33 | #else 34 | #ifdef __cplusplus 35 | #define D3DX10INLINE inline 36 | #else 37 | #define D3DX10INLINE 38 | #endif 39 | #endif 40 | #endif 41 | 42 | 43 | 44 | // Includes 45 | #include "d3d10.h" 46 | #include "d3dx10.h" 47 | #include "d3dx10math.h" 48 | #include "d3dx10core.h" 49 | #include "d3dx10tex.h" 50 | #include "d3dx10mesh.h" 51 | #include "d3dx10async.h" 52 | 53 | 54 | // Errors 55 | #define _FACDD 0x876 56 | #define MAKE_DDHRESULT( code ) MAKE_HRESULT( 1, _FACDD, code ) 57 | 58 | enum _D3DX10_ERR { 59 | D3DX10_ERR_CANNOT_MODIFY_INDEX_BUFFER = MAKE_DDHRESULT(2900), 60 | D3DX10_ERR_INVALID_MESH = MAKE_DDHRESULT(2901), 61 | D3DX10_ERR_CANNOT_ATTR_SORT = MAKE_DDHRESULT(2902), 62 | D3DX10_ERR_SKINNING_NOT_SUPPORTED = MAKE_DDHRESULT(2903), 63 | D3DX10_ERR_TOO_MANY_INFLUENCES = MAKE_DDHRESULT(2904), 64 | D3DX10_ERR_INVALID_DATA = MAKE_DDHRESULT(2905), 65 | D3DX10_ERR_LOADED_MESH_HAS_NO_DATA = MAKE_DDHRESULT(2906), 66 | D3DX10_ERR_DUPLICATE_NAMED_FRAGMENT = MAKE_DDHRESULT(2907), 67 | D3DX10_ERR_CANNOT_REMOVE_LAST_ITEM = MAKE_DDHRESULT(2908), 68 | }; 69 | 70 | 71 | #endif //__D3DX10_H__ 72 | 73 | -------------------------------------------------------------------------------- /Accelerator/Accelerator/dxsdk/Include/DxErr.h: -------------------------------------------------------------------------------- 1 | /*==========================================================================; 2 | * 3 | * 4 | * File: dxerr.h 5 | * Content: DirectX Error Library Include File 6 | * 7 | ****************************************************************************/ 8 | 9 | #ifndef _DXERR_H_ 10 | #define _DXERR_H_ 11 | 12 | #ifdef __cplusplus 13 | extern "C" { 14 | #endif //__cplusplus 15 | 16 | // 17 | // DXGetErrorString 18 | // 19 | // Desc: Converts a DirectX HRESULT to a string 20 | // 21 | // Args: HRESULT hr Can be any error code from 22 | // XACT D3D10 D3DX10 D3D9 D3DX9 D3D8 D3DX8 DDRAW DPLAY8 DMUSIC DSOUND DINPUT DSHOW 23 | // 24 | // Return: Converted string 25 | // 26 | const char* WINAPI DXGetErrorStringA(HRESULT hr); 27 | const WCHAR* WINAPI DXGetErrorStringW(HRESULT hr); 28 | 29 | #ifdef UNICODE 30 | #define DXGetErrorString DXGetErrorStringW 31 | #else 32 | #define DXGetErrorString DXGetErrorStringA 33 | #endif 34 | 35 | 36 | // 37 | // DXGetErrorDescription 38 | // 39 | // Desc: Returns a string description of a DirectX HRESULT 40 | // 41 | // Args: HRESULT hr Can be any error code from 42 | // XACT D3D10 D3DX10 D3D9 D3DX9 D3D8 D3DX8 DDRAW DPLAY8 DMUSIC DSOUND DINPUT DSHOW 43 | // 44 | // Return: String description 45 | // 46 | const char* WINAPI DXGetErrorDescriptionA(HRESULT hr); 47 | const WCHAR* WINAPI DXGetErrorDescriptionW(HRESULT hr); 48 | 49 | #ifdef UNICODE 50 | #define DXGetErrorDescription DXGetErrorDescriptionW 51 | #else 52 | #define DXGetErrorDescription DXGetErrorDescriptionA 53 | #endif 54 | 55 | 56 | // 57 | // DXTrace 58 | // 59 | // Desc: Outputs a formatted error message to the debug stream 60 | // 61 | // Args: CHAR* strFile The current file, typically passed in using the 62 | // __FILE__ macro. 63 | // DWORD dwLine The current line number, typically passed in using the 64 | // __LINE__ macro. 65 | // HRESULT hr An HRESULT that will be traced to the debug stream. 66 | // CHAR* strMsg A string that will be traced to the debug stream (may be NULL) 67 | // BOOL bPopMsgBox If TRUE, then a message box will popup also containing the passed info. 68 | // 69 | // Return: The hr that was passed in. 70 | // 71 | HRESULT WINAPI DXTraceA( const char* strFile, DWORD dwLine, HRESULT hr, const char* strMsg, BOOL bPopMsgBox ); 72 | HRESULT WINAPI DXTraceW( const char* strFile, DWORD dwLine, HRESULT hr, const WCHAR* strMsg, BOOL bPopMsgBox ); 73 | 74 | #ifdef UNICODE 75 | #define DXTrace DXTraceW 76 | #else 77 | #define DXTrace DXTraceA 78 | #endif 79 | 80 | 81 | // 82 | // Helper macros 83 | // 84 | #if defined(DEBUG) | defined(_DEBUG) 85 | #define DXTRACE_MSG(str) DXTrace( __FILE__, (DWORD)__LINE__, 0, str, FALSE ) 86 | #define DXTRACE_ERR(str,hr) DXTrace( __FILE__, (DWORD)__LINE__, hr, str, FALSE ) 87 | #define DXTRACE_ERR_MSGBOX(str,hr) DXTrace( __FILE__, (DWORD)__LINE__, hr, str, TRUE ) 88 | #else 89 | #define DXTRACE_MSG(str) (0L) 90 | #define DXTRACE_ERR(str,hr) (hr) 91 | #define DXTRACE_ERR_MSGBOX(str,hr) (hr) 92 | #endif 93 | 94 | 95 | #ifdef __cplusplus 96 | } 97 | #endif //__cplusplus 98 | 99 | #endif // _DXERR_H_ 100 | -------------------------------------------------------------------------------- /Accelerator/Accelerator/dxsdk/Include/OneNote 目录.onetoc2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Inori/Accelerator/ad1df0ee349dc626bafa0a94b549619a18d1762d/Accelerator/Accelerator/dxsdk/Include/OneNote 目录.onetoc2 -------------------------------------------------------------------------------- /Accelerator/Accelerator/dxsdk/Include/comdecl.h: -------------------------------------------------------------------------------- 1 | // comdecl.h: Macros to facilitate COM interface and GUID declarations. 2 | // Copyright (c) Microsoft Corporation. All rights reserved. 3 | 4 | #ifndef _COMDECL_H_ 5 | #define _COMDECL_H_ 6 | 7 | #include // For standard COM interface macros 8 | 9 | // The DEFINE_CLSID() and DEFINE_IID() macros defined below allow COM GUIDs to 10 | // be declared and defined in such a way that clients can obtain the GUIDs using 11 | // either the __uuidof() extension or the old-style CLSID_Foo / IID_IFoo names. 12 | // If using the latter approach, the client can also choose whether to get the 13 | // GUID definitions by defining the INITGUID preprocessor constant or by linking 14 | // to a GUID library. This works in either C or C++. 15 | 16 | #ifdef __cplusplus 17 | 18 | #define DECLSPEC_UUID_WRAPPER(x) __declspec(uuid(#x)) 19 | #ifdef INITGUID 20 | 21 | #define DEFINE_CLSID(className, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8) \ 22 | class DECLSPEC_UUID_WRAPPER(l##-##w1##-##w2##-##b1##b2##-##b3##b4##b5##b6##b7##b8) className; \ 23 | EXTERN_C const GUID DECLSPEC_SELECTANY CLSID_##className = __uuidof(className) 24 | 25 | #define DEFINE_IID(interfaceName, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8) \ 26 | interface DECLSPEC_UUID_WRAPPER(l##-##w1##-##w2##-##b1##b2##-##b3##b4##b5##b6##b7##b8) interfaceName; \ 27 | EXTERN_C const GUID DECLSPEC_SELECTANY IID_##interfaceName = __uuidof(interfaceName) 28 | 29 | #else // INITGUID 30 | 31 | #define DEFINE_CLSID(className, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8) \ 32 | class DECLSPEC_UUID_WRAPPER(l##-##w1##-##w2##-##b1##b2##-##b3##b4##b5##b6##b7##b8) className; \ 33 | EXTERN_C const GUID CLSID_##className 34 | 35 | #define DEFINE_IID(interfaceName, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8) \ 36 | interface DECLSPEC_UUID_WRAPPER(l##-##w1##-##w2##-##b1##b2##-##b3##b4##b5##b6##b7##b8) interfaceName; \ 37 | EXTERN_C const GUID IID_##interfaceName 38 | 39 | #endif // INITGUID 40 | 41 | #else // __cplusplus 42 | 43 | #define DEFINE_CLSID(className, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8) \ 44 | DEFINE_GUID(CLSID_##className, 0x##l, 0x##w1, 0x##w2, 0x##b1, 0x##b2, 0x##b3, 0x##b4, 0x##b5, 0x##b6, 0x##b7, 0x##b8) 45 | 46 | #define DEFINE_IID(interfaceName, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8) \ 47 | DEFINE_GUID(IID_##interfaceName, 0x##l, 0x##w1, 0x##w2, 0x##b1, 0x##b2, 0x##b3, 0x##b4, 0x##b5, 0x##b6, 0x##b7, 0x##b8) 48 | 49 | #endif // __cplusplus 50 | 51 | #endif // #ifndef _COMDECL_H_ 52 | -------------------------------------------------------------------------------- /Accelerator/Accelerator/dxsdk/Include/d3d9types.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Inori/Accelerator/ad1df0ee349dc626bafa0a94b549619a18d1762d/Accelerator/Accelerator/dxsdk/Include/d3d9types.h -------------------------------------------------------------------------------- /Accelerator/Accelerator/dxsdk/Include/d3drmwin.h: -------------------------------------------------------------------------------- 1 | /*==========================================================================; 2 | * 3 | * Copyright (c) Microsoft Corporation. All rights reserved. 4 | * 5 | * File: d3drm.h 6 | * Content: Direct3DRM include file 7 | * 8 | ***************************************************************************/ 9 | 10 | #ifndef __D3DRMWIN_H__ 11 | #define __D3DRMWIN_H__ 12 | 13 | #ifndef WIN32 14 | #define WIN32 15 | #endif 16 | 17 | #include "d3drm.h" 18 | 19 | #include "ddraw.h" 20 | #include "d3d.h" 21 | 22 | /* 23 | * GUIDS used by Direct3DRM Windows interface 24 | */ 25 | DEFINE_GUID(IID_IDirect3DRMWinDevice, 0xc5016cc0, 0xd273, 0x11ce, 0xac, 0x48, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1); 26 | 27 | WIN_TYPES(IDirect3DRMWinDevice, DIRECT3DRMWINDEVICE); 28 | 29 | #undef INTERFACE 30 | #define INTERFACE IDirect3DRMWinDevice 31 | 32 | DECLARE_INTERFACE_(IDirect3DRMWinDevice, IDirect3DRMObject) 33 | { 34 | IUNKNOWN_METHODS(PURE); 35 | IDIRECT3DRMOBJECT_METHODS(PURE); 36 | 37 | /* 38 | * IDirect3DRMWinDevice methods 39 | */ 40 | 41 | /* Repaint the window with the last frame which was rendered. */ 42 | STDMETHOD(HandlePaint)(THIS_ HDC hdc) PURE; 43 | 44 | /* Respond to a WM_ACTIVATE message. */ 45 | STDMETHOD(HandleActivate)(THIS_ WORD wparam) PURE; 46 | }; 47 | 48 | 49 | #endif 50 | 51 | -------------------------------------------------------------------------------- /Accelerator/Accelerator/dxsdk/Include/d3dx9.h: -------------------------------------------------------------------------------- 1 | ////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // Copyright (C) Microsoft Corporation. All Rights Reserved. 4 | // 5 | // File: d3dx9.h 6 | // Content: D3DX utility library 7 | // 8 | ////////////////////////////////////////////////////////////////////////////// 9 | 10 | #ifdef __D3DX_INTERNAL__ 11 | #error Incorrect D3DX header used 12 | #endif 13 | 14 | #ifndef __D3DX9_H__ 15 | #define __D3DX9_H__ 16 | 17 | 18 | // Defines 19 | #include 20 | 21 | #define D3DX_DEFAULT ((UINT) -1) 22 | #define D3DX_DEFAULT_NONPOW2 ((UINT) -2) 23 | #define D3DX_DEFAULT_FLOAT FLT_MAX 24 | #define D3DX_FROM_FILE ((UINT) -3) 25 | #define D3DFMT_FROM_FILE ((D3DFORMAT) -3) 26 | 27 | #ifndef D3DXINLINE 28 | #ifdef _MSC_VER 29 | #if (_MSC_VER >= 1200) 30 | #define D3DXINLINE __forceinline 31 | #else 32 | #define D3DXINLINE __inline 33 | #endif 34 | #else 35 | #ifdef __cplusplus 36 | #define D3DXINLINE inline 37 | #else 38 | #define D3DXINLINE 39 | #endif 40 | #endif 41 | #endif 42 | 43 | 44 | 45 | // Includes 46 | #include "d3d9.h" 47 | #include "d3dx9math.h" 48 | #include "d3dx9core.h" 49 | #include "d3dx9xof.h" 50 | #include "d3dx9mesh.h" 51 | #include "d3dx9shader.h" 52 | #include "d3dx9effect.h" 53 | #include "d3dx9tex.h" 54 | #include "d3dx9shape.h" 55 | #include "d3dx9anim.h" 56 | 57 | 58 | // Errors 59 | #define _FACDD 0x876 60 | #define MAKE_DDHRESULT( code ) MAKE_HRESULT( 1, _FACDD, code ) 61 | 62 | enum _D3DXERR { 63 | D3DXERR_CANNOTMODIFYINDEXBUFFER = MAKE_DDHRESULT(2900), 64 | D3DXERR_INVALIDMESH = MAKE_DDHRESULT(2901), 65 | D3DXERR_CANNOTATTRSORT = MAKE_DDHRESULT(2902), 66 | D3DXERR_SKINNINGNOTSUPPORTED = MAKE_DDHRESULT(2903), 67 | D3DXERR_TOOMANYINFLUENCES = MAKE_DDHRESULT(2904), 68 | D3DXERR_INVALIDDATA = MAKE_DDHRESULT(2905), 69 | D3DXERR_LOADEDMESHASNODATA = MAKE_DDHRESULT(2906), 70 | D3DXERR_DUPLICATENAMEDFRAGMENT = MAKE_DDHRESULT(2907), 71 | D3DXERR_CANNOTREMOVELASTITEM = MAKE_DDHRESULT(2908), 72 | }; 73 | 74 | 75 | #endif //__D3DX9_H__ 76 | 77 | -------------------------------------------------------------------------------- /Accelerator/Accelerator/dxsdk/Include/dls2.h: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | dls2.h 4 | 5 | Description: 6 | 7 | Interface defines and structures for the DLS2 extensions of DLS. 8 | 9 | 10 | Written by Microsoft 1998. Released for public use. 11 | 12 | */ 13 | 14 | #ifndef _INC_DLS2 15 | #define _INC_DLS2 16 | 17 | /* 18 | FOURCC's used in the DLS2 file, in addition to DLS1 chunks 19 | */ 20 | 21 | #define FOURCC_RGN2 mmioFOURCC('r','g','n','2') 22 | #define FOURCC_LAR2 mmioFOURCC('l','a','r','2') 23 | #define FOURCC_ART2 mmioFOURCC('a','r','t','2') 24 | #define FOURCC_CDL mmioFOURCC('c','d','l',' ') 25 | #define FOURCC_DLID mmioFOURCC('d','l','i','d') 26 | 27 | /* 28 | Articulation connection graph definitions. These are in addition to 29 | the definitions in the DLS1 header. 30 | */ 31 | 32 | /* Generic Sources (in addition to DLS1 sources. */ 33 | #define CONN_SRC_POLYPRESSURE 0x0007 /* Polyphonic Pressure */ 34 | #define CONN_SRC_CHANNELPRESSURE 0x0008 /* Channel Pressure */ 35 | #define CONN_SRC_VIBRATO 0x0009 /* Vibrato LFO */ 36 | #define CONN_SRC_MONOPRESSURE 0x000a /* MIDI Mono pressure */ 37 | 38 | 39 | /* Midi Controllers */ 40 | #define CONN_SRC_CC91 0x00db /* Reverb Send */ 41 | #define CONN_SRC_CC93 0x00dd /* Chorus Send */ 42 | 43 | 44 | /* Generic Destinations */ 45 | #define CONN_DST_GAIN 0x0001 /* Same as CONN_DST_ ATTENUATION, but more appropriate terminology. */ 46 | #define CONN_DST_KEYNUMBER 0x0005 /* Key Number Generator */ 47 | 48 | /* Audio Channel Output Destinations */ 49 | #define CONN_DST_LEFT 0x0010 /* Left Channel Send */ 50 | #define CONN_DST_RIGHT 0x0011 /* Right Channel Send */ 51 | #define CONN_DST_CENTER 0x0012 /* Center Channel Send */ 52 | #define CONN_DST_LEFTREAR 0x0013 /* Left Rear Channel Send */ 53 | #define CONN_DST_RIGHTREAR 0x0014 /* Right Rear Channel Send */ 54 | #define CONN_DST_LFE_CHANNEL 0x0015 /* LFE Channel Send */ 55 | #define CONN_DST_CHORUS 0x0080 /* Chorus Send */ 56 | #define CONN_DST_REVERB 0x0081 /* Reverb Send */ 57 | 58 | /* Vibrato LFO Destinations */ 59 | #define CONN_DST_VIB_FREQUENCY 0x0114 /* Vibrato Frequency */ 60 | #define CONN_DST_VIB_STARTDELAY 0x0115 /* Vibrato Start Delay */ 61 | 62 | /* EG1 Destinations */ 63 | #define CONN_DST_EG1_DELAYTIME 0x020B /* EG1 Delay Time */ 64 | #define CONN_DST_EG1_HOLDTIME 0x020C /* EG1 Hold Time */ 65 | #define CONN_DST_EG1_SHUTDOWNTIME 0x020D /* EG1 Shutdown Time */ 66 | 67 | 68 | /* EG2 Destinations */ 69 | #define CONN_DST_EG2_DELAYTIME 0x030F /* EG2 Delay Time */ 70 | #define CONN_DST_EG2_HOLDTIME 0x0310 /* EG2 Hold Time */ 71 | 72 | 73 | /* Filter Destinations */ 74 | #define CONN_DST_FILTER_CUTOFF 0x0500 /* Filter Cutoff Frequency */ 75 | #define CONN_DST_FILTER_Q 0x0501 /* Filter Resonance */ 76 | 77 | 78 | /* Transforms */ 79 | #define CONN_TRN_CONVEX 0x0002 /* Convex Transform */ 80 | #define CONN_TRN_SWITCH 0x0003 /* Switch Transform */ 81 | 82 | 83 | /* Conditional chunk operators */ 84 | #define DLS_CDL_AND 0x0001 /* X = X & Y */ 85 | #define DLS_CDL_OR 0x0002 /* X = X | Y */ 86 | #define DLS_CDL_XOR 0x0003 /* X = X ^ Y */ 87 | #define DLS_CDL_ADD 0x0004 /* X = X + Y */ 88 | #define DLS_CDL_SUBTRACT 0x0005 /* X = X - Y */ 89 | #define DLS_CDL_MULTIPLY 0x0006 /* X = X * Y */ 90 | #define DLS_CDL_DIVIDE 0x0007 /* X = X / Y */ 91 | #define DLS_CDL_LOGICAL_AND 0x0008 /* X = X && Y */ 92 | #define DLS_CDL_LOGICAL_OR 0x0009 /* X = X || Y */ 93 | #define DLS_CDL_LT 0x000A /* X = (X < Y) */ 94 | #define DLS_CDL_LE 0x000B /* X = (X <= Y) */ 95 | #define DLS_CDL_GT 0x000C /* X = (X > Y) */ 96 | #define DLS_CDL_GE 0x000D /* X = (X >= Y) */ 97 | #define DLS_CDL_EQ 0x000E /* X = (X == Y) */ 98 | #define DLS_CDL_NOT 0x000F /* X = !X */ 99 | #define DLS_CDL_CONST 0x0010 /* 32-bit constant */ 100 | #define DLS_CDL_QUERY 0x0011 /* 32-bit value returned from query */ 101 | #define DLS_CDL_QUERYSUPPORTED 0x0012 /* Test to see if query is supported by synth */ 102 | 103 | /* 104 | Loop and release 105 | */ 106 | 107 | #define WLOOP_TYPE_RELEASE 1 108 | 109 | /* 110 | WaveLink chunk 111 | */ 112 | 113 | #define F_WAVELINK_MULTICHANNEL 0x0002 114 | 115 | 116 | /* 117 | DLSID queries for 118 | */ 119 | 120 | DEFINE_GUID(DLSID_GMInHardware, 0x178f2f24, 0xc364, 0x11d1, 0xa7, 0x60, 0x00, 0x00, 0xf8, 0x75, 0xac, 0x12); 121 | DEFINE_GUID(DLSID_GSInHardware, 0x178f2f25, 0xc364, 0x11d1, 0xa7, 0x60, 0x00, 0x00, 0xf8, 0x75, 0xac, 0x12); 122 | DEFINE_GUID(DLSID_XGInHardware, 0x178f2f26, 0xc364, 0x11d1, 0xa7, 0x60, 0x00, 0x00, 0xf8, 0x75, 0xac, 0x12); 123 | DEFINE_GUID(DLSID_SupportsDLS1, 0x178f2f27, 0xc364, 0x11d1, 0xa7, 0x60, 0x00, 0x00, 0xf8, 0x75, 0xac, 0x12); 124 | DEFINE_GUID(DLSID_SupportsDLS2, 0xf14599e5, 0x4689, 0x11d2, 0xaf, 0xa6, 0x0, 0xaa, 0x0, 0x24, 0xd8, 0xb6); 125 | DEFINE_GUID(DLSID_SampleMemorySize, 0x178f2f28, 0xc364, 0x11d1, 0xa7, 0x60, 0x00, 0x00, 0xf8, 0x75, 0xac, 0x12); 126 | DEFINE_GUID(DLSID_ManufacturersID, 0xb03e1181, 0x8095, 0x11d2, 0xa1, 0xef, 0x0, 0x60, 0x8, 0x33, 0xdb, 0xd8); 127 | DEFINE_GUID(DLSID_ProductID, 0xb03e1182, 0x8095, 0x11d2, 0xa1, 0xef, 0x0, 0x60, 0x8, 0x33, 0xdb, 0xd8); 128 | DEFINE_GUID(DLSID_SamplePlaybackRate, 0x2a91f713, 0xa4bf, 0x11d2, 0xbb, 0xdf, 0x0, 0x60, 0x8, 0x33, 0xdb, 0xd8); 129 | 130 | #endif /* _INC_DLS2 */ 131 | -------------------------------------------------------------------------------- /Accelerator/Accelerator/dxsdk/Include/dmksctrl.h: -------------------------------------------------------------------------------- 1 | /************************************************************************ 2 | * * 3 | * dmksctrl.h -- Definition of IKsControl * 4 | * * 5 | * Copyright (c) Microsoft Corporation. All rights reserved. * 6 | * * 7 | * This header file contains the definition of IKsControl, which * 8 | * duplicates definitions from ks.h and ksproxy.h. Your code should * 9 | * include ks.h and ksproxy.h directly if you have them (they are * 10 | * provided in the Windows 98 DDK and will be in the Windows NT 5 * 11 | * SDK). * 12 | * * 13 | ************************************************************************/ 14 | 15 | #ifndef _DMKSCTRL_ 16 | #define _DMKSCTRL_ 17 | 18 | #if _MSC_VER >= 1200 19 | #pragma warning(push) 20 | #endif 21 | #pragma warning(disable:4201) /* Disable warnings on anonymous unions */ 22 | 23 | #include 24 | 25 | #include 26 | 27 | #if !defined(_NTRTL_) 28 | #ifndef DEFINE_GUIDEX 29 | #define DEFINE_GUIDEX(name) EXTERN_C const CDECL GUID name 30 | #endif /* !defined(DEFINE_GUIDEX) */ 31 | 32 | #ifndef STATICGUIDOF 33 | #define STATICGUIDOF(guid) STATIC_##guid 34 | #endif /* !defined(STATICGUIDOF) */ 35 | #endif /* !defined(_NTRTL_) */ 36 | 37 | #ifndef STATIC_IID_IKsControl 38 | #define STATIC_IID_IKsControl\ 39 | 0x28F54685L, 0x06FD, 0x11D2, 0xB2, 0x7A, 0x00, 0xA0, 0xC9, 0x22, 0x31, 0x96 40 | #endif /* STATIC_IID_IKsControl */ 41 | 42 | /* 43 | * Warning: This will prevent the rest of ks.h from being pulled in if ks.h is 44 | * included after dmksctrl.h. Make sure you do not include both headers in 45 | * the same source file. 46 | */ 47 | #ifndef _KS_ 48 | #define _KS_ 49 | 50 | #if (defined(_MSC_EXTENSIONS) || defined(__cplusplus)) && !defined(CINTERFACE) 51 | typedef struct { 52 | union { 53 | struct { 54 | GUID Set; 55 | ULONG Id; 56 | ULONG Flags; 57 | }; 58 | LONGLONG Alignment; 59 | }; 60 | } KSIDENTIFIER, *PKSIDENTIFIER; 61 | #else 62 | typedef struct { 63 | union { 64 | struct { 65 | GUID Set; 66 | ULONG Id; 67 | ULONG Flags; 68 | } Data; 69 | LONGLONG Alignment; 70 | }; 71 | } KSIDENTIFIER, *PKSIDENTIFIER; 72 | #endif 73 | 74 | typedef KSIDENTIFIER KSPROPERTY, *PKSPROPERTY, KSMETHOD, *PKSMETHOD, KSEVENT, *PKSEVENT; 75 | 76 | #define KSMETHOD_TYPE_NONE 0x00000000 77 | #define KSMETHOD_TYPE_READ 0x00000001 78 | #define KSMETHOD_TYPE_WRITE 0x00000002 79 | #define KSMETHOD_TYPE_MODIFY 0x00000003 80 | #define KSMETHOD_TYPE_SOURCE 0x00000004 81 | 82 | #define KSMETHOD_TYPE_SEND 0x00000001 83 | #define KSMETHOD_TYPE_SETSUPPORT 0x00000100 84 | #define KSMETHOD_TYPE_BASICSUPPORT 0x00000200 85 | 86 | #define KSPROPERTY_TYPE_GET 0x00000001 87 | #define KSPROPERTY_TYPE_SET 0x00000002 88 | #define KSPROPERTY_TYPE_SETSUPPORT 0x00000100 89 | #define KSPROPERTY_TYPE_BASICSUPPORT 0x00000200 90 | #define KSPROPERTY_TYPE_RELATIONS 0x00000400 91 | #define KSPROPERTY_TYPE_SERIALIZESET 0x00000800 92 | #define KSPROPERTY_TYPE_UNSERIALIZESET 0x00001000 93 | #define KSPROPERTY_TYPE_SERIALIZERAW 0x00002000 94 | #define KSPROPERTY_TYPE_UNSERIALIZERAW 0x00004000 95 | #define KSPROPERTY_TYPE_SERIALIZESIZE 0x00008000 96 | #define KSPROPERTY_TYPE_DEFAULTVALUES 0x00010000 97 | 98 | #define KSPROPERTY_TYPE_TOPOLOGY 0x10000000 99 | #endif /* _KS_ */ 100 | 101 | #ifndef _IKsControl_ 102 | #define _IKsControl_ 103 | 104 | #ifdef DECLARE_INTERFACE_ 105 | 106 | 107 | #undef INTERFACE 108 | #define INTERFACE IKsControl 109 | DECLARE_INTERFACE_(IKsControl, IUnknown) 110 | { 111 | /* IUnknown */ 112 | STDMETHOD(QueryInterface) (THIS_ REFIID, LPVOID FAR *) PURE; 113 | STDMETHOD_(ULONG,AddRef) (THIS) PURE; 114 | STDMETHOD_(ULONG,Release) (THIS) PURE; 115 | 116 | /*IKsControl*/ 117 | STDMETHOD(KsProperty)( 118 | THIS_ 119 | IN PKSPROPERTY Property, 120 | IN ULONG PropertyLength, 121 | IN OUT LPVOID PropertyData, 122 | IN ULONG DataLength, 123 | OUT ULONG* BytesReturned 124 | ) PURE; 125 | STDMETHOD(KsMethod)( 126 | THIS_ 127 | IN PKSMETHOD Method, 128 | IN ULONG MethodLength, 129 | IN OUT LPVOID MethodData, 130 | IN ULONG DataLength, 131 | OUT ULONG* BytesReturned 132 | ) PURE; 133 | STDMETHOD(KsEvent)( 134 | THIS_ 135 | IN PKSEVENT Event OPTIONAL, 136 | IN ULONG EventLength, 137 | IN OUT LPVOID EventData, 138 | IN ULONG DataLength, 139 | OUT ULONG* BytesReturned 140 | ) PURE; 141 | }; 142 | 143 | #endif /* DECLARE_INTERFACE_ */ 144 | #endif /* _IKsControl_ */ 145 | 146 | #include 147 | 148 | DEFINE_GUID(IID_IKsControl, 0x28F54685, 0x06FD, 0x11D2, 0xB2, 0x7A, 0x00, 0xA0, 0xC9, 0x22, 0x31, 0x96); 149 | 150 | /* These formats are in ksmedia.h 151 | */ 152 | #ifndef _KSMEDIA_ 153 | 154 | DEFINE_GUID(KSDATAFORMAT_SUBTYPE_MIDI, 0x1D262760L, 0xE957, 0x11CF, 0xA5, 0xD6, 0x28, 0xDB, 0x04, 0xC1, 0x00, 0x00); 155 | DEFINE_GUID(KSDATAFORMAT_SUBTYPE_DIRECTMUSIC, 0x1a82f8bc, 0x3f8b, 0x11d2, 0xb7, 0x74, 0x00, 0x60, 0x08, 0x33, 0x16, 0xc1); 156 | 157 | #endif 158 | 159 | #if _MSC_VER >= 1200 160 | #pragma warning(pop) 161 | #endif 162 | 163 | #endif /* _DMKSCTRL */ 164 | 165 | 166 | 167 | -------------------------------------------------------------------------------- /Accelerator/Accelerator/dxsdk/Include/dmusbuff.h: -------------------------------------------------------------------------------- 1 | /*************************************************************************** 2 | * * 3 | * DMusBuff.h -- This module defines the buffer format for DirectMusic * 4 | * Shared file between user mode and kernel mode components * 5 | * * 6 | * Copyright (c) 1998, Microsoft Corp. All rights reserved. * 7 | * * 8 | ***************************************************************************/ 9 | 10 | #ifndef _DMusBuff_ 11 | #define _DMusBuff_ 12 | 13 | /* Format of DirectMusic events in a buffer 14 | * 15 | * A buffer contains 1 or more events, each with the following header. 16 | * Immediately following the header is the event data. The header+data 17 | * size is rounded to the nearest quadword (8 bytes). 18 | */ 19 | 20 | #include /* Do not pad at end - that's where the data is */ 21 | typedef struct _DMUS_EVENTHEADER *LPDMUS_EVENTHEADER; 22 | typedef struct _DMUS_EVENTHEADER 23 | { 24 | DWORD cbEvent; /* Unrounded bytes in event */ 25 | DWORD dwChannelGroup; /* Channel group of event */ 26 | REFERENCE_TIME rtDelta; /* Delta from start time of entire buffer */ 27 | DWORD dwFlags; /* Flags DMUS_EVENT_xxx */ 28 | } DMUS_EVENTHEADER; 29 | #include 30 | 31 | #define DMUS_EVENT_STRUCTURED 0x00000001 /* Unstructured data (SysEx, etc.) */ 32 | 33 | /* The number of bytes to allocate for an event with 'cb' data bytes. 34 | */ 35 | #define QWORD_ALIGN(x) (((x) + 7) & ~7) 36 | #define DMUS_EVENT_SIZE(cb) QWORD_ALIGN(sizeof(DMUS_EVENTHEADER) + cb) 37 | 38 | 39 | #endif /* _DMusBuff_ */ 40 | 41 | 42 | -------------------------------------------------------------------------------- /Accelerator/Accelerator/dxsdk/Include/dx7todx8.h: -------------------------------------------------------------------------------- 1 | /*==========================================================================; 2 | * 3 | * Copyright (C) Microsoft Corporation. All Rights Reserved. 4 | * 5 | * File: dx7todx8.h 6 | * Content: DX7 to DX8 Direct3D aliases to aid porting DX7 apps to DX8 7 | * 8 | ***************************************************************************/ 9 | 10 | #ifndef _DX7TODX8_H_ 11 | 12 | /////////////////////////////////////////////////////////////////////////////// 13 | // 14 | // d3d8types.h 15 | // 16 | /////////////////////////////////////////////////////////////////////////////// 17 | 18 | #define D3DTRANSFORMSTATE_WORLD D3DTS_WORLD 19 | #define D3DTRANSFORMSTATE_VIEW D3DTS_VIEW 20 | #define D3DTRANSFORMSTATE_PROJECTION D3DTS_PROJECTION 21 | #define D3DTRANSFORMSTATE_WORLD1 D3DTS_WORLD1 22 | #define D3DTRANSFORMSTATE_WORLD2 D3DTS_WORLD2 23 | #define D3DTRANSFORMSTATE_WORLD3 D3DTS_WORLD3 24 | #define D3DTRANSFORMSTATE_TEXTURE0 D3DTS_TEXTURE0 25 | #define D3DTRANSFORMSTATE_TEXTURE1 D3DTS_TEXTURE1 26 | #define D3DTRANSFORMSTATE_TEXTURE2 D3DTS_TEXTURE2 27 | #define D3DTRANSFORMSTATE_TEXTURE3 D3DTS_TEXTURE3 28 | #define D3DTRANSFORMSTATE_TEXTURE4 D3DTS_TEXTURE4 29 | #define D3DTRANSFORMSTATE_TEXTURE5 D3DTS_TEXTURE5 30 | #define D3DTRANSFORMSTATE_TEXTURE6 D3DTS_TEXTURE6 31 | #define D3DTRANSFORMSTATE_TEXTURE7 D3DTS_TEXTURE7 32 | #define D3DTRANSFORMSTATE_FORCE_DWORD D3DTS_FORCE_DWORD 33 | 34 | #define D3DRENDERSTATE_ZENABLE D3DRS_ZENABLE 35 | #define D3DRENDERSTATE_FILLMODE D3DRS_FILLMODE 36 | #define D3DRENDERSTATE_SHADEMODE D3DRS_SHADEMODE 37 | #define D3DRENDERSTATE_LINEPATTERN D3DRS_LINEPATTERN 38 | #define D3DRENDERSTATE_ZWRITEENABLE D3DRS_ZWRITEENABLE 39 | #define D3DRENDERSTATE_ALPHATESTENABLE D3DRS_ALPHATESTENABLE 40 | #define D3DRENDERSTATE_LASTPIXEL D3DRS_LASTPIXEL 41 | #define D3DRENDERSTATE_SRCBLEND D3DRS_SRCBLEND 42 | #define D3DRENDERSTATE_DESTBLEND D3DRS_DESTBLEND 43 | #define D3DRENDERSTATE_CULLMODE D3DRS_CULLMODE 44 | #define D3DRENDERSTATE_ZFUNC D3DRS_ZFUNC 45 | #define D3DRENDERSTATE_ALPHAREF D3DRS_ALPHAREF 46 | #define D3DRENDERSTATE_ALPHAFUNC D3DRS_ALPHAFUNC 47 | #define D3DRENDERSTATE_DITHERENABLE D3DRS_DITHERENABLE 48 | #define D3DRENDERSTATE_ALPHABLENDENABLE D3DRS_ALPHABLENDENABLE 49 | #define D3DRENDERSTATE_FOGENABLE D3DRS_FOGENABLE 50 | #define D3DRENDERSTATE_SPECULARENABLE D3DRS_SPECULARENABLE 51 | #define D3DRENDERSTATE_ZVISIBLE D3DRS_ZVISIBLE 52 | #define D3DRENDERSTATE_FOGCOLOR D3DRS_FOGCOLOR 53 | #define D3DRENDERSTATE_FOGTABLEMODE D3DRS_FOGTABLEMODE 54 | #define D3DRENDERSTATE_FOGSTART D3DRS_FOGSTART 55 | #define D3DRENDERSTATE_FOGEND D3DRS_FOGEND 56 | #define D3DRENDERSTATE_FOGDENSITY D3DRS_FOGDENSITY 57 | #define D3DRENDERSTATE_EDGEANTIALIAS D3DRS_EDGEANTIALIAS 58 | #define D3DRENDERSTATE_ZBIAS D3DRS_ZBIAS 59 | #define D3DRENDERSTATE_RANGEFOGENABLE D3DRS_RANGEFOGENABLE 60 | #define D3DRENDERSTATE_STENCILENABLE D3DRS_STENCILENABLE 61 | #define D3DRENDERSTATE_STENCILFAIL D3DRS_STENCILFAIL 62 | #define D3DRENDERSTATE_STENCILZFAIL D3DRS_STENCILZFAIL 63 | #define D3DRENDERSTATE_STENCILPASS D3DRS_STENCILPASS 64 | #define D3DRENDERSTATE_STENCILFUNC D3DRS_STENCILFUNC 65 | #define D3DRENDERSTATE_STENCILREF D3DRS_STENCILREF 66 | #define D3DRENDERSTATE_STENCILMASK D3DRS_STENCILMASK 67 | #define D3DRENDERSTATE_STENCILWRITEMASK D3DRS_STENCILWRITEMASK 68 | #define D3DRENDERSTATE_TEXTUREFACTOR D3DRS_TEXTUREFACTOR 69 | #define D3DRENDERSTATE_WRAP0 D3DRS_WRAP0 70 | #define D3DRENDERSTATE_WRAP1 D3DRS_WRAP1 71 | #define D3DRENDERSTATE_WRAP2 D3DRS_WRAP2 72 | #define D3DRENDERSTATE_WRAP3 D3DRS_WRAP3 73 | #define D3DRENDERSTATE_WRAP4 D3DRS_WRAP4 74 | #define D3DRENDERSTATE_WRAP5 D3DRS_WRAP5 75 | #define D3DRENDERSTATE_WRAP6 D3DRS_WRAP6 76 | #define D3DRENDERSTATE_WRAP7 D3DRS_WRAP7 77 | #define D3DRENDERSTATE_CLIPPING D3DRS_CLIPPING 78 | #define D3DRENDERSTATE_LIGHTING D3DRS_LIGHTING 79 | #define D3DRENDERSTATE_EXTENTS D3DRS_EXTENTS 80 | #define D3DRENDERSTATE_AMBIENT D3DRS_AMBIENT 81 | #define D3DRENDERSTATE_FOGVERTEXMODE D3DRS_FOGVERTEXMODE 82 | #define D3DRENDERSTATE_COLORVERTEX D3DRS_COLORVERTEX 83 | #define D3DRENDERSTATE_LOCALVIEWER D3DRS_LOCALVIEWER 84 | #define D3DRENDERSTATE_NORMALIZENORMALS D3DRS_NORMALIZENORMALS 85 | #define D3DRENDERSTATE_DIFFUSEMATERIALSOURCE D3DRS_DIFFUSEMATERIALSOURCE 86 | #define D3DRENDERSTATE_SPECULARMATERIALSOURCE D3DRS_SPECULARMATERIALSOURCE 87 | #define D3DRENDERSTATE_AMBIENTMATERIALSOURCE D3DRS_AMBIENTMATERIALSOURCE 88 | #define D3DRENDERSTATE_EMISSIVEMATERIALSOURCE D3DRS_EMISSIVEMATERIALSOURCE 89 | #define D3DRENDERSTATE_VERTEXBLEND D3DRS_VERTEXBLEND 90 | #define D3DRENDERSTATE_CLIPPLANEENABLE D3DRS_CLIPPLANEENABLE 91 | 92 | #define RGBA_MAKE D3DCOLOR_RGBA 93 | #define RGB_MAKE D3DCOLOR_XRGB 94 | #define D3DRGBA D3DCOLOR_COLORVALUE 95 | #define D3DRGB(_r,_g,_b) D3DCOLOR_COLORVALUE(_r,_g,_b,1.f) 96 | 97 | #define _DX7TODX8_H_ 98 | #endif //_DX7TODX8_H_ 99 | -------------------------------------------------------------------------------- /Accelerator/Accelerator/dxsdk/Include/dxerr8.h: -------------------------------------------------------------------------------- 1 | /*==========================================================================; 2 | * 3 | * 4 | * File: dxerr8.h 5 | * Content: DirectX Error Library Include File 6 | * 7 | ****************************************************************************/ 8 | 9 | #ifndef _DXERR8_H_ 10 | #define _DXERR8_H_ 11 | 12 | #ifdef __cplusplus 13 | extern "C" { 14 | #endif //__cplusplus 15 | 16 | // 17 | // DXGetErrorString8 18 | // 19 | // Desc: Converts a DirectX HRESULT to a string 20 | // 21 | // Args: HRESULT hr Can be any error code from 22 | // D3D8 D3DX8 DDRAW DPLAY8 DMUSIC DSOUND DINPUT DSHOW 23 | // 24 | // Return: Converted string 25 | // 26 | const char* WINAPI DXGetErrorString8A(HRESULT hr); 27 | const WCHAR* WINAPI DXGetErrorString8W(HRESULT hr); 28 | 29 | #ifdef UNICODE 30 | #define DXGetErrorString8 DXGetErrorString8W 31 | #else 32 | #define DXGetErrorString8 DXGetErrorString8A 33 | #endif 34 | 35 | 36 | // 37 | // DXGetErrorDescription8 38 | // 39 | // Desc: Returns a string description of a DirectX HRESULT 40 | // 41 | // Args: HRESULT hr Can be any error code from 42 | // D3D8 D3DX8 DDRAW DPLAY8 DMUSIC DSOUND DINPUT DSHOW 43 | // 44 | // Return: String description 45 | // 46 | const char* WINAPI DXGetErrorDescription8A(HRESULT hr); 47 | const WCHAR* WINAPI DXGetErrorDescription8W(HRESULT hr); 48 | 49 | #ifdef UNICODE 50 | #define DXGetErrorDescription8 DXGetErrorDescription8W 51 | #else 52 | #define DXGetErrorDescription8 DXGetErrorDescription8A 53 | #endif 54 | 55 | 56 | // 57 | // DXTrace 58 | // 59 | // Desc: Outputs a formatted error message to the debug stream 60 | // 61 | // Args: CHAR* strFile The current file, typically passed in using the 62 | // __FILE__ macro. 63 | // DWORD dwLine The current line number, typically passed in using the 64 | // __LINE__ macro. 65 | // HRESULT hr An HRESULT that will be traced to the debug stream. 66 | // CHAR* strMsg A string that will be traced to the debug stream (may be NULL) 67 | // BOOL bPopMsgBox If TRUE, then a message box will popup also containing the passed info. 68 | // 69 | // Return: The hr that was passed in. 70 | // 71 | HRESULT WINAPI DXTraceA( const char* strFile, DWORD dwLine, HRESULT hr, const char* strMsg, BOOL bPopMsgBox ); 72 | HRESULT WINAPI DXTraceW( const char* strFile, DWORD dwLine, HRESULT hr, const WCHAR* strMsg, BOOL bPopMsgBox ); 73 | 74 | #ifdef UNICODE 75 | #define DXTrace DXTraceW 76 | #else 77 | #define DXTrace DXTraceA 78 | #endif 79 | 80 | 81 | // 82 | // Helper macros 83 | // 84 | #if defined(DEBUG) | defined(_DEBUG) 85 | #define DXTRACE_MSG(str) DXTrace( __FILE__, (DWORD)__LINE__, 0, str, FALSE ) 86 | #define DXTRACE_ERR(str,hr) DXTrace( __FILE__, (DWORD)__LINE__, hr, str, TRUE ) 87 | #define DXTRACE_ERR_NOMSGBOX(str,hr) DXTrace( __FILE__, (DWORD)__LINE__, hr, str, FALSE ) 88 | #else 89 | #define DXTRACE_MSG(str) (0L) 90 | #define DXTRACE_ERR(str,hr) (hr) 91 | #define DXTRACE_ERR_NOMSGBOX(str,hr) (hr) 92 | #endif 93 | 94 | 95 | #ifdef __cplusplus 96 | } 97 | #endif //__cplusplus 98 | 99 | #endif // _DXERR8_H_ 100 | -------------------------------------------------------------------------------- /Accelerator/Accelerator/dxsdk/Include/dxerr9.h: -------------------------------------------------------------------------------- 1 | /*==========================================================================; 2 | * 3 | * 4 | * File: dxerr9.h 5 | * Content: DirectX Error Library Include File 6 | * 7 | ****************************************************************************/ 8 | 9 | #ifndef _DXERR9_H_ 10 | #define _DXERR9_H_ 11 | 12 | #ifdef __cplusplus 13 | extern "C" { 14 | #endif //__cplusplus 15 | 16 | // 17 | // DXGetErrorString9 18 | // 19 | // Desc: Converts a DirectX 9 or earlier HRESULT to a string 20 | // 21 | // Args: HRESULT hr Can be any error code from 22 | // D3D9 D3DX9 D3D8 D3DX8 DDRAW DPLAY8 DMUSIC DSOUND DINPUT DSHOW 23 | // 24 | // Return: Converted string 25 | // 26 | const char* WINAPI DXGetErrorString9A(HRESULT hr); 27 | const WCHAR* WINAPI DXGetErrorString9W(HRESULT hr); 28 | 29 | #ifdef UNICODE 30 | #define DXGetErrorString9 DXGetErrorString9W 31 | #else 32 | #define DXGetErrorString9 DXGetErrorString9A 33 | #endif 34 | 35 | 36 | // 37 | // DXGetErrorDescription9 38 | // 39 | // Desc: Returns a string description of a DirectX 9 or earlier HRESULT 40 | // 41 | // Args: HRESULT hr Can be any error code from 42 | // D3D9 D3DX9 D3D8 D3DX8 DDRAW DPLAY8 DMUSIC DSOUND DINPUT DSHOW 43 | // 44 | // Return: String description 45 | // 46 | const char* WINAPI DXGetErrorDescription9A(HRESULT hr); 47 | const WCHAR* WINAPI DXGetErrorDescription9W(HRESULT hr); 48 | 49 | #ifdef UNICODE 50 | #define DXGetErrorDescription9 DXGetErrorDescription9W 51 | #else 52 | #define DXGetErrorDescription9 DXGetErrorDescription9A 53 | #endif 54 | 55 | 56 | // 57 | // DXTrace 58 | // 59 | // Desc: Outputs a formatted error message to the debug stream 60 | // 61 | // Args: CHAR* strFile The current file, typically passed in using the 62 | // __FILE__ macro. 63 | // DWORD dwLine The current line number, typically passed in using the 64 | // __LINE__ macro. 65 | // HRESULT hr An HRESULT that will be traced to the debug stream. 66 | // CHAR* strMsg A string that will be traced to the debug stream (may be NULL) 67 | // BOOL bPopMsgBox If TRUE, then a message box will popup also containing the passed info. 68 | // 69 | // Return: The hr that was passed in. 70 | // 71 | HRESULT WINAPI DXTraceA( const char* strFile, DWORD dwLine, HRESULT hr, const char* strMsg, BOOL bPopMsgBox ); 72 | HRESULT WINAPI DXTraceW( const char* strFile, DWORD dwLine, HRESULT hr, const WCHAR* strMsg, BOOL bPopMsgBox ); 73 | 74 | #ifdef UNICODE 75 | #define DXTrace DXTraceW 76 | #else 77 | #define DXTrace DXTraceA 78 | #endif 79 | 80 | 81 | // 82 | // Helper macros 83 | // 84 | #if defined(DEBUG) | defined(_DEBUG) 85 | #define DXTRACE_MSG(str) DXTrace( __FILE__, (DWORD)__LINE__, 0, str, FALSE ) 86 | #define DXTRACE_ERR(str,hr) DXTrace( __FILE__, (DWORD)__LINE__, hr, str, FALSE ) 87 | #define DXTRACE_ERR_MSGBOX(str,hr) DXTrace( __FILE__, (DWORD)__LINE__, hr, str, TRUE ) 88 | #else 89 | #define DXTRACE_MSG(str) (0L) 90 | #define DXTRACE_ERR(str,hr) (hr) 91 | #define DXTRACE_ERR_MSGBOX(str,hr) (hr) 92 | #endif 93 | 94 | 95 | #ifdef __cplusplus 96 | } 97 | #endif //__cplusplus 98 | 99 | #endif // _DXERR9_H_ 100 | -------------------------------------------------------------------------------- /Accelerator/Accelerator/dxsdk/Include/dxsdkver.h: -------------------------------------------------------------------------------- 1 | /*==========================================================================; 2 | * 3 | * 4 | * File: dxsdkver.h 5 | * Content: DirectX SDK Version Include File 6 | * 7 | ****************************************************************************/ 8 | 9 | #ifndef _DXSDKVER_H_ 10 | #define _DXSDKVER_H_ 11 | 12 | #define _DXSDK_PRODUCT_MAJOR 9 13 | #define _DXSDK_PRODUCT_MINOR 15 14 | #define _DXSDK_BUILD_MAJOR 779 15 | #define _DXSDK_BUILD_MINOR 0000 16 | 17 | #endif // _DXSDKVER_H_ 18 | 19 | -------------------------------------------------------------------------------- /Accelerator/Accelerator/dxsdk/Lib/x86/DxErr.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Inori/Accelerator/ad1df0ee349dc626bafa0a94b549619a18d1762d/Accelerator/Accelerator/dxsdk/Lib/x86/DxErr.lib -------------------------------------------------------------------------------- /Accelerator/Accelerator/dxsdk/Lib/x86/DxErr8.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Inori/Accelerator/ad1df0ee349dc626bafa0a94b549619a18d1762d/Accelerator/Accelerator/dxsdk/Lib/x86/DxErr8.lib -------------------------------------------------------------------------------- /Accelerator/Accelerator/dxsdk/Lib/x86/DxErr9.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Inori/Accelerator/ad1df0ee349dc626bafa0a94b549619a18d1762d/Accelerator/Accelerator/dxsdk/Lib/x86/DxErr9.lib -------------------------------------------------------------------------------- /Accelerator/Accelerator/dxsdk/Lib/x86/X3DAudio.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Inori/Accelerator/ad1df0ee349dc626bafa0a94b549619a18d1762d/Accelerator/Accelerator/dxsdk/Lib/x86/X3DAudio.lib -------------------------------------------------------------------------------- /Accelerator/Accelerator/dxsdk/Lib/x86/XInput.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Inori/Accelerator/ad1df0ee349dc626bafa0a94b549619a18d1762d/Accelerator/Accelerator/dxsdk/Lib/x86/XInput.lib -------------------------------------------------------------------------------- /Accelerator/Accelerator/dxsdk/Lib/x86/d3d10.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Inori/Accelerator/ad1df0ee349dc626bafa0a94b549619a18d1762d/Accelerator/Accelerator/dxsdk/Lib/x86/d3d10.lib -------------------------------------------------------------------------------- /Accelerator/Accelerator/dxsdk/Lib/x86/d3d8.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Inori/Accelerator/ad1df0ee349dc626bafa0a94b549619a18d1762d/Accelerator/Accelerator/dxsdk/Lib/x86/d3d8.lib -------------------------------------------------------------------------------- /Accelerator/Accelerator/dxsdk/Lib/x86/d3d9.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Inori/Accelerator/ad1df0ee349dc626bafa0a94b549619a18d1762d/Accelerator/Accelerator/dxsdk/Lib/x86/d3d9.lib -------------------------------------------------------------------------------- /Accelerator/Accelerator/dxsdk/Lib/x86/d3dx10.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Inori/Accelerator/ad1df0ee349dc626bafa0a94b549619a18d1762d/Accelerator/Accelerator/dxsdk/Lib/x86/d3dx10.lib -------------------------------------------------------------------------------- /Accelerator/Accelerator/dxsdk/Lib/x86/d3dx10d.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Inori/Accelerator/ad1df0ee349dc626bafa0a94b549619a18d1762d/Accelerator/Accelerator/dxsdk/Lib/x86/d3dx10d.lib -------------------------------------------------------------------------------- /Accelerator/Accelerator/dxsdk/Lib/x86/d3dx9.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Inori/Accelerator/ad1df0ee349dc626bafa0a94b549619a18d1762d/Accelerator/Accelerator/dxsdk/Lib/x86/d3dx9.lib -------------------------------------------------------------------------------- /Accelerator/Accelerator/dxsdk/Lib/x86/d3dx9d.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Inori/Accelerator/ad1df0ee349dc626bafa0a94b549619a18d1762d/Accelerator/Accelerator/dxsdk/Lib/x86/d3dx9d.lib -------------------------------------------------------------------------------- /Accelerator/Accelerator/dxsdk/Lib/x86/d3dx9d_beta.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Inori/Accelerator/ad1df0ee349dc626bafa0a94b549619a18d1762d/Accelerator/Accelerator/dxsdk/Lib/x86/d3dx9d_beta.lib -------------------------------------------------------------------------------- /Accelerator/Accelerator/dxsdk/Lib/x86/d3dxof.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Inori/Accelerator/ad1df0ee349dc626bafa0a94b549619a18d1762d/Accelerator/Accelerator/dxsdk/Lib/x86/d3dxof.lib -------------------------------------------------------------------------------- /Accelerator/Accelerator/dxsdk/Lib/x86/ddraw.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Inori/Accelerator/ad1df0ee349dc626bafa0a94b549619a18d1762d/Accelerator/Accelerator/dxsdk/Lib/x86/ddraw.lib -------------------------------------------------------------------------------- /Accelerator/Accelerator/dxsdk/Lib/x86/dinput.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Inori/Accelerator/ad1df0ee349dc626bafa0a94b549619a18d1762d/Accelerator/Accelerator/dxsdk/Lib/x86/dinput.lib -------------------------------------------------------------------------------- /Accelerator/Accelerator/dxsdk/Lib/x86/dinput8.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Inori/Accelerator/ad1df0ee349dc626bafa0a94b549619a18d1762d/Accelerator/Accelerator/dxsdk/Lib/x86/dinput8.lib -------------------------------------------------------------------------------- /Accelerator/Accelerator/dxsdk/Lib/x86/dplayx.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Inori/Accelerator/ad1df0ee349dc626bafa0a94b549619a18d1762d/Accelerator/Accelerator/dxsdk/Lib/x86/dplayx.lib -------------------------------------------------------------------------------- /Accelerator/Accelerator/dxsdk/Lib/x86/dsetup.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Inori/Accelerator/ad1df0ee349dc626bafa0a94b549619a18d1762d/Accelerator/Accelerator/dxsdk/Lib/x86/dsetup.lib -------------------------------------------------------------------------------- /Accelerator/Accelerator/dxsdk/Lib/x86/dsound.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Inori/Accelerator/ad1df0ee349dc626bafa0a94b549619a18d1762d/Accelerator/Accelerator/dxsdk/Lib/x86/dsound.lib -------------------------------------------------------------------------------- /Accelerator/Accelerator/dxsdk/Lib/x86/dxgi.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Inori/Accelerator/ad1df0ee349dc626bafa0a94b549619a18d1762d/Accelerator/Accelerator/dxsdk/Lib/x86/dxgi.lib -------------------------------------------------------------------------------- /Accelerator/Accelerator/dxsdk/Lib/x86/dxguid.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Inori/Accelerator/ad1df0ee349dc626bafa0a94b549619a18d1762d/Accelerator/Accelerator/dxsdk/Lib/x86/dxguid.lib -------------------------------------------------------------------------------- /Accelerator/Accelerator/dxsdk/Lib/x86/dxtrans.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Inori/Accelerator/ad1df0ee349dc626bafa0a94b549619a18d1762d/Accelerator/Accelerator/dxsdk/Lib/x86/dxtrans.lib -------------------------------------------------------------------------------- /Accelerator/Accelerator/ftsdk/include/PaxHeaders.3009/config: -------------------------------------------------------------------------------- 1 | 30 mtime=1394144021.359285597 2 | 29 atime=1394144022.73326842 3 | 30 ctime=1394144021.359285597 4 | -------------------------------------------------------------------------------- /Accelerator/Accelerator/ftsdk/include/PaxHeaders.3009/freetype.h: -------------------------------------------------------------------------------- 1 | 30 mtime=1394129431.661681917 2 | 30 atime=1394129480.651069465 3 | 30 ctime=1394129431.769680567 4 | -------------------------------------------------------------------------------- /Accelerator/Accelerator/ftsdk/include/PaxHeaders.3009/ft2build.h: -------------------------------------------------------------------------------- 1 | 30 mtime=1384332396.936809251 2 | 30 atime=1394144023.899253843 3 | 30 ctime=1384332396.936809251 4 | -------------------------------------------------------------------------------- /Accelerator/Accelerator/ftsdk/include/PaxHeaders.3009/ftadvanc.h: -------------------------------------------------------------------------------- 1 | 30 mtime=1378198946.117749881 2 | 30 atime=1394128253.671408822 3 | 30 ctime=1384254877.871227088 4 | -------------------------------------------------------------------------------- /Accelerator/Accelerator/ftsdk/include/PaxHeaders.3009/ftautoh.h: -------------------------------------------------------------------------------- 1 | 30 mtime=1388168384.151545268 2 | 29 atime=1394128265.85225654 3 | 30 ctime=1388168384.151545268 4 | -------------------------------------------------------------------------------- /Accelerator/Accelerator/ftsdk/include/PaxHeaders.3009/ftbbox.h: -------------------------------------------------------------------------------- 1 | 30 mtime=1378199022.993788799 2 | 29 atime=1394128255.13139057 3 | 30 ctime=1384254877.871227088 4 | -------------------------------------------------------------------------------- /Accelerator/Accelerator/ftsdk/include/PaxHeaders.3009/ftbdf.h: -------------------------------------------------------------------------------- 1 | 30 mtime=1391105599.167494258 2 | 30 atime=1394114090.587471737 3 | 30 ctime=1391105599.167494258 4 | -------------------------------------------------------------------------------- /Accelerator/Accelerator/ftsdk/include/PaxHeaders.3009/ftbitmap.h: -------------------------------------------------------------------------------- 1 | 30 atime=1394128253.834406784 2 | 30 ctime=1384254877.871227088 3 | -------------------------------------------------------------------------------- /Accelerator/Accelerator/ftsdk/include/PaxHeaders.3009/ftbzip2.h: -------------------------------------------------------------------------------- 1 | 30 atime=1394128263.222289419 2 | 30 ctime=1384254877.871227088 3 | -------------------------------------------------------------------------------- /Accelerator/Accelerator/ftsdk/include/PaxHeaders.3009/ftcache.h: -------------------------------------------------------------------------------- 1 | 30 mtime=1378199147.436233054 2 | 30 atime=1394128268.014229512 3 | 30 ctime=1384254877.871227088 4 | -------------------------------------------------------------------------------- /Accelerator/Accelerator/ftsdk/include/PaxHeaders.3009/ftcffdrv.h: -------------------------------------------------------------------------------- 1 | 30 mtime=1382556660.650520795 2 | 30 atime=1394128260.070328824 3 | 30 ctime=1384254877.871227088 4 | -------------------------------------------------------------------------------- /Accelerator/Accelerator/ftsdk/include/PaxHeaders.3009/ftchapters.h: -------------------------------------------------------------------------------- 1 | 30 mtime=1386742574.107832964 2 | 30 atime=1394144024.003252543 3 | 30 ctime=1386742574.107832964 4 | -------------------------------------------------------------------------------- /Accelerator/Accelerator/ftsdk/include/PaxHeaders.3009/ftcid.h: -------------------------------------------------------------------------------- 1 | 30 atime=1394128255.553385294 2 | 30 ctime=1384254877.871227088 3 | -------------------------------------------------------------------------------- /Accelerator/Accelerator/ftsdk/include/PaxHeaders.3009/fterrdef.h: -------------------------------------------------------------------------------- 1 | 30 atime=1394114088.092502928 2 | 30 ctime=1384254877.871227088 3 | -------------------------------------------------------------------------------- /Accelerator/Accelerator/ftsdk/include/PaxHeaders.3009/fterrors.h: -------------------------------------------------------------------------------- 1 | 30 atime=1394114088.087502991 2 | 30 ctime=1384254877.871227088 3 | -------------------------------------------------------------------------------- /Accelerator/Accelerator/ftsdk/include/PaxHeaders.3009/ftgasp.h: -------------------------------------------------------------------------------- 1 | 30 atime=1394128255.828381856 2 | 30 ctime=1384254877.871227088 3 | -------------------------------------------------------------------------------- /Accelerator/Accelerator/ftsdk/include/PaxHeaders.3009/ftglyph.h: -------------------------------------------------------------------------------- 1 | 30 mtime=1378199403.070037192 2 | 30 atime=1394114088.135502391 3 | 30 ctime=1384254877.871227088 4 | -------------------------------------------------------------------------------- /Accelerator/Accelerator/ftsdk/include/PaxHeaders.3009/ftgxval.h: -------------------------------------------------------------------------------- 1 | 30 mtime=1378199453.443407438 2 | 29 atime=1394128256.17437753 3 | 30 ctime=1384254877.872227075 4 | -------------------------------------------------------------------------------- /Accelerator/Accelerator/ftsdk/include/PaxHeaders.3009/ftgzip.h: -------------------------------------------------------------------------------- 1 | 30 mtime=1377705527.640876835 2 | 30 atime=1394128263.193289782 3 | 30 ctime=1384254877.872227075 4 | -------------------------------------------------------------------------------- /Accelerator/Accelerator/ftsdk/include/PaxHeaders.3009/ftimage.h: -------------------------------------------------------------------------------- 1 | 30 mtime=1384255168.371595333 2 | 30 atime=1394114088.059503341 3 | 30 ctime=1384255168.371595333 4 | -------------------------------------------------------------------------------- /Accelerator/Accelerator/ftsdk/include/PaxHeaders.3009/ftincrem.h: -------------------------------------------------------------------------------- 1 | 30 atime=1394114088.187501741 2 | 30 ctime=1384254877.872227075 3 | -------------------------------------------------------------------------------- /Accelerator/Accelerator/ftsdk/include/PaxHeaders.3009/ftlcdfil.h: -------------------------------------------------------------------------------- 1 | 30 mtime=1378199695.091386422 2 | 30 atime=1394114088.138502353 3 | 30 ctime=1384254877.872227075 4 | -------------------------------------------------------------------------------- /Accelerator/Accelerator/ftsdk/include/PaxHeaders.3009/ftlist.h: -------------------------------------------------------------------------------- 1 | 30 mtime=1378199736.141873221 2 | 30 atime=1394128253.761407697 3 | 30 ctime=1384254877.872227075 4 | -------------------------------------------------------------------------------- /Accelerator/Accelerator/ftsdk/include/PaxHeaders.3009/ftlzw.h: -------------------------------------------------------------------------------- 1 | 30 atime=1394128263.215289507 2 | 30 ctime=1384254877.872227075 3 | -------------------------------------------------------------------------------- /Accelerator/Accelerator/ftsdk/include/PaxHeaders.3009/ftmac.h: -------------------------------------------------------------------------------- 1 | 30 mtime=1384255220.718940901 2 | 30 atime=1394144024.154250655 3 | 30 ctime=1384255220.718940901 4 | -------------------------------------------------------------------------------- /Accelerator/Accelerator/ftsdk/include/PaxHeaders.3009/ftmm.h: -------------------------------------------------------------------------------- 1 | 30 mtime=1378200067.117735453 2 | 30 atime=1394114088.317500115 3 | 30 ctime=1384254877.872227075 4 | -------------------------------------------------------------------------------- /Accelerator/Accelerator/ftsdk/include/PaxHeaders.3009/ftmodapi.h: -------------------------------------------------------------------------------- 1 | 30 mtime=1378200108.364219801 2 | 30 atime=1394114088.110502703 3 | 30 ctime=1384254877.872227075 4 | -------------------------------------------------------------------------------- /Accelerator/Accelerator/ftsdk/include/PaxHeaders.3009/ftmoderr.h: -------------------------------------------------------------------------------- 1 | 30 atime=1394114088.087502991 2 | 30 ctime=1384254877.872227075 3 | -------------------------------------------------------------------------------- /Accelerator/Accelerator/ftsdk/include/PaxHeaders.3009/ftotval.h: -------------------------------------------------------------------------------- 1 | 30 mtime=1378200136.121872783 2 | 30 atime=1394128256.540372955 3 | 30 ctime=1384254877.872227075 4 | -------------------------------------------------------------------------------- /Accelerator/Accelerator/ftsdk/include/PaxHeaders.3009/ftoutln.h: -------------------------------------------------------------------------------- 1 | 30 mtime=1391150767.433909242 2 | 30 atime=1394114088.478498103 3 | 30 ctime=1391150767.433909242 4 | -------------------------------------------------------------------------------- /Accelerator/Accelerator/ftsdk/include/PaxHeaders.3009/ftpfr.h: -------------------------------------------------------------------------------- 1 | 30 atime=1394128256.805369642 2 | 30 ctime=1384254877.872227075 3 | -------------------------------------------------------------------------------- /Accelerator/Accelerator/ftsdk/include/PaxHeaders.3009/ftrender.h: -------------------------------------------------------------------------------- 1 | 30 atime=1394114088.109502716 2 | 30 ctime=1384254877.872227075 3 | -------------------------------------------------------------------------------- /Accelerator/Accelerator/ftsdk/include/PaxHeaders.3009/ftsizes.h: -------------------------------------------------------------------------------- 1 | 30 mtime=1378200210.892938016 2 | 30 atime=1394114088.137502366 3 | 30 ctime=1384254877.872227075 4 | -------------------------------------------------------------------------------- /Accelerator/Accelerator/ftsdk/include/PaxHeaders.3009/ftsnames.h: -------------------------------------------------------------------------------- 1 | 30 mtime=1378200265.280258081 2 | 30 atime=1394128253.915405771 3 | 30 ctime=1384254877.873227063 4 | -------------------------------------------------------------------------------- /Accelerator/Accelerator/ftsdk/include/PaxHeaders.3009/ftstroke.h: -------------------------------------------------------------------------------- 1 | 30 atime=1394128256.890368579 2 | 30 ctime=1384254877.873227063 3 | -------------------------------------------------------------------------------- /Accelerator/Accelerator/ftsdk/include/PaxHeaders.3009/ftsynth.h: -------------------------------------------------------------------------------- 1 | 30 mtime=1378200294.538892297 2 | 30 atime=1394128257.266363879 3 | 30 ctime=1384254877.873227063 4 | -------------------------------------------------------------------------------- /Accelerator/Accelerator/ftsdk/include/PaxHeaders.3009/ftsystem.h: -------------------------------------------------------------------------------- 1 | 30 atime=1394114088.033503666 2 | 30 ctime=1384254877.873227063 3 | -------------------------------------------------------------------------------- /Accelerator/Accelerator/ftsdk/include/PaxHeaders.3009/fttrigon.h: -------------------------------------------------------------------------------- 1 | 29 atime=1394114088.55949709 2 | 30 ctime=1384254877.873227063 3 | -------------------------------------------------------------------------------- /Accelerator/Accelerator/ftsdk/include/PaxHeaders.3009/ftttdrv.h: -------------------------------------------------------------------------------- 1 | 30 mtime=1386494040.038304334 2 | 30 atime=1394114088.358499603 3 | 30 ctime=1386494040.038304334 4 | -------------------------------------------------------------------------------- /Accelerator/Accelerator/ftsdk/include/PaxHeaders.3009/fttypes.h: -------------------------------------------------------------------------------- 1 | 30 mtime=1378200427.480230302 2 | 30 atime=1394114088.014503903 3 | 30 ctime=1384254877.873227063 4 | -------------------------------------------------------------------------------- /Accelerator/Accelerator/ftsdk/include/PaxHeaders.3009/ftwinfnt.h: -------------------------------------------------------------------------------- 1 | 30 atime=1394128257.481361191 2 | 30 ctime=1384254877.873227063 3 | -------------------------------------------------------------------------------- /Accelerator/Accelerator/ftsdk/include/PaxHeaders.3009/ftxf86.h: -------------------------------------------------------------------------------- 1 | 30 mtime=1378200448.571966619 2 | 30 atime=1394128257.579359966 3 | 30 ctime=1384254877.873227063 4 | -------------------------------------------------------------------------------- /Accelerator/Accelerator/ftsdk/include/PaxHeaders.3009/internal: -------------------------------------------------------------------------------- 1 | 30 mtime=1394144021.308286235 2 | 30 atime=1394144022.732268432 3 | 30 ctime=1394144021.308286235 4 | -------------------------------------------------------------------------------- /Accelerator/Accelerator/ftsdk/include/PaxHeaders.3009/t1tables.h: -------------------------------------------------------------------------------- 1 | 30 atime=1394114088.332499928 2 | 30 ctime=1384254877.873227063 3 | -------------------------------------------------------------------------------- /Accelerator/Accelerator/ftsdk/include/PaxHeaders.3009/ttnameid.h: -------------------------------------------------------------------------------- 1 | 30 mtime=1378200484.325519638 2 | 30 atime=1394114090.604471524 3 | 30 ctime=1384254877.873227063 4 | -------------------------------------------------------------------------------- /Accelerator/Accelerator/ftsdk/include/PaxHeaders.3009/tttables.h: -------------------------------------------------------------------------------- 1 | 30 mtime=1384583937.056646766 2 | 30 atime=1394114088.313500165 3 | 30 ctime=1384583937.056646766 4 | -------------------------------------------------------------------------------- /Accelerator/Accelerator/ftsdk/include/PaxHeaders.3009/tttags.h: -------------------------------------------------------------------------------- 1 | 30 mtime=1377791618.074958485 2 | 30 atime=1394114088.445498515 3 | 30 ctime=1384254877.873227063 4 | -------------------------------------------------------------------------------- /Accelerator/Accelerator/ftsdk/include/PaxHeaders.3009/ttunpat.h: -------------------------------------------------------------------------------- 1 | 30 atime=1394144024.410247455 2 | 30 ctime=1384254877.873227063 3 | -------------------------------------------------------------------------------- /Accelerator/Accelerator/ftsdk/include/config/PaxHeaders.3009/ftconfig.h: -------------------------------------------------------------------------------- 1 | 30 mtime=1393673182.349867145 2 | 30 atime=1394114087.655508392 3 | 30 ctime=1393673182.349867145 4 | -------------------------------------------------------------------------------- /Accelerator/Accelerator/ftsdk/include/config/PaxHeaders.3009/ftheader.h: -------------------------------------------------------------------------------- 1 | 30 mtime=1384255659.242458603 2 | 30 atime=1394114087.593509167 3 | 30 ctime=1384255659.242458603 4 | -------------------------------------------------------------------------------- /Accelerator/Accelerator/ftsdk/include/config/PaxHeaders.3009/ftmodule.h: -------------------------------------------------------------------------------- 1 | 29 atime=1394144024.46024683 2 | 30 ctime=1374498496.917304702 3 | -------------------------------------------------------------------------------- /Accelerator/Accelerator/ftsdk/include/config/PaxHeaders.3009/ftoption.h: -------------------------------------------------------------------------------- 1 | 30 mtime=1393673254.842960857 2 | 30 atime=1394144024.469246717 3 | 30 ctime=1393673254.842960857 4 | -------------------------------------------------------------------------------- /Accelerator/Accelerator/ftsdk/include/config/PaxHeaders.3009/ftstdlib.h: -------------------------------------------------------------------------------- 1 | 30 atime=1394114087.680508079 2 | 30 ctime=1374498496.920304664 3 | -------------------------------------------------------------------------------- /Accelerator/Accelerator/ftsdk/include/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 | -------------------------------------------------------------------------------- /Accelerator/Accelerator/ftsdk/include/ft2build.h: -------------------------------------------------------------------------------- 1 | /***************************************************************************/ 2 | /* */ 3 | /* ft2build.h */ 4 | /* */ 5 | /* FreeType 2 build and setup macros. */ 6 | /* */ 7 | /* Copyright 1996-2001, 2006, 2013 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 | /*************************************************************************/ 20 | /* */ 21 | /* This is the `entry point' for FreeType header file inclusions. It is */ 22 | /* the only header file which should be included directly; all other */ 23 | /* FreeType header files should be accessed with macro names (after */ 24 | /* including `ft2build.h'). */ 25 | /* */ 26 | /* A typical example is */ 27 | /* */ 28 | /* #include */ 29 | /* #include FT_FREETYPE_H */ 30 | /* */ 31 | /*************************************************************************/ 32 | 33 | 34 | #ifndef __FT2BUILD_H__ 35 | #define __FT2BUILD_H__ 36 | 37 | #include 38 | 39 | #endif /* __FT2BUILD_H__ */ 40 | 41 | 42 | /* END */ 43 | -------------------------------------------------------------------------------- /Accelerator/Accelerator/ftsdk/include/ftbbox.h: -------------------------------------------------------------------------------- 1 | /***************************************************************************/ 2 | /* */ 3 | /* ftbbox.h */ 4 | /* */ 5 | /* FreeType exact bbox computation (specification). */ 6 | /* */ 7 | /* Copyright 1996-2001, 2003, 2007, 2011, 2013 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 | /*************************************************************************/ 20 | /* */ 21 | /* This component has a _single_ role: to compute exact outline bounding */ 22 | /* boxes. */ 23 | /* */ 24 | /* It is separated from the rest of the engine for various technical */ 25 | /* reasons. It may well be integrated in `ftoutln' later. */ 26 | /* */ 27 | /*************************************************************************/ 28 | 29 | 30 | #ifndef __FTBBOX_H__ 31 | #define __FTBBOX_H__ 32 | 33 | 34 | #include 35 | #include FT_FREETYPE_H 36 | 37 | #ifdef FREETYPE_H 38 | #error "freetype.h of FreeType 1 has been loaded!" 39 | #error "Please fix the directory search order for header files" 40 | #error "so that freetype.h of FreeType 2 is found first." 41 | #endif 42 | 43 | 44 | FT_BEGIN_HEADER 45 | 46 | 47 | /*************************************************************************/ 48 | /* */ 49 | /*
*/ 50 | /* outline_processing */ 51 | /* */ 52 | /*************************************************************************/ 53 | 54 | 55 | /*************************************************************************/ 56 | /* */ 57 | /* */ 58 | /* FT_Outline_Get_BBox */ 59 | /* */ 60 | /* */ 61 | /* Compute the exact bounding box of an outline. This is slower */ 62 | /* than computing the control box. However, it uses an advanced */ 63 | /* algorithm that returns _very_ quickly when the two boxes */ 64 | /* coincide. Otherwise, the outline Bézier arcs are traversed to */ 65 | /* extract their extrema. */ 66 | /* */ 67 | /* */ 68 | /* outline :: A pointer to the source outline. */ 69 | /* */ 70 | /* */ 71 | /* abbox :: The outline's exact bounding box. */ 72 | /* */ 73 | /* */ 74 | /* FreeType error code. 0~means success. */ 75 | /* */ 76 | /* */ 77 | /* If the font is tricky and the glyph has been loaded with */ 78 | /* @FT_LOAD_NO_SCALE, the resulting BBox is meaningless. To get */ 79 | /* reasonable values for the BBox it is necessary to load the glyph */ 80 | /* at a large ppem value (so that the hinting instructions can */ 81 | /* properly shift and scale the subglyphs), then extracting the BBox, */ 82 | /* which can be eventually converted back to font units. */ 83 | /* */ 84 | FT_EXPORT( FT_Error ) 85 | FT_Outline_Get_BBox( FT_Outline* outline, 86 | FT_BBox *abbox ); 87 | 88 | 89 | /* */ 90 | 91 | 92 | FT_END_HEADER 93 | 94 | #endif /* __FTBBOX_H__ */ 95 | 96 | 97 | /* END */ 98 | 99 | 100 | /* Local Variables: */ 101 | /* coding: utf-8 */ 102 | /* End: */ 103 | -------------------------------------------------------------------------------- /Accelerator/Accelerator/ftsdk/include/ftbzip2.h: -------------------------------------------------------------------------------- 1 | /***************************************************************************/ 2 | /* */ 3 | /* ftbzip2.h */ 4 | /* */ 5 | /* Bzip2-compressed stream support. */ 6 | /* */ 7 | /* Copyright 2010 by */ 8 | /* Joel Klinghed. */ 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 __FTBZIP2_H__ 20 | #define __FTBZIP2_H__ 21 | 22 | #include 23 | #include FT_FREETYPE_H 24 | 25 | #ifdef FREETYPE_H 26 | #error "freetype.h of FreeType 1 has been loaded!" 27 | #error "Please fix the directory search order for header files" 28 | #error "so that freetype.h of FreeType 2 is found first." 29 | #endif 30 | 31 | 32 | FT_BEGIN_HEADER 33 | 34 | /*************************************************************************/ 35 | /* */ 36 | /*
*/ 37 | /* bzip2 */ 38 | /* */ 39 | /* */ 40 | /* BZIP2 Streams */ 41 | /* */ 42 | /* <Abstract> */ 43 | /* Using bzip2-compressed font files. */ 44 | /* */ 45 | /* <Description> */ 46 | /* This section contains the declaration of Bzip2-specific functions. */ 47 | /* */ 48 | /*************************************************************************/ 49 | 50 | 51 | /************************************************************************ 52 | * 53 | * @function: 54 | * FT_Stream_OpenBzip2 55 | * 56 | * @description: 57 | * Open a new stream to parse bzip2-compressed font files. This is 58 | * mainly used to support the compressed `*.pcf.bz2' fonts that come 59 | * with XFree86. 60 | * 61 | * @input: 62 | * stream :: 63 | * The target embedding stream. 64 | * 65 | * source :: 66 | * The source stream. 67 | * 68 | * @return: 69 | * FreeType error code. 0~means success. 70 | * 71 | * @note: 72 | * The source stream must be opened _before_ calling this function. 73 | * 74 | * Calling the internal function `FT_Stream_Close' on the new stream will 75 | * *not* call `FT_Stream_Close' on the source stream. None of the stream 76 | * objects will be released to the heap. 77 | * 78 | * The stream implementation is very basic and resets the decompression 79 | * process each time seeking backwards is needed within the stream. 80 | * 81 | * In certain builds of the library, bzip2 compression recognition is 82 | * automatically handled when calling @FT_New_Face or @FT_Open_Face. 83 | * This means that if no font driver is capable of handling the raw 84 | * compressed file, the library will try to open a bzip2 compressed stream 85 | * from it and re-open the face with it. 86 | * 87 | * This function may return `FT_Err_Unimplemented_Feature' if your build 88 | * of FreeType was not compiled with bzip2 support. 89 | */ 90 | FT_EXPORT( FT_Error ) 91 | FT_Stream_OpenBzip2( FT_Stream stream, 92 | FT_Stream source ); 93 | 94 | /* */ 95 | 96 | 97 | FT_END_HEADER 98 | 99 | #endif /* __FTBZIP2_H__ */ 100 | 101 | 102 | /* END */ 103 | -------------------------------------------------------------------------------- /Accelerator/Accelerator/ftsdk/include/ftgasp.h: -------------------------------------------------------------------------------- 1 | /***************************************************************************/ 2 | /* */ 3 | /* ftgasp.h */ 4 | /* */ 5 | /* Access of TrueType's `gasp' table (specification). */ 6 | /* */ 7 | /* Copyright 2007, 2008, 2011 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 _FT_GASP_H_ 20 | #define _FT_GASP_H_ 21 | 22 | #include <ft2build.h> 23 | #include FT_FREETYPE_H 24 | 25 | #ifdef FREETYPE_H 26 | #error "freetype.h of FreeType 1 has been loaded!" 27 | #error "Please fix the directory search order for header files" 28 | #error "so that freetype.h of FreeType 2 is found first." 29 | #endif 30 | 31 | 32 | /*************************************************************************** 33 | * 34 | * @section: 35 | * gasp_table 36 | * 37 | * @title: 38 | * Gasp Table 39 | * 40 | * @abstract: 41 | * Retrieving TrueType `gasp' table entries. 42 | * 43 | * @description: 44 | * The function @FT_Get_Gasp can be used to query a TrueType or OpenType 45 | * font for specific entries in its `gasp' table, if any. This is 46 | * mainly useful when implementing native TrueType hinting with the 47 | * bytecode interpreter to duplicate the Windows text rendering results. 48 | */ 49 | 50 | /************************************************************************* 51 | * 52 | * @enum: 53 | * FT_GASP_XXX 54 | * 55 | * @description: 56 | * A list of values and/or bit-flags returned by the @FT_Get_Gasp 57 | * function. 58 | * 59 | * @values: 60 | * FT_GASP_NO_TABLE :: 61 | * This special value means that there is no GASP table in this face. 62 | * It is up to the client to decide what to do. 63 | * 64 | * FT_GASP_DO_GRIDFIT :: 65 | * Grid-fitting and hinting should be performed at the specified ppem. 66 | * This *really* means TrueType bytecode interpretation. If this bit 67 | * is not set, no hinting gets applied. 68 | * 69 | * FT_GASP_DO_GRAY :: 70 | * Anti-aliased rendering should be performed at the specified ppem. 71 | * If not set, do monochrome rendering. 72 | * 73 | * FT_GASP_SYMMETRIC_SMOOTHING :: 74 | * If set, smoothing along multiple axes must be used with ClearType. 75 | * 76 | * FT_GASP_SYMMETRIC_GRIDFIT :: 77 | * Grid-fitting must be used with ClearType's symmetric smoothing. 78 | * 79 | * @note: 80 | * The bit-flags `FT_GASP_DO_GRIDFIT' and `FT_GASP_DO_GRAY' are to be 81 | * used for standard font rasterization only. Independently of that, 82 | * `FT_GASP_SYMMETRIC_SMOOTHING' and `FT_GASP_SYMMETRIC_GRIDFIT' are to 83 | * be used if ClearType is enabled (and `FT_GASP_DO_GRIDFIT' and 84 | * `FT_GASP_DO_GRAY' are consequently ignored). 85 | * 86 | * `ClearType' is Microsoft's implementation of LCD rendering, partly 87 | * protected by patents. 88 | * 89 | * @since: 90 | * 2.3.0 91 | */ 92 | #define FT_GASP_NO_TABLE -1 93 | #define FT_GASP_DO_GRIDFIT 0x01 94 | #define FT_GASP_DO_GRAY 0x02 95 | #define FT_GASP_SYMMETRIC_SMOOTHING 0x08 96 | #define FT_GASP_SYMMETRIC_GRIDFIT 0x10 97 | 98 | 99 | /************************************************************************* 100 | * 101 | * @func: 102 | * FT_Get_Gasp 103 | * 104 | * @description: 105 | * Read the `gasp' table from a TrueType or OpenType font file and 106 | * return the entry corresponding to a given character pixel size. 107 | * 108 | * @input: 109 | * face :: The source face handle. 110 | * ppem :: The vertical character pixel size. 111 | * 112 | * @return: 113 | * Bit flags (see @FT_GASP_XXX), or @FT_GASP_NO_TABLE if there is no 114 | * `gasp' table in the face. 115 | * 116 | * @since: 117 | * 2.3.0 118 | */ 119 | FT_EXPORT( FT_Int ) 120 | FT_Get_Gasp( FT_Face face, 121 | FT_UInt ppem ); 122 | 123 | /* */ 124 | 125 | #endif /* _FT_GASP_H_ */ 126 | 127 | 128 | /* END */ 129 | -------------------------------------------------------------------------------- /Accelerator/Accelerator/ftsdk/include/ftlzw.h: -------------------------------------------------------------------------------- 1 | /***************************************************************************/ 2 | /* */ 3 | /* ftlzw.h */ 4 | /* */ 5 | /* LZW-compressed stream support. */ 6 | /* */ 7 | /* Copyright 2004, 2006 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 __FTLZW_H__ 20 | #define __FTLZW_H__ 21 | 22 | #include <ft2build.h> 23 | #include FT_FREETYPE_H 24 | 25 | #ifdef FREETYPE_H 26 | #error "freetype.h of FreeType 1 has been loaded!" 27 | #error "Please fix the directory search order for header files" 28 | #error "so that freetype.h of FreeType 2 is found first." 29 | #endif 30 | 31 | 32 | FT_BEGIN_HEADER 33 | 34 | /*************************************************************************/ 35 | /* */ 36 | /* <Section> */ 37 | /* lzw */ 38 | /* */ 39 | /* <Title> */ 40 | /* LZW Streams */ 41 | /* */ 42 | /* <Abstract> */ 43 | /* Using LZW-compressed font files. */ 44 | /* */ 45 | /* <Description> */ 46 | /* This section contains the declaration of LZW-specific functions. */ 47 | /* */ 48 | /*************************************************************************/ 49 | 50 | /************************************************************************ 51 | * 52 | * @function: 53 | * FT_Stream_OpenLZW 54 | * 55 | * @description: 56 | * Open a new stream to parse LZW-compressed font files. This is 57 | * mainly used to support the compressed `*.pcf.Z' fonts that come 58 | * with XFree86. 59 | * 60 | * @input: 61 | * stream :: The target embedding stream. 62 | * 63 | * source :: The source stream. 64 | * 65 | * @return: 66 | * FreeType error code. 0~means success. 67 | * 68 | * @note: 69 | * The source stream must be opened _before_ calling this function. 70 | * 71 | * Calling the internal function `FT_Stream_Close' on the new stream will 72 | * *not* call `FT_Stream_Close' on the source stream. None of the stream 73 | * objects will be released to the heap. 74 | * 75 | * The stream implementation is very basic and resets the decompression 76 | * process each time seeking backwards is needed within the stream 77 | * 78 | * In certain builds of the library, LZW compression recognition is 79 | * automatically handled when calling @FT_New_Face or @FT_Open_Face. 80 | * This means that if no font driver is capable of handling the raw 81 | * compressed file, the library will try to open a LZW stream from it 82 | * and re-open the face with it. 83 | * 84 | * This function may return `FT_Err_Unimplemented_Feature' if your build 85 | * of FreeType was not compiled with LZW support. 86 | */ 87 | FT_EXPORT( FT_Error ) 88 | FT_Stream_OpenLZW( FT_Stream stream, 89 | FT_Stream source ); 90 | 91 | /* */ 92 | 93 | 94 | FT_END_HEADER 95 | 96 | #endif /* __FTLZW_H__ */ 97 | 98 | 99 | /* END */ 100 | -------------------------------------------------------------------------------- /Accelerator/Accelerator/ftsdk/include/ftsynth.h: -------------------------------------------------------------------------------- 1 | /***************************************************************************/ 2 | /* */ 3 | /* ftsynth.h */ 4 | /* */ 5 | /* FreeType synthesizing code for emboldening and slanting */ 6 | /* (specification). */ 7 | /* */ 8 | /* Copyright 2000-2001, 2003, 2006, 2008, 2012, 2013 by */ 9 | /* David Turner, Robert Wilhelm, and Werner Lemberg. */ 10 | /* */ 11 | /* This file is part of the FreeType project, and may only be used, */ 12 | /* modified, and distributed under the terms of the FreeType project */ 13 | /* license, LICENSE.TXT. By continuing to use, modify, or distribute */ 14 | /* this file you indicate that you have read the license and */ 15 | /* understand and accept it fully. */ 16 | /* */ 17 | /***************************************************************************/ 18 | 19 | 20 | /*************************************************************************/ 21 | /*************************************************************************/ 22 | /*************************************************************************/ 23 | /*************************************************************************/ 24 | /*************************************************************************/ 25 | /********* *********/ 26 | /********* WARNING, THIS IS ALPHA CODE! THIS API *********/ 27 | /********* IS DUE TO CHANGE UNTIL STRICTLY NOTIFIED BY THE *********/ 28 | /********* FREETYPE DEVELOPMENT TEAM *********/ 29 | /********* *********/ 30 | /*************************************************************************/ 31 | /*************************************************************************/ 32 | /*************************************************************************/ 33 | /*************************************************************************/ 34 | /*************************************************************************/ 35 | 36 | 37 | /* Main reason for not lifting the functions in this module to a */ 38 | /* `standard' API is that the used parameters for emboldening and */ 39 | /* slanting are not configurable. Consider the functions as a */ 40 | /* code resource that should be copied into the application and */ 41 | /* adapted to the particular needs. */ 42 | 43 | 44 | #ifndef __FTSYNTH_H__ 45 | #define __FTSYNTH_H__ 46 | 47 | 48 | #include <ft2build.h> 49 | #include FT_FREETYPE_H 50 | 51 | #ifdef FREETYPE_H 52 | #error "freetype.h of FreeType 1 has been loaded!" 53 | #error "Please fix the directory search order for header files" 54 | #error "so that freetype.h of FreeType 2 is found first." 55 | #endif 56 | 57 | 58 | FT_BEGIN_HEADER 59 | 60 | /* Embolden a glyph by a `reasonable' value (which is highly a matter of */ 61 | /* taste). This function is actually a convenience function, providing */ 62 | /* a wrapper for @FT_Outline_Embolden and @FT_Bitmap_Embolden. */ 63 | /* */ 64 | /* For emboldened outlines the height, width, and advance metrics are */ 65 | /* increased by the strength of the emboldening. You can also call */ 66 | /* @FT_Outline_Get_CBox to get precise values. */ 67 | FT_EXPORT( void ) 68 | FT_GlyphSlot_Embolden( FT_GlyphSlot slot ); 69 | 70 | /* Slant an outline glyph to the right by about 12 degrees. */ 71 | FT_EXPORT( void ) 72 | FT_GlyphSlot_Oblique( FT_GlyphSlot slot ); 73 | 74 | /* */ 75 | 76 | FT_END_HEADER 77 | 78 | #endif /* __FTSYNTH_H__ */ 79 | 80 | 81 | /* END */ 82 | -------------------------------------------------------------------------------- /Accelerator/Accelerator/ftsdk/include/ftxf86.h: -------------------------------------------------------------------------------- 1 | /***************************************************************************/ 2 | /* */ 3 | /* ftxf86.h */ 4 | /* */ 5 | /* Support functions for X11. */ 6 | /* */ 7 | /* Copyright 2002-2004, 2006, 2007, 2013 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 __FTXF86_H__ 20 | #define __FTXF86_H__ 21 | 22 | #include <ft2build.h> 23 | #include FT_FREETYPE_H 24 | 25 | #ifdef FREETYPE_H 26 | #error "freetype.h of FreeType 1 has been loaded!" 27 | #error "Please fix the directory search order for header files" 28 | #error "so that freetype.h of FreeType 2 is found first." 29 | #endif 30 | 31 | 32 | FT_BEGIN_HEADER 33 | 34 | 35 | /*************************************************************************/ 36 | /* */ 37 | /* <Section> */ 38 | /* font_formats */ 39 | /* */ 40 | /* <Title> */ 41 | /* Font Formats */ 42 | /* */ 43 | /* <Abstract> */ 44 | /* Getting the font format. */ 45 | /* */ 46 | /* <Description> */ 47 | /* The single function in this section can be used to get the font */ 48 | /* format. Note that this information is not needed normally; */ 49 | /* however, there are special cases (like in PDF devices) where it is */ 50 | /* important to differentiate, in spite of FreeType's uniform API. */ 51 | /* */ 52 | /* This function is in the X11/xf86 namespace for historical reasons */ 53 | /* and in no way depends on that windowing system. */ 54 | /* */ 55 | /*************************************************************************/ 56 | 57 | 58 | /*************************************************************************/ 59 | /* */ 60 | /* <Function> */ 61 | /* FT_Get_X11_Font_Format */ 62 | /* */ 63 | /* <Description> */ 64 | /* Return a string describing the format of a given face, using values */ 65 | /* that can be used as an X11 FONT_PROPERTY. Possible values are */ 66 | /* `TrueType', `Type~1', `BDF', `PCF', `Type~42', `CID~Type~1', `CFF', */ 67 | /* `PFR', and `Windows~FNT'. */ 68 | /* */ 69 | /* <Input> */ 70 | /* face :: */ 71 | /* Input face handle. */ 72 | /* */ 73 | /* <Return> */ 74 | /* Font format string. NULL in case of error. */ 75 | /* */ 76 | FT_EXPORT( const char* ) 77 | FT_Get_X11_Font_Format( FT_Face face ); 78 | 79 | /* */ 80 | 81 | FT_END_HEADER 82 | 83 | #endif /* __FTXF86_H__ */ 84 | -------------------------------------------------------------------------------- /Accelerator/Accelerator/ftsdk/include/internal/PaxHeaders.3009/autohint.h: -------------------------------------------------------------------------------- 1 | 30 atime=1394114088.164502028 2 | 30 ctime=1374498496.797306202 3 | -------------------------------------------------------------------------------- /Accelerator/Accelerator/ftsdk/include/internal/PaxHeaders.3009/ftcalc.h: -------------------------------------------------------------------------------- 1 | 30 mtime=1377632107.107509255 2 | 30 atime=1394114088.464498278 3 | 30 ctime=1377632107.107509255 4 | -------------------------------------------------------------------------------- /Accelerator/Accelerator/ftsdk/include/internal/PaxHeaders.3009/ftdebug.h: -------------------------------------------------------------------------------- 1 | 30 atime=1394114088.250500953 2 | 30 ctime=1374498496.799306177 3 | -------------------------------------------------------------------------------- /Accelerator/Accelerator/ftsdk/include/internal/PaxHeaders.3009/ftdriver.h: -------------------------------------------------------------------------------- 1 | 30 atime=1394114088.163502041 2 | 30 ctime=1374498496.795306227 3 | -------------------------------------------------------------------------------- /Accelerator/Accelerator/ftsdk/include/internal/PaxHeaders.3009/ftgloadr.h: -------------------------------------------------------------------------------- 1 | 30 atime=1394114088.161502066 2 | 30 ctime=1374498496.800306165 3 | -------------------------------------------------------------------------------- /Accelerator/Accelerator/ftsdk/include/internal/PaxHeaders.3009/ftmemory.h: -------------------------------------------------------------------------------- 1 | 30 atime=1394114088.157502116 2 | 30 ctime=1374498496.785306352 3 | -------------------------------------------------------------------------------- /Accelerator/Accelerator/ftsdk/include/internal/PaxHeaders.3009/ftobjs.h: -------------------------------------------------------------------------------- 1 | 30 atime=1394114088.108502728 2 | 29 ctime=1374498496.81030604 3 | -------------------------------------------------------------------------------- /Accelerator/Accelerator/ftsdk/include/internal/PaxHeaders.3009/ftpic.h: -------------------------------------------------------------------------------- 1 | 30 atime=1394114088.187501741 2 | 29 ctime=1374498496.80230614 3 | -------------------------------------------------------------------------------- /Accelerator/Accelerator/ftsdk/include/internal/PaxHeaders.3009/ftrfork.h: -------------------------------------------------------------------------------- 1 | 29 mtime=1388168167.13325837 2 | 30 atime=1394128253.789407347 3 | 29 ctime=1388168167.13325837 4 | -------------------------------------------------------------------------------- /Accelerator/Accelerator/ftsdk/include/internal/PaxHeaders.3009/ftserv.h: -------------------------------------------------------------------------------- 1 | 30 mtime=1384255710.437818573 2 | 30 atime=1394114088.186501753 3 | 30 ctime=1384255710.437818573 4 | -------------------------------------------------------------------------------- /Accelerator/Accelerator/ftsdk/include/internal/PaxHeaders.3009/ftstream.h: -------------------------------------------------------------------------------- 1 | 30 atime=1394114088.278500603 2 | 30 ctime=1374498496.812306015 3 | -------------------------------------------------------------------------------- /Accelerator/Accelerator/ftsdk/include/internal/PaxHeaders.3009/fttrace.h: -------------------------------------------------------------------------------- 1 | 29 mtime=1389856558.09184179 2 | 30 atime=1394114088.276500628 3 | 29 ctime=1389856558.09184179 4 | -------------------------------------------------------------------------------- /Accelerator/Accelerator/ftsdk/include/internal/PaxHeaders.3009/ftvalid.h: -------------------------------------------------------------------------------- 1 | 30 atime=1394128253.774407534 2 | 30 ctime=1374498496.818305939 3 | -------------------------------------------------------------------------------- /Accelerator/Accelerator/ftsdk/include/internal/PaxHeaders.3009/internal.h: -------------------------------------------------------------------------------- 1 | 30 mtime=1384255736.909487631 2 | 30 atime=1394114087.593509167 3 | 30 ctime=1384255736.909487631 4 | -------------------------------------------------------------------------------- /Accelerator/Accelerator/ftsdk/include/internal/PaxHeaders.3009/psaux.h: -------------------------------------------------------------------------------- 1 | 30 atime=1394128259.160340201 2 | 30 ctime=1374498496.814305989 3 | -------------------------------------------------------------------------------- /Accelerator/Accelerator/ftsdk/include/internal/PaxHeaders.3009/pshints.h: -------------------------------------------------------------------------------- 1 | 30 atime=1394128255.712383306 2 | 30 ctime=1374498496.804306115 3 | -------------------------------------------------------------------------------- /Accelerator/Accelerator/ftsdk/include/internal/PaxHeaders.3009/services: -------------------------------------------------------------------------------- 1 | 30 mtime=1394144021.295286397 2 | 30 atime=1394144022.732268432 3 | 30 ctime=1394144021.295286397 4 | -------------------------------------------------------------------------------- /Accelerator/Accelerator/ftsdk/include/internal/PaxHeaders.3009/sfnt.h: -------------------------------------------------------------------------------- 1 | 30 atime=1394114088.280500578 2 | 29 ctime=1374498496.79030629 3 | -------------------------------------------------------------------------------- /Accelerator/Accelerator/ftsdk/include/internal/PaxHeaders.3009/t1types.h: -------------------------------------------------------------------------------- 1 | 30 atime=1394128255.692383556 2 | 30 ctime=1374498496.816305964 3 | -------------------------------------------------------------------------------- /Accelerator/Accelerator/ftsdk/include/internal/PaxHeaders.3009/tttypes.h: -------------------------------------------------------------------------------- 1 | 30 mtime=1386050277.519366357 2 | 30 atime=1394114088.294500403 3 | 30 ctime=1386050277.519366357 4 | -------------------------------------------------------------------------------- /Accelerator/Accelerator/ftsdk/include/internal/ftpic.h: -------------------------------------------------------------------------------- 1 | /***************************************************************************/ 2 | /* */ 3 | /* ftpic.h */ 4 | /* */ 5 | /* The FreeType position independent code services (declaration). */ 6 | /* */ 7 | /* Copyright 2009, 2012 by */ 8 | /* Oran Agra and Mickey Gabel. */ 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 | /* */ 20 | /* Modules that ordinarily have const global data that need address */ 21 | /* can instead define pointers here. */ 22 | /* */ 23 | /*************************************************************************/ 24 | 25 | 26 | #ifndef __FTPIC_H__ 27 | #define __FTPIC_H__ 28 | 29 | 30 | FT_BEGIN_HEADER 31 | 32 | #ifdef FT_CONFIG_OPTION_PIC 33 | 34 | typedef struct FT_PIC_Container_ 35 | { 36 | /* pic containers for base */ 37 | void* base; 38 | 39 | /* pic containers for modules */ 40 | void* autofit; 41 | void* cff; 42 | void* pshinter; 43 | void* psnames; 44 | void* raster; 45 | void* sfnt; 46 | void* smooth; 47 | void* truetype; 48 | 49 | } FT_PIC_Container; 50 | 51 | 52 | /* Initialize the various function tables, structs, etc. */ 53 | /* stored in the container. */ 54 | FT_BASE( FT_Error ) 55 | ft_pic_container_init( FT_Library library ); 56 | 57 | 58 | /* Destroy the contents of the container. */ 59 | FT_BASE( void ) 60 | ft_pic_container_destroy( FT_Library library ); 61 | 62 | #endif /* FT_CONFIG_OPTION_PIC */ 63 | 64 | /* */ 65 | 66 | FT_END_HEADER 67 | 68 | #endif /* __FTPIC_H__ */ 69 | 70 | 71 | /* END */ 72 | -------------------------------------------------------------------------------- /Accelerator/Accelerator/ftsdk/include/internal/internal.h: -------------------------------------------------------------------------------- 1 | /***************************************************************************/ 2 | /* */ 3 | /* internal.h */ 4 | /* */ 5 | /* Internal header files (specification only). */ 6 | /* */ 7 | /* Copyright 1996-2004, 2013 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 | /*************************************************************************/ 20 | /* */ 21 | /* This file is automatically included by `ft2build.h'. */ 22 | /* Do not include it manually! */ 23 | /* */ 24 | /*************************************************************************/ 25 | 26 | 27 | #define FT_INTERNAL_OBJECTS_H <internal/ftobjs.h> 28 | #define FT_INTERNAL_PIC_H <internal/ftpic.h> 29 | #define FT_INTERNAL_STREAM_H <internal/ftstream.h> 30 | #define FT_INTERNAL_MEMORY_H <internal/ftmemory.h> 31 | #define FT_INTERNAL_DEBUG_H <internal/ftdebug.h> 32 | #define FT_INTERNAL_CALC_H <internal/ftcalc.h> 33 | #define FT_INTERNAL_DRIVER_H <internal/ftdriver.h> 34 | #define FT_INTERNAL_TRACE_H <internal/fttrace.h> 35 | #define FT_INTERNAL_GLYPH_LOADER_H <internal/ftgloadr.h> 36 | #define FT_INTERNAL_SFNT_H <internal/sfnt.h> 37 | #define FT_INTERNAL_SERVICE_H <internal/ftserv.h> 38 | #define FT_INTERNAL_RFORK_H <internal/ftrfork.h> 39 | #define FT_INTERNAL_VALIDATE_H <internal/ftvalid.h> 40 | 41 | #define FT_INTERNAL_TRUETYPE_TYPES_H <internal/tttypes.h> 42 | #define FT_INTERNAL_TYPE1_TYPES_H <internal/t1types.h> 43 | 44 | #define FT_INTERNAL_POSTSCRIPT_AUX_H <internal/psaux.h> 45 | #define FT_INTERNAL_POSTSCRIPT_HINTS_H <internal/pshints.h> 46 | #define FT_INTERNAL_POSTSCRIPT_GLOBALS_H <internal/psglobal.h> 47 | 48 | #define FT_INTERNAL_AUTOHINT_H <internal/autohint.h> 49 | 50 | 51 | #if defined( _MSC_VER ) /* Visual C++ (and Intel C++) */ 52 | 53 | /* We disable the warning `conditional expression is constant' here */ 54 | /* in order to compile cleanly with the maximum level of warnings. */ 55 | /* In particular, the warning complains about stuff like `while(0)' */ 56 | /* which is very useful in macro definitions. There is no benefit */ 57 | /* in having it enabled. */ 58 | #pragma warning( disable : 4127 ) 59 | 60 | #endif /* _MSC_VER */ 61 | 62 | 63 | /* END */ 64 | -------------------------------------------------------------------------------- /Accelerator/Accelerator/ftsdk/include/internal/services/PaxHeaders.3009/svbdf.h: -------------------------------------------------------------------------------- 1 | 30 atime=1394114090.625471262 2 | 30 ctime=1374498496.828305814 3 | -------------------------------------------------------------------------------- /Accelerator/Accelerator/ftsdk/include/internal/services/PaxHeaders.3009/svcid.h: -------------------------------------------------------------------------------- 1 | 30 atime=1394128255.591384819 2 | 30 ctime=1374498496.823305877 3 | -------------------------------------------------------------------------------- /Accelerator/Accelerator/ftsdk/include/internal/services/PaxHeaders.3009/svgldict.h: -------------------------------------------------------------------------------- 1 | 30 atime=1394128253.808407109 2 | 30 ctime=1374498496.822305889 3 | -------------------------------------------------------------------------------- /Accelerator/Accelerator/ftsdk/include/internal/services/PaxHeaders.3009/svgxval.h: -------------------------------------------------------------------------------- 1 | 30 atime=1394128256.146377881 2 | 30 ctime=1374498496.833305752 3 | -------------------------------------------------------------------------------- /Accelerator/Accelerator/ftsdk/include/internal/services/PaxHeaders.3009/svkern.h: -------------------------------------------------------------------------------- 1 | 30 atime=1394128253.810407084 2 | 30 ctime=1374498496.837305702 3 | -------------------------------------------------------------------------------- /Accelerator/Accelerator/ftsdk/include/internal/services/PaxHeaders.3009/svmm.h: -------------------------------------------------------------------------------- 1 | 30 atime=1394114088.342499803 2 | 30 ctime=1374498496.830305789 3 | -------------------------------------------------------------------------------- /Accelerator/Accelerator/ftsdk/include/internal/services/PaxHeaders.3009/svotval.h: -------------------------------------------------------------------------------- 1 | 30 atime=1394128256.539372967 2 | 30 ctime=1374498496.824305864 3 | -------------------------------------------------------------------------------- /Accelerator/Accelerator/ftsdk/include/internal/services/PaxHeaders.3009/svpfr.h: -------------------------------------------------------------------------------- 1 | 30 atime=1394128256.781369942 2 | 30 ctime=1374498496.840305664 3 | -------------------------------------------------------------------------------- /Accelerator/Accelerator/ftsdk/include/internal/services/PaxHeaders.3009/svpostnm.h: -------------------------------------------------------------------------------- 1 | 30 atime=1394128253.808407109 2 | 30 ctime=1374498496.826305839 3 | -------------------------------------------------------------------------------- /Accelerator/Accelerator/ftsdk/include/internal/services/PaxHeaders.3009/svprop.h: -------------------------------------------------------------------------------- 1 | 30 atime=1394114088.344499778 2 | 30 ctime=1374498496.827305827 3 | -------------------------------------------------------------------------------- /Accelerator/Accelerator/ftsdk/include/internal/services/PaxHeaders.3009/svpscmap.h: -------------------------------------------------------------------------------- 1 | 30 atime=1394128255.720383206 2 | 30 ctime=1374498496.832305764 3 | -------------------------------------------------------------------------------- /Accelerator/Accelerator/ftsdk/include/internal/services/PaxHeaders.3009/svpsinfo.h: -------------------------------------------------------------------------------- 1 | 30 atime=1394128255.692383556 2 | 30 ctime=1374498496.836305714 3 | -------------------------------------------------------------------------------- /Accelerator/Accelerator/ftsdk/include/internal/services/PaxHeaders.3009/svsfnt.h: -------------------------------------------------------------------------------- 1 | 30 atime=1394128253.807407122 2 | 30 ctime=1374498496.839305677 3 | -------------------------------------------------------------------------------- /Accelerator/Accelerator/ftsdk/include/internal/services/PaxHeaders.3009/svttcmap.h: -------------------------------------------------------------------------------- 1 | 30 mtime=1384255772.590041563 2 | 30 atime=1394128253.809407097 3 | 30 ctime=1384255772.590041563 4 | -------------------------------------------------------------------------------- /Accelerator/Accelerator/ftsdk/include/internal/services/PaxHeaders.3009/svtteng.h: -------------------------------------------------------------------------------- 1 | 29 atime=1394114088.34349979 2 | 30 ctime=1374498496.834305739 3 | -------------------------------------------------------------------------------- /Accelerator/Accelerator/ftsdk/include/internal/services/PaxHeaders.3009/svttglyf.h: -------------------------------------------------------------------------------- 1 | 30 atime=1394114088.344499778 2 | 30 ctime=1374498496.829305802 3 | -------------------------------------------------------------------------------- /Accelerator/Accelerator/ftsdk/include/internal/services/PaxHeaders.3009/svwinfnt.h: -------------------------------------------------------------------------------- 1 | 30 atime=1394128257.520360703 2 | 30 ctime=1374498496.838305689 3 | -------------------------------------------------------------------------------- /Accelerator/Accelerator/ftsdk/include/internal/services/PaxHeaders.3009/svxf86nm.h: -------------------------------------------------------------------------------- 1 | 30 atime=1394114088.342499803 2 | 30 ctime=1374498496.831305777 3 | -------------------------------------------------------------------------------- /Accelerator/Accelerator/ftsdk/include/internal/services/svbdf.h: -------------------------------------------------------------------------------- 1 | /***************************************************************************/ 2 | /* */ 3 | /* svbdf.h */ 4 | /* */ 5 | /* The FreeType BDF services (specification). */ 6 | /* */ 7 | /* Copyright 2003, 2009, 2012 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 __SVBDF_H__ 20 | #define __SVBDF_H__ 21 | 22 | #include FT_BDF_H 23 | #include FT_INTERNAL_SERVICE_H 24 | 25 | 26 | FT_BEGIN_HEADER 27 | 28 | 29 | #define FT_SERVICE_ID_BDF "bdf" 30 | 31 | typedef FT_Error 32 | (*FT_BDF_GetCharsetIdFunc)( FT_Face face, 33 | const char* *acharset_encoding, 34 | const char* *acharset_registry ); 35 | 36 | typedef FT_Error 37 | (*FT_BDF_GetPropertyFunc)( FT_Face face, 38 | const char* prop_name, 39 | BDF_PropertyRec *aproperty ); 40 | 41 | 42 | FT_DEFINE_SERVICE( BDF ) 43 | { 44 | FT_BDF_GetCharsetIdFunc get_charset_id; 45 | FT_BDF_GetPropertyFunc get_property; 46 | }; 47 | 48 | 49 | #ifndef FT_CONFIG_OPTION_PIC 50 | 51 | #define FT_DEFINE_SERVICE_BDFRec( class_, \ 52 | get_charset_id_, \ 53 | get_property_ ) \ 54 | static const FT_Service_BDFRec class_ = \ 55 | { \ 56 | get_charset_id_, get_property_ \ 57 | }; 58 | 59 | #else /* FT_CONFIG_OPTION_PIC */ 60 | 61 | #define FT_DEFINE_SERVICE_BDFRec( class_, \ 62 | get_charset_id_, \ 63 | get_property_ ) \ 64 | void \ 65 | FT_Init_Class_ ## class_( FT_Service_BDFRec* clazz ) \ 66 | { \ 67 | clazz->get_charset_id = get_charset_id_; \ 68 | clazz->get_property = get_property_; \ 69 | } 70 | 71 | #endif /* FT_CONFIG_OPTION_PIC */ 72 | 73 | /* */ 74 | 75 | 76 | FT_END_HEADER 77 | 78 | 79 | #endif /* __SVBDF_H__ */ 80 | 81 | 82 | /* END */ 83 | -------------------------------------------------------------------------------- /Accelerator/Accelerator/ftsdk/include/internal/services/svcid.h: -------------------------------------------------------------------------------- 1 | /***************************************************************************/ 2 | /* */ 3 | /* svcid.h */ 4 | /* */ 5 | /* The FreeType CID font services (specification). */ 6 | /* */ 7 | /* Copyright 2007, 2009, 2012 by Derek Clegg, Michael Toftdal. */ 8 | /* */ 9 | /* This file is part of the FreeType project, and may only be used, */ 10 | /* modified, and distributed under the terms of the FreeType project */ 11 | /* license, LICENSE.TXT. By continuing to use, modify, or distribute */ 12 | /* this file you indicate that you have read the license and */ 13 | /* understand and accept it fully. */ 14 | /* */ 15 | /***************************************************************************/ 16 | 17 | 18 | #ifndef __SVCID_H__ 19 | #define __SVCID_H__ 20 | 21 | #include FT_INTERNAL_SERVICE_H 22 | 23 | 24 | FT_BEGIN_HEADER 25 | 26 | 27 | #define FT_SERVICE_ID_CID "CID" 28 | 29 | typedef FT_Error 30 | (*FT_CID_GetRegistryOrderingSupplementFunc)( FT_Face face, 31 | const char* *registry, 32 | const char* *ordering, 33 | FT_Int *supplement ); 34 | typedef FT_Error 35 | (*FT_CID_GetIsInternallyCIDKeyedFunc)( FT_Face face, 36 | FT_Bool *is_cid ); 37 | typedef FT_Error 38 | (*FT_CID_GetCIDFromGlyphIndexFunc)( FT_Face face, 39 | FT_UInt glyph_index, 40 | FT_UInt *cid ); 41 | 42 | FT_DEFINE_SERVICE( CID ) 43 | { 44 | FT_CID_GetRegistryOrderingSupplementFunc get_ros; 45 | FT_CID_GetIsInternallyCIDKeyedFunc get_is_cid; 46 | FT_CID_GetCIDFromGlyphIndexFunc get_cid_from_glyph_index; 47 | }; 48 | 49 | 50 | #ifndef FT_CONFIG_OPTION_PIC 51 | 52 | #define FT_DEFINE_SERVICE_CIDREC( class_, \ 53 | get_ros_, \ 54 | get_is_cid_, \ 55 | get_cid_from_glyph_index_ ) \ 56 | static const FT_Service_CIDRec class_ = \ 57 | { \ 58 | get_ros_, get_is_cid_, get_cid_from_glyph_index_ \ 59 | }; 60 | 61 | #else /* FT_CONFIG_OPTION_PIC */ 62 | 63 | #define FT_DEFINE_SERVICE_CIDREC( class_, \ 64 | get_ros_, \ 65 | get_is_cid_, \ 66 | get_cid_from_glyph_index_ ) \ 67 | void \ 68 | FT_Init_Class_ ## class_( FT_Library library, \ 69 | FT_Service_CIDRec* clazz ) \ 70 | { \ 71 | FT_UNUSED( library ); \ 72 | \ 73 | clazz->get_ros = get_ros_; \ 74 | clazz->get_is_cid = get_is_cid_; \ 75 | clazz->get_cid_from_glyph_index = get_cid_from_glyph_index_; \ 76 | } 77 | 78 | #endif /* FT_CONFIG_OPTION_PIC */ 79 | 80 | /* */ 81 | 82 | 83 | FT_END_HEADER 84 | 85 | 86 | #endif /* __SVCID_H__ */ 87 | 88 | 89 | /* END */ 90 | -------------------------------------------------------------------------------- /Accelerator/Accelerator/ftsdk/include/internal/services/svgldict.h: -------------------------------------------------------------------------------- 1 | /***************************************************************************/ 2 | /* */ 3 | /* svgldict.h */ 4 | /* */ 5 | /* The FreeType glyph dictionary services (specification). */ 6 | /* */ 7 | /* Copyright 2003, 2009, 2012 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 __SVGLDICT_H__ 20 | #define __SVGLDICT_H__ 21 | 22 | #include FT_INTERNAL_SERVICE_H 23 | 24 | 25 | FT_BEGIN_HEADER 26 | 27 | 28 | /* 29 | * A service used to retrieve glyph names, as well as to find the 30 | * index of a given glyph name in a font. 31 | * 32 | */ 33 | 34 | #define FT_SERVICE_ID_GLYPH_DICT "glyph-dict" 35 | 36 | 37 | typedef FT_Error 38 | (*FT_GlyphDict_GetNameFunc)( FT_Face face, 39 | FT_UInt glyph_index, 40 | FT_Pointer buffer, 41 | FT_UInt buffer_max ); 42 | 43 | typedef FT_UInt 44 | (*FT_GlyphDict_NameIndexFunc)( FT_Face face, 45 | FT_String* glyph_name ); 46 | 47 | 48 | FT_DEFINE_SERVICE( GlyphDict ) 49 | { 50 | FT_GlyphDict_GetNameFunc get_name; 51 | FT_GlyphDict_NameIndexFunc name_index; /* optional */ 52 | }; 53 | 54 | 55 | #ifndef FT_CONFIG_OPTION_PIC 56 | 57 | #define FT_DEFINE_SERVICE_GLYPHDICTREC( class_, \ 58 | get_name_, \ 59 | name_index_) \ 60 | static const FT_Service_GlyphDictRec class_ = \ 61 | { \ 62 | get_name_, name_index_ \ 63 | }; 64 | 65 | #else /* FT_CONFIG_OPTION_PIC */ 66 | 67 | #define FT_DEFINE_SERVICE_GLYPHDICTREC( class_, \ 68 | get_name_, \ 69 | name_index_) \ 70 | void \ 71 | FT_Init_Class_ ## class_( FT_Library library, \ 72 | FT_Service_GlyphDictRec* clazz ) \ 73 | { \ 74 | FT_UNUSED( library ); \ 75 | \ 76 | clazz->get_name = get_name_; \ 77 | clazz->name_index = name_index_; \ 78 | } 79 | 80 | #endif /* FT_CONFIG_OPTION_PIC */ 81 | 82 | /* */ 83 | 84 | 85 | FT_END_HEADER 86 | 87 | 88 | #endif /* __SVGLDICT_H__ */ 89 | -------------------------------------------------------------------------------- /Accelerator/Accelerator/ftsdk/include/internal/services/svgxval.h: -------------------------------------------------------------------------------- 1 | /***************************************************************************/ 2 | /* */ 3 | /* svgxval.h */ 4 | /* */ 5 | /* FreeType API for validating TrueTypeGX/AAT tables (specification). */ 6 | /* */ 7 | /* Copyright 2004, 2005 by */ 8 | /* Masatake YAMATO, Red Hat K.K., */ 9 | /* David Turner, Robert Wilhelm, and Werner Lemberg. */ 10 | /* */ 11 | /* This file is part of the FreeType project, and may only be used, */ 12 | /* modified, and distributed under the terms of the FreeType project */ 13 | /* license, LICENSE.TXT. By continuing to use, modify, or distribute */ 14 | /* this file you indicate that you have read the license and */ 15 | /* understand and accept it fully. */ 16 | /* */ 17 | /***************************************************************************/ 18 | 19 | /***************************************************************************/ 20 | /* */ 21 | /* gxvalid is derived from both gxlayout module and otvalid module. */ 22 | /* Development of gxlayout is supported by the Information-technology */ 23 | /* Promotion Agency(IPA), Japan. */ 24 | /* */ 25 | /***************************************************************************/ 26 | 27 | 28 | #ifndef __SVGXVAL_H__ 29 | #define __SVGXVAL_H__ 30 | 31 | #include FT_GX_VALIDATE_H 32 | #include FT_INTERNAL_VALIDATE_H 33 | 34 | FT_BEGIN_HEADER 35 | 36 | 37 | #define FT_SERVICE_ID_GX_VALIDATE "truetypegx-validate" 38 | #define FT_SERVICE_ID_CLASSICKERN_VALIDATE "classickern-validate" 39 | 40 | typedef FT_Error 41 | (*gxv_validate_func)( FT_Face face, 42 | FT_UInt gx_flags, 43 | FT_Bytes tables[FT_VALIDATE_GX_LENGTH], 44 | FT_UInt table_length ); 45 | 46 | 47 | typedef FT_Error 48 | (*ckern_validate_func)( FT_Face face, 49 | FT_UInt ckern_flags, 50 | FT_Bytes *ckern_table ); 51 | 52 | 53 | FT_DEFINE_SERVICE( GXvalidate ) 54 | { 55 | gxv_validate_func validate; 56 | }; 57 | 58 | FT_DEFINE_SERVICE( CKERNvalidate ) 59 | { 60 | ckern_validate_func validate; 61 | }; 62 | 63 | /* */ 64 | 65 | 66 | FT_END_HEADER 67 | 68 | 69 | #endif /* __SVGXVAL_H__ */ 70 | 71 | 72 | /* END */ 73 | -------------------------------------------------------------------------------- /Accelerator/Accelerator/ftsdk/include/internal/services/svkern.h: -------------------------------------------------------------------------------- 1 | /***************************************************************************/ 2 | /* */ 3 | /* svkern.h */ 4 | /* */ 5 | /* The FreeType Kerning service (specification). */ 6 | /* */ 7 | /* Copyright 2006 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 __SVKERN_H__ 20 | #define __SVKERN_H__ 21 | 22 | #include FT_INTERNAL_SERVICE_H 23 | #include FT_TRUETYPE_TABLES_H 24 | 25 | 26 | FT_BEGIN_HEADER 27 | 28 | #define FT_SERVICE_ID_KERNING "kerning" 29 | 30 | 31 | typedef FT_Error 32 | (*FT_Kerning_TrackGetFunc)( FT_Face face, 33 | FT_Fixed point_size, 34 | FT_Int degree, 35 | FT_Fixed* akerning ); 36 | 37 | FT_DEFINE_SERVICE( Kerning ) 38 | { 39 | FT_Kerning_TrackGetFunc get_track; 40 | }; 41 | 42 | /* */ 43 | 44 | 45 | FT_END_HEADER 46 | 47 | 48 | #endif /* __SVKERN_H__ */ 49 | 50 | 51 | /* END */ 52 | -------------------------------------------------------------------------------- /Accelerator/Accelerator/ftsdk/include/internal/services/svmm.h: -------------------------------------------------------------------------------- 1 | /***************************************************************************/ 2 | /* */ 3 | /* svmm.h */ 4 | /* */ 5 | /* The FreeType Multiple Masters and GX var services (specification). */ 6 | /* */ 7 | /* Copyright 2003, 2004, 2009, 2012 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 __SVMM_H__ 20 | #define __SVMM_H__ 21 | 22 | #include FT_INTERNAL_SERVICE_H 23 | 24 | 25 | FT_BEGIN_HEADER 26 | 27 | 28 | /* 29 | * A service used to manage multiple-masters data in a given face. 30 | * 31 | * See the related APIs in `ftmm.h' (FT_MULTIPLE_MASTERS_H). 32 | * 33 | */ 34 | 35 | #define FT_SERVICE_ID_MULTI_MASTERS "multi-masters" 36 | 37 | 38 | typedef FT_Error 39 | (*FT_Get_MM_Func)( FT_Face face, 40 | FT_Multi_Master* master ); 41 | 42 | typedef FT_Error 43 | (*FT_Get_MM_Var_Func)( FT_Face face, 44 | FT_MM_Var* *master ); 45 | 46 | typedef FT_Error 47 | (*FT_Set_MM_Design_Func)( FT_Face face, 48 | FT_UInt num_coords, 49 | FT_Long* coords ); 50 | 51 | typedef FT_Error 52 | (*FT_Set_Var_Design_Func)( FT_Face face, 53 | FT_UInt num_coords, 54 | FT_Fixed* coords ); 55 | 56 | typedef FT_Error 57 | (*FT_Set_MM_Blend_Func)( FT_Face face, 58 | FT_UInt num_coords, 59 | FT_Long* coords ); 60 | 61 | 62 | FT_DEFINE_SERVICE( MultiMasters ) 63 | { 64 | FT_Get_MM_Func get_mm; 65 | FT_Set_MM_Design_Func set_mm_design; 66 | FT_Set_MM_Blend_Func set_mm_blend; 67 | FT_Get_MM_Var_Func get_mm_var; 68 | FT_Set_Var_Design_Func set_var_design; 69 | }; 70 | 71 | 72 | #ifndef FT_CONFIG_OPTION_PIC 73 | 74 | #define FT_DEFINE_SERVICE_MULTIMASTERSREC( class_, \ 75 | get_mm_, \ 76 | set_mm_design_, \ 77 | set_mm_blend_, \ 78 | get_mm_var_, \ 79 | set_var_design_ ) \ 80 | static const FT_Service_MultiMastersRec class_ = \ 81 | { \ 82 | get_mm_, set_mm_design_, set_mm_blend_, get_mm_var_, set_var_design_ \ 83 | }; 84 | 85 | #else /* FT_CONFIG_OPTION_PIC */ 86 | 87 | #define FT_DEFINE_SERVICE_MULTIMASTERSREC( class_, \ 88 | get_mm_, \ 89 | set_mm_design_, \ 90 | set_mm_blend_, \ 91 | get_mm_var_, \ 92 | set_var_design_ ) \ 93 | void \ 94 | FT_Init_Class_ ## class_( FT_Service_MultiMastersRec* clazz ) \ 95 | { \ 96 | clazz->get_mm = get_mm_; \ 97 | clazz->set_mm_design = set_mm_design_; \ 98 | clazz->set_mm_blend = set_mm_blend_; \ 99 | clazz->get_mm_var = get_mm_var_; \ 100 | clazz->set_var_design = set_var_design_; \ 101 | } 102 | 103 | #endif /* FT_CONFIG_OPTION_PIC */ 104 | 105 | /* */ 106 | 107 | 108 | FT_END_HEADER 109 | 110 | #endif /* __SVMM_H__ */ 111 | 112 | 113 | /* END */ 114 | -------------------------------------------------------------------------------- /Accelerator/Accelerator/ftsdk/include/internal/services/svotval.h: -------------------------------------------------------------------------------- 1 | /***************************************************************************/ 2 | /* */ 3 | /* svotval.h */ 4 | /* */ 5 | /* The FreeType OpenType validation service (specification). */ 6 | /* */ 7 | /* Copyright 2004, 2006 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 __SVOTVAL_H__ 20 | #define __SVOTVAL_H__ 21 | 22 | #include FT_OPENTYPE_VALIDATE_H 23 | #include FT_INTERNAL_VALIDATE_H 24 | 25 | FT_BEGIN_HEADER 26 | 27 | 28 | #define FT_SERVICE_ID_OPENTYPE_VALIDATE "opentype-validate" 29 | 30 | 31 | typedef FT_Error 32 | (*otv_validate_func)( FT_Face volatile face, 33 | FT_UInt ot_flags, 34 | FT_Bytes *base, 35 | FT_Bytes *gdef, 36 | FT_Bytes *gpos, 37 | FT_Bytes *gsub, 38 | FT_Bytes *jstf ); 39 | 40 | 41 | FT_DEFINE_SERVICE( OTvalidate ) 42 | { 43 | otv_validate_func validate; 44 | }; 45 | 46 | /* */ 47 | 48 | 49 | FT_END_HEADER 50 | 51 | 52 | #endif /* __SVOTVAL_H__ */ 53 | 54 | 55 | /* END */ 56 | -------------------------------------------------------------------------------- /Accelerator/Accelerator/ftsdk/include/internal/services/svpfr.h: -------------------------------------------------------------------------------- 1 | /***************************************************************************/ 2 | /* */ 3 | /* svpfr.h */ 4 | /* */ 5 | /* Internal PFR service functions (specification). */ 6 | /* */ 7 | /* Copyright 2003, 2006 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 __SVPFR_H__ 20 | #define __SVPFR_H__ 21 | 22 | #include FT_PFR_H 23 | #include FT_INTERNAL_SERVICE_H 24 | 25 | 26 | FT_BEGIN_HEADER 27 | 28 | 29 | #define FT_SERVICE_ID_PFR_METRICS "pfr-metrics" 30 | 31 | 32 | typedef FT_Error 33 | (*FT_PFR_GetMetricsFunc)( FT_Face face, 34 | FT_UInt *aoutline, 35 | FT_UInt *ametrics, 36 | FT_Fixed *ax_scale, 37 | FT_Fixed *ay_scale ); 38 | 39 | typedef FT_Error 40 | (*FT_PFR_GetKerningFunc)( FT_Face face, 41 | FT_UInt left, 42 | FT_UInt right, 43 | FT_Vector *avector ); 44 | 45 | typedef FT_Error 46 | (*FT_PFR_GetAdvanceFunc)( FT_Face face, 47 | FT_UInt gindex, 48 | FT_Pos *aadvance ); 49 | 50 | 51 | FT_DEFINE_SERVICE( PfrMetrics ) 52 | { 53 | FT_PFR_GetMetricsFunc get_metrics; 54 | FT_PFR_GetKerningFunc get_kerning; 55 | FT_PFR_GetAdvanceFunc get_advance; 56 | 57 | }; 58 | 59 | /* */ 60 | 61 | FT_END_HEADER 62 | 63 | #endif /* __SVPFR_H__ */ 64 | 65 | 66 | /* END */ 67 | -------------------------------------------------------------------------------- /Accelerator/Accelerator/ftsdk/include/internal/services/svpostnm.h: -------------------------------------------------------------------------------- 1 | /***************************************************************************/ 2 | /* */ 3 | /* svpostnm.h */ 4 | /* */ 5 | /* The FreeType PostScript name services (specification). */ 6 | /* */ 7 | /* Copyright 2003, 2007, 2009, 2012 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 __SVPOSTNM_H__ 20 | #define __SVPOSTNM_H__ 21 | 22 | #include FT_INTERNAL_SERVICE_H 23 | 24 | 25 | FT_BEGIN_HEADER 26 | 27 | /* 28 | * A trivial service used to retrieve the PostScript name of a given 29 | * font when available. The `get_name' field should never be NULL. 30 | * 31 | * The corresponding function can return NULL to indicate that the 32 | * PostScript name is not available. 33 | * 34 | * The name is owned by the face and will be destroyed with it. 35 | */ 36 | 37 | #define FT_SERVICE_ID_POSTSCRIPT_FONT_NAME "postscript-font-name" 38 | 39 | 40 | typedef const char* 41 | (*FT_PsName_GetFunc)( FT_Face face ); 42 | 43 | 44 | FT_DEFINE_SERVICE( PsFontName ) 45 | { 46 | FT_PsName_GetFunc get_ps_font_name; 47 | }; 48 | 49 | 50 | #ifndef FT_CONFIG_OPTION_PIC 51 | 52 | #define FT_DEFINE_SERVICE_PSFONTNAMEREC( class_, get_ps_font_name_ ) \ 53 | static const FT_Service_PsFontNameRec class_ = \ 54 | { \ 55 | get_ps_font_name_ \ 56 | }; 57 | 58 | #else /* FT_CONFIG_OPTION_PIC */ 59 | 60 | #define FT_DEFINE_SERVICE_PSFONTNAMEREC( class_, get_ps_font_name_ ) \ 61 | void \ 62 | FT_Init_Class_ ## class_( FT_Library library, \ 63 | FT_Service_PsFontNameRec* clazz ) \ 64 | { \ 65 | FT_UNUSED( library ); \ 66 | \ 67 | clazz->get_ps_font_name = get_ps_font_name_; \ 68 | } 69 | 70 | #endif /* FT_CONFIG_OPTION_PIC */ 71 | 72 | /* */ 73 | 74 | 75 | FT_END_HEADER 76 | 77 | 78 | #endif /* __SVPOSTNM_H__ */ 79 | 80 | 81 | /* END */ 82 | -------------------------------------------------------------------------------- /Accelerator/Accelerator/ftsdk/include/internal/services/svprop.h: -------------------------------------------------------------------------------- 1 | /***************************************************************************/ 2 | /* */ 3 | /* svprop.h */ 4 | /* */ 5 | /* The FreeType property service (specification). */ 6 | /* */ 7 | /* Copyright 2012 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 __SVPROP_H__ 20 | #define __SVPROP_H__ 21 | 22 | 23 | FT_BEGIN_HEADER 24 | 25 | 26 | #define FT_SERVICE_ID_PROPERTIES "properties" 27 | 28 | 29 | typedef FT_Error 30 | (*FT_Properties_SetFunc)( FT_Module module, 31 | const char* property_name, 32 | const void* value ); 33 | 34 | typedef FT_Error 35 | (*FT_Properties_GetFunc)( FT_Module module, 36 | const char* property_name, 37 | void* value ); 38 | 39 | 40 | FT_DEFINE_SERVICE( Properties ) 41 | { 42 | FT_Properties_SetFunc set_property; 43 | FT_Properties_GetFunc get_property; 44 | }; 45 | 46 | 47 | #ifndef FT_CONFIG_OPTION_PIC 48 | 49 | #define FT_DEFINE_SERVICE_PROPERTIESREC( class_, \ 50 | set_property_, \ 51 | get_property_ ) \ 52 | static const FT_Service_PropertiesRec class_ = \ 53 | { \ 54 | set_property_, \ 55 | get_property_ \ 56 | }; 57 | 58 | #else /* FT_CONFIG_OPTION_PIC */ 59 | 60 | #define FT_DEFINE_SERVICE_PROPERTIESREC( class_, \ 61 | set_property_, \ 62 | get_property_ ) \ 63 | void \ 64 | FT_Init_Class_ ## class_( FT_Service_PropertiesRec* clazz ) \ 65 | { \ 66 | clazz->set_property = set_property_; \ 67 | clazz->get_property = get_property_; \ 68 | } 69 | 70 | #endif /* FT_CONFIG_OPTION_PIC */ 71 | 72 | /* */ 73 | 74 | 75 | FT_END_HEADER 76 | 77 | 78 | #endif /* __SVPROP_H__ */ 79 | 80 | 81 | /* END */ 82 | -------------------------------------------------------------------------------- /Accelerator/Accelerator/ftsdk/include/internal/services/svpsinfo.h: -------------------------------------------------------------------------------- 1 | /***************************************************************************/ 2 | /* */ 3 | /* svpsinfo.h */ 4 | /* */ 5 | /* The FreeType PostScript info service (specification). */ 6 | /* */ 7 | /* Copyright 2003, 2004, 2009, 2011, 2012 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 __SVPSINFO_H__ 20 | #define __SVPSINFO_H__ 21 | 22 | #include FT_INTERNAL_SERVICE_H 23 | #include FT_INTERNAL_TYPE1_TYPES_H 24 | 25 | 26 | FT_BEGIN_HEADER 27 | 28 | 29 | #define FT_SERVICE_ID_POSTSCRIPT_INFO "postscript-info" 30 | 31 | 32 | typedef FT_Error 33 | (*PS_GetFontInfoFunc)( FT_Face face, 34 | PS_FontInfoRec* afont_info ); 35 | 36 | typedef FT_Error 37 | (*PS_GetFontExtraFunc)( FT_Face face, 38 | PS_FontExtraRec* afont_extra ); 39 | 40 | typedef FT_Int 41 | (*PS_HasGlyphNamesFunc)( FT_Face face ); 42 | 43 | typedef FT_Error 44 | (*PS_GetFontPrivateFunc)( FT_Face face, 45 | PS_PrivateRec* afont_private ); 46 | 47 | typedef FT_Long 48 | (*PS_GetFontValueFunc)( FT_Face face, 49 | PS_Dict_Keys key, 50 | FT_UInt idx, 51 | void *value, 52 | FT_Long value_len ); 53 | 54 | 55 | FT_DEFINE_SERVICE( PsInfo ) 56 | { 57 | PS_GetFontInfoFunc ps_get_font_info; 58 | PS_GetFontExtraFunc ps_get_font_extra; 59 | PS_HasGlyphNamesFunc ps_has_glyph_names; 60 | PS_GetFontPrivateFunc ps_get_font_private; 61 | PS_GetFontValueFunc ps_get_font_value; 62 | }; 63 | 64 | 65 | #ifndef FT_CONFIG_OPTION_PIC 66 | 67 | #define FT_DEFINE_SERVICE_PSINFOREC( class_, \ 68 | get_font_info_, \ 69 | ps_get_font_extra_, \ 70 | has_glyph_names_, \ 71 | get_font_private_, \ 72 | get_font_value_ ) \ 73 | static const FT_Service_PsInfoRec class_ = \ 74 | { \ 75 | get_font_info_, ps_get_font_extra_, has_glyph_names_, \ 76 | get_font_private_, get_font_value_ \ 77 | }; 78 | 79 | #else /* FT_CONFIG_OPTION_PIC */ 80 | 81 | #define FT_DEFINE_SERVICE_PSINFOREC( class_, \ 82 | get_font_info_, \ 83 | ps_get_font_extra_, \ 84 | has_glyph_names_, \ 85 | get_font_private_, \ 86 | get_font_value_ ) \ 87 | void \ 88 | FT_Init_Class_ ## class_( FT_Library library, \ 89 | FT_Service_PsInfoRec* clazz ) \ 90 | { \ 91 | FT_UNUSED( library ); \ 92 | \ 93 | clazz->ps_get_font_info = get_font_info_; \ 94 | clazz->ps_get_font_extra = ps_get_font_extra_; \ 95 | clazz->ps_has_glyph_names = has_glyph_names_; \ 96 | clazz->ps_get_font_private = get_font_private_; \ 97 | clazz->ps_get_font_value = get_font_value_; \ 98 | } 99 | 100 | #endif /* FT_CONFIG_OPTION_PIC */ 101 | 102 | /* */ 103 | 104 | 105 | FT_END_HEADER 106 | 107 | 108 | #endif /* __SVPSINFO_H__ */ 109 | 110 | 111 | /* END */ 112 | -------------------------------------------------------------------------------- /Accelerator/Accelerator/ftsdk/include/internal/services/svsfnt.h: -------------------------------------------------------------------------------- 1 | /***************************************************************************/ 2 | /* */ 3 | /* svsfnt.h */ 4 | /* */ 5 | /* The FreeType SFNT table loading service (specification). */ 6 | /* */ 7 | /* Copyright 2003, 2004, 2009, 2012 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 __SVSFNT_H__ 20 | #define __SVSFNT_H__ 21 | 22 | #include FT_INTERNAL_SERVICE_H 23 | #include FT_TRUETYPE_TABLES_H 24 | 25 | 26 | FT_BEGIN_HEADER 27 | 28 | 29 | /* 30 | * SFNT table loading service. 31 | */ 32 | 33 | #define FT_SERVICE_ID_SFNT_TABLE "sfnt-table" 34 | 35 | 36 | /* 37 | * Used to implement FT_Load_Sfnt_Table(). 38 | */ 39 | typedef FT_Error 40 | (*FT_SFNT_TableLoadFunc)( FT_Face face, 41 | FT_ULong tag, 42 | FT_Long offset, 43 | FT_Byte* buffer, 44 | FT_ULong* length ); 45 | 46 | /* 47 | * Used to implement FT_Get_Sfnt_Table(). 48 | */ 49 | typedef void* 50 | (*FT_SFNT_TableGetFunc)( FT_Face face, 51 | FT_Sfnt_Tag tag ); 52 | 53 | 54 | /* 55 | * Used to implement FT_Sfnt_Table_Info(). 56 | */ 57 | typedef FT_Error 58 | (*FT_SFNT_TableInfoFunc)( FT_Face face, 59 | FT_UInt idx, 60 | FT_ULong *tag, 61 | FT_ULong *offset, 62 | FT_ULong *length ); 63 | 64 | 65 | FT_DEFINE_SERVICE( SFNT_Table ) 66 | { 67 | FT_SFNT_TableLoadFunc load_table; 68 | FT_SFNT_TableGetFunc get_table; 69 | FT_SFNT_TableInfoFunc table_info; 70 | }; 71 | 72 | 73 | #ifndef FT_CONFIG_OPTION_PIC 74 | 75 | #define FT_DEFINE_SERVICE_SFNT_TABLEREC( class_, load_, get_, info_ ) \ 76 | static const FT_Service_SFNT_TableRec class_ = \ 77 | { \ 78 | load_, get_, info_ \ 79 | }; 80 | 81 | #else /* FT_CONFIG_OPTION_PIC */ 82 | 83 | #define FT_DEFINE_SERVICE_SFNT_TABLEREC( class_, load_, get_, info_ ) \ 84 | void \ 85 | FT_Init_Class_ ## class_( FT_Service_SFNT_TableRec* clazz ) \ 86 | { \ 87 | clazz->load_table = load_; \ 88 | clazz->get_table = get_; \ 89 | clazz->table_info = info_; \ 90 | } 91 | 92 | #endif /* FT_CONFIG_OPTION_PIC */ 93 | 94 | /* */ 95 | 96 | 97 | FT_END_HEADER 98 | 99 | 100 | #endif /* __SVSFNT_H__ */ 101 | 102 | 103 | /* END */ 104 | -------------------------------------------------------------------------------- /Accelerator/Accelerator/ftsdk/include/internal/services/svttcmap.h: -------------------------------------------------------------------------------- 1 | /***************************************************************************/ 2 | /* */ 3 | /* svttcmap.h */ 4 | /* */ 5 | /* The FreeType TrueType/sfnt cmap extra information service. */ 6 | /* */ 7 | /* Copyright 2003 by */ 8 | /* Masatake YAMATO, Redhat K.K. */ 9 | /* */ 10 | /* Copyright 2003, 2008, 2009, 2012, 2013 by */ 11 | /* David Turner, Robert Wilhelm, and Werner Lemberg. */ 12 | /* */ 13 | /* This file is part of the FreeType project, and may only be used, */ 14 | /* modified, and distributed under the terms of the FreeType project */ 15 | /* license, LICENSE.TXT. By continuing to use, modify, or distribute */ 16 | /* this file you indicate that you have read the license and */ 17 | /* understand and accept it fully. */ 18 | /* */ 19 | /***************************************************************************/ 20 | 21 | /* Development of this service is support of 22 | Information-technology Promotion Agency, Japan. */ 23 | 24 | #ifndef __SVTTCMAP_H__ 25 | #define __SVTTCMAP_H__ 26 | 27 | #include FT_INTERNAL_SERVICE_H 28 | #include FT_TRUETYPE_TABLES_H 29 | 30 | 31 | FT_BEGIN_HEADER 32 | 33 | 34 | #define FT_SERVICE_ID_TT_CMAP "tt-cmaps" 35 | 36 | 37 | /*************************************************************************/ 38 | /* */ 39 | /* <Struct> */ 40 | /* TT_CMapInfo */ 41 | /* */ 42 | /* <Description> */ 43 | /* A structure used to store TrueType/sfnt specific cmap information */ 44 | /* which is not covered by the generic @FT_CharMap structure. This */ 45 | /* structure can be accessed with the @FT_Get_TT_CMap_Info function. */ 46 | /* */ 47 | /* <Fields> */ 48 | /* language :: */ 49 | /* The language ID used in Mac fonts. Definitions of values are in */ 50 | /* `ttnameid.h'. */ 51 | /* */ 52 | /* format :: */ 53 | /* The cmap format. OpenType 1.5 defines the formats 0 (byte */ 54 | /* encoding table), 2~(high-byte mapping through table), 4~(segment */ 55 | /* mapping to delta values), 6~(trimmed table mapping), 8~(mixed */ 56 | /* 16-bit and 32-bit coverage), 10~(trimmed array), 12~(segmented */ 57 | /* coverage), and 14 (Unicode Variation Sequences). */ 58 | /* */ 59 | typedef struct TT_CMapInfo_ 60 | { 61 | FT_ULong language; 62 | FT_Long format; 63 | 64 | } TT_CMapInfo; 65 | 66 | 67 | typedef FT_Error 68 | (*TT_CMap_Info_GetFunc)( FT_CharMap charmap, 69 | TT_CMapInfo *cmap_info ); 70 | 71 | 72 | FT_DEFINE_SERVICE( TTCMaps ) 73 | { 74 | TT_CMap_Info_GetFunc get_cmap_info; 75 | }; 76 | 77 | #ifndef FT_CONFIG_OPTION_PIC 78 | 79 | #define FT_DEFINE_SERVICE_TTCMAPSREC( class_, get_cmap_info_ ) \ 80 | static const FT_Service_TTCMapsRec class_ = \ 81 | { \ 82 | get_cmap_info_ \ 83 | }; 84 | 85 | #else /* FT_CONFIG_OPTION_PIC */ 86 | 87 | #define FT_DEFINE_SERVICE_TTCMAPSREC( class_, get_cmap_info_ ) \ 88 | void \ 89 | FT_Init_Class_ ## class_( FT_Library library, \ 90 | FT_Service_TTCMapsRec* clazz ) \ 91 | { \ 92 | FT_UNUSED( library ); \ 93 | \ 94 | clazz->get_cmap_info = get_cmap_info_; \ 95 | } 96 | 97 | #endif /* FT_CONFIG_OPTION_PIC */ 98 | 99 | /* */ 100 | 101 | 102 | FT_END_HEADER 103 | 104 | #endif /* __SVTTCMAP_H__ */ 105 | 106 | 107 | /* END */ 108 | -------------------------------------------------------------------------------- /Accelerator/Accelerator/ftsdk/include/internal/services/svtteng.h: -------------------------------------------------------------------------------- 1 | /***************************************************************************/ 2 | /* */ 3 | /* svtteng.h */ 4 | /* */ 5 | /* The FreeType TrueType engine query service (specification). */ 6 | /* */ 7 | /* Copyright 2006 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 __SVTTENG_H__ 20 | #define __SVTTENG_H__ 21 | 22 | #include FT_INTERNAL_SERVICE_H 23 | #include FT_MODULE_H 24 | 25 | 26 | FT_BEGIN_HEADER 27 | 28 | 29 | /* 30 | * SFNT table loading service. 31 | */ 32 | 33 | #define FT_SERVICE_ID_TRUETYPE_ENGINE "truetype-engine" 34 | 35 | /* 36 | * Used to implement FT_Get_TrueType_Engine_Type 37 | */ 38 | 39 | FT_DEFINE_SERVICE( TrueTypeEngine ) 40 | { 41 | FT_TrueTypeEngineType engine_type; 42 | }; 43 | 44 | /* */ 45 | 46 | 47 | FT_END_HEADER 48 | 49 | 50 | #endif /* __SVTTENG_H__ */ 51 | 52 | 53 | /* END */ 54 | -------------------------------------------------------------------------------- /Accelerator/Accelerator/ftsdk/include/internal/services/svttglyf.h: -------------------------------------------------------------------------------- 1 | /***************************************************************************/ 2 | /* */ 3 | /* svttglyf.h */ 4 | /* */ 5 | /* The FreeType TrueType glyph service. */ 6 | /* */ 7 | /* Copyright 2007, 2009, 2012 by David Turner. */ 8 | /* */ 9 | /* This file is part of the FreeType project, and may only be used, */ 10 | /* modified, and distributed under the terms of the FreeType project */ 11 | /* license, LICENSE.TXT. By continuing to use, modify, or distribute */ 12 | /* this file you indicate that you have read the license and */ 13 | /* understand and accept it fully. */ 14 | /* */ 15 | /***************************************************************************/ 16 | 17 | #ifndef __SVTTGLYF_H__ 18 | #define __SVTTGLYF_H__ 19 | 20 | #include FT_INTERNAL_SERVICE_H 21 | #include FT_TRUETYPE_TABLES_H 22 | 23 | 24 | FT_BEGIN_HEADER 25 | 26 | 27 | #define FT_SERVICE_ID_TT_GLYF "tt-glyf" 28 | 29 | 30 | typedef FT_ULong 31 | (*TT_Glyf_GetLocationFunc)( FT_Face face, 32 | FT_UInt gindex, 33 | FT_ULong *psize ); 34 | 35 | FT_DEFINE_SERVICE( TTGlyf ) 36 | { 37 | TT_Glyf_GetLocationFunc get_location; 38 | }; 39 | 40 | 41 | #ifndef FT_CONFIG_OPTION_PIC 42 | 43 | #define FT_DEFINE_SERVICE_TTGLYFREC( class_, get_location_ ) \ 44 | static const FT_Service_TTGlyfRec class_ = \ 45 | { \ 46 | get_location_ \ 47 | }; 48 | 49 | #else /* FT_CONFIG_OPTION_PIC */ 50 | 51 | #define FT_DEFINE_SERVICE_TTGLYFREC( class_, get_location_ ) \ 52 | void \ 53 | FT_Init_Class_ ## class_( FT_Service_TTGlyfRec* clazz ) \ 54 | { \ 55 | clazz->get_location = get_location_; \ 56 | } 57 | 58 | #endif /* FT_CONFIG_OPTION_PIC */ 59 | 60 | /* */ 61 | 62 | 63 | FT_END_HEADER 64 | 65 | #endif /* __SVTTGLYF_H__ */ 66 | 67 | 68 | /* END */ 69 | -------------------------------------------------------------------------------- /Accelerator/Accelerator/ftsdk/include/internal/services/svwinfnt.h: -------------------------------------------------------------------------------- 1 | /***************************************************************************/ 2 | /* */ 3 | /* svwinfnt.h */ 4 | /* */ 5 | /* The FreeType Windows FNT/FONT service (specification). */ 6 | /* */ 7 | /* Copyright 2003 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 __SVWINFNT_H__ 20 | #define __SVWINFNT_H__ 21 | 22 | #include FT_INTERNAL_SERVICE_H 23 | #include FT_WINFONTS_H 24 | 25 | 26 | FT_BEGIN_HEADER 27 | 28 | 29 | #define FT_SERVICE_ID_WINFNT "winfonts" 30 | 31 | typedef FT_Error 32 | (*FT_WinFnt_GetHeaderFunc)( FT_Face face, 33 | FT_WinFNT_HeaderRec *aheader ); 34 | 35 | 36 | FT_DEFINE_SERVICE( WinFnt ) 37 | { 38 | FT_WinFnt_GetHeaderFunc get_header; 39 | }; 40 | 41 | /* */ 42 | 43 | 44 | FT_END_HEADER 45 | 46 | 47 | #endif /* __SVWINFNT_H__ */ 48 | 49 | 50 | /* END */ 51 | -------------------------------------------------------------------------------- /Accelerator/Accelerator/ftsdk/include/internal/services/svxf86nm.h: -------------------------------------------------------------------------------- 1 | /***************************************************************************/ 2 | /* */ 3 | /* svxf86nm.h */ 4 | /* */ 5 | /* The FreeType XFree86 services (specification only). */ 6 | /* */ 7 | /* Copyright 2003 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 __SVXF86NM_H__ 20 | #define __SVXF86NM_H__ 21 | 22 | #include FT_INTERNAL_SERVICE_H 23 | 24 | 25 | FT_BEGIN_HEADER 26 | 27 | 28 | /* 29 | * A trivial service used to return the name of a face's font driver, 30 | * according to the XFree86 nomenclature. Note that the service data 31 | * is a simple constant string pointer. 32 | */ 33 | 34 | #define FT_SERVICE_ID_XF86_NAME "xf86-driver-name" 35 | 36 | #define FT_XF86_FORMAT_TRUETYPE "TrueType" 37 | #define FT_XF86_FORMAT_TYPE_1 "Type 1" 38 | #define FT_XF86_FORMAT_BDF "BDF" 39 | #define FT_XF86_FORMAT_PCF "PCF" 40 | #define FT_XF86_FORMAT_TYPE_42 "Type 42" 41 | #define FT_XF86_FORMAT_CID "CID Type 1" 42 | #define FT_XF86_FORMAT_CFF "CFF" 43 | #define FT_XF86_FORMAT_PFR "PFR" 44 | #define FT_XF86_FORMAT_WINFNT "Windows FNT" 45 | 46 | /* */ 47 | 48 | 49 | FT_END_HEADER 50 | 51 | 52 | #endif /* __SVXF86NM_H__ */ 53 | 54 | 55 | /* END */ 56 | -------------------------------------------------------------------------------- /Accelerator/Accelerator/ftsdk/include/tttags.h: -------------------------------------------------------------------------------- 1 | /***************************************************************************/ 2 | /* */ 3 | /* tttags.h */ 4 | /* */ 5 | /* Tags for TrueType and OpenType tables (specification only). */ 6 | /* */ 7 | /* Copyright 1996-2001, 2004, 2005, 2007, 2008, 2013 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 __TTAGS_H__ 20 | #define __TTAGS_H__ 21 | 22 | 23 | #include <ft2build.h> 24 | #include FT_FREETYPE_H 25 | 26 | #ifdef FREETYPE_H 27 | #error "freetype.h of FreeType 1 has been loaded!" 28 | #error "Please fix the directory search order for header files" 29 | #error "so that freetype.h of FreeType 2 is found first." 30 | #endif 31 | 32 | 33 | FT_BEGIN_HEADER 34 | 35 | 36 | #define TTAG_avar FT_MAKE_TAG( 'a', 'v', 'a', 'r' ) 37 | #define TTAG_BASE FT_MAKE_TAG( 'B', 'A', 'S', 'E' ) 38 | #define TTAG_bdat FT_MAKE_TAG( 'b', 'd', 'a', 't' ) 39 | #define TTAG_BDF FT_MAKE_TAG( 'B', 'D', 'F', ' ' ) 40 | #define TTAG_bhed FT_MAKE_TAG( 'b', 'h', 'e', 'd' ) 41 | #define TTAG_bloc FT_MAKE_TAG( 'b', 'l', 'o', 'c' ) 42 | #define TTAG_bsln FT_MAKE_TAG( 'b', 's', 'l', 'n' ) 43 | #define TTAG_CBDT FT_MAKE_TAG( 'C', 'B', 'D', 'T' ) 44 | #define TTAG_CBLC FT_MAKE_TAG( 'C', 'B', 'L', 'C' ) 45 | #define TTAG_CFF FT_MAKE_TAG( 'C', 'F', 'F', ' ' ) 46 | #define TTAG_CID FT_MAKE_TAG( 'C', 'I', 'D', ' ' ) 47 | #define TTAG_cmap FT_MAKE_TAG( 'c', 'm', 'a', 'p' ) 48 | #define TTAG_cvar FT_MAKE_TAG( 'c', 'v', 'a', 'r' ) 49 | #define TTAG_cvt FT_MAKE_TAG( 'c', 'v', 't', ' ' ) 50 | #define TTAG_DSIG FT_MAKE_TAG( 'D', 'S', 'I', 'G' ) 51 | #define TTAG_EBDT FT_MAKE_TAG( 'E', 'B', 'D', 'T' ) 52 | #define TTAG_EBLC FT_MAKE_TAG( 'E', 'B', 'L', 'C' ) 53 | #define TTAG_EBSC FT_MAKE_TAG( 'E', 'B', 'S', 'C' ) 54 | #define TTAG_feat FT_MAKE_TAG( 'f', 'e', 'a', 't' ) 55 | #define TTAG_FOND FT_MAKE_TAG( 'F', 'O', 'N', 'D' ) 56 | #define TTAG_fpgm FT_MAKE_TAG( 'f', 'p', 'g', 'm' ) 57 | #define TTAG_fvar FT_MAKE_TAG( 'f', 'v', 'a', 'r' ) 58 | #define TTAG_gasp FT_MAKE_TAG( 'g', 'a', 's', 'p' ) 59 | #define TTAG_GDEF FT_MAKE_TAG( 'G', 'D', 'E', 'F' ) 60 | #define TTAG_glyf FT_MAKE_TAG( 'g', 'l', 'y', 'f' ) 61 | #define TTAG_GPOS FT_MAKE_TAG( 'G', 'P', 'O', 'S' ) 62 | #define TTAG_GSUB FT_MAKE_TAG( 'G', 'S', 'U', 'B' ) 63 | #define TTAG_gvar FT_MAKE_TAG( 'g', 'v', 'a', 'r' ) 64 | #define TTAG_hdmx FT_MAKE_TAG( 'h', 'd', 'm', 'x' ) 65 | #define TTAG_head FT_MAKE_TAG( 'h', 'e', 'a', 'd' ) 66 | #define TTAG_hhea FT_MAKE_TAG( 'h', 'h', 'e', 'a' ) 67 | #define TTAG_hmtx FT_MAKE_TAG( 'h', 'm', 't', 'x' ) 68 | #define TTAG_JSTF FT_MAKE_TAG( 'J', 'S', 'T', 'F' ) 69 | #define TTAG_just FT_MAKE_TAG( 'j', 'u', 's', 't' ) 70 | #define TTAG_kern FT_MAKE_TAG( 'k', 'e', 'r', 'n' ) 71 | #define TTAG_lcar FT_MAKE_TAG( 'l', 'c', 'a', 'r' ) 72 | #define TTAG_loca FT_MAKE_TAG( 'l', 'o', 'c', 'a' ) 73 | #define TTAG_LTSH FT_MAKE_TAG( 'L', 'T', 'S', 'H' ) 74 | #define TTAG_LWFN FT_MAKE_TAG( 'L', 'W', 'F', 'N' ) 75 | #define TTAG_MATH FT_MAKE_TAG( 'M', 'A', 'T', 'H' ) 76 | #define TTAG_maxp FT_MAKE_TAG( 'm', 'a', 'x', 'p' ) 77 | #define TTAG_META FT_MAKE_TAG( 'M', 'E', 'T', 'A' ) 78 | #define TTAG_MMFX FT_MAKE_TAG( 'M', 'M', 'F', 'X' ) 79 | #define TTAG_MMSD FT_MAKE_TAG( 'M', 'M', 'S', 'D' ) 80 | #define TTAG_mort FT_MAKE_TAG( 'm', 'o', 'r', 't' ) 81 | #define TTAG_morx FT_MAKE_TAG( 'm', 'o', 'r', 'x' ) 82 | #define TTAG_name FT_MAKE_TAG( 'n', 'a', 'm', 'e' ) 83 | #define TTAG_opbd FT_MAKE_TAG( 'o', 'p', 'b', 'd' ) 84 | #define TTAG_OS2 FT_MAKE_TAG( 'O', 'S', '/', '2' ) 85 | #define TTAG_OTTO FT_MAKE_TAG( 'O', 'T', 'T', 'O' ) 86 | #define TTAG_PCLT FT_MAKE_TAG( 'P', 'C', 'L', 'T' ) 87 | #define TTAG_POST FT_MAKE_TAG( 'P', 'O', 'S', 'T' ) 88 | #define TTAG_post FT_MAKE_TAG( 'p', 'o', 's', 't' ) 89 | #define TTAG_prep FT_MAKE_TAG( 'p', 'r', 'e', 'p' ) 90 | #define TTAG_prop FT_MAKE_TAG( 'p', 'r', 'o', 'p' ) 91 | #define TTAG_sbix FT_MAKE_TAG( 's', 'b', 'i', 'x' ) 92 | #define TTAG_sfnt FT_MAKE_TAG( 's', 'f', 'n', 't' ) 93 | #define TTAG_SING FT_MAKE_TAG( 'S', 'I', 'N', 'G' ) 94 | #define TTAG_trak FT_MAKE_TAG( 't', 'r', 'a', 'k' ) 95 | #define TTAG_true FT_MAKE_TAG( 't', 'r', 'u', 'e' ) 96 | #define TTAG_ttc FT_MAKE_TAG( 't', 't', 'c', ' ' ) 97 | #define TTAG_ttcf FT_MAKE_TAG( 't', 't', 'c', 'f' ) 98 | #define TTAG_TYP1 FT_MAKE_TAG( 'T', 'Y', 'P', '1' ) 99 | #define TTAG_typ1 FT_MAKE_TAG( 't', 'y', 'p', '1' ) 100 | #define TTAG_VDMX FT_MAKE_TAG( 'V', 'D', 'M', 'X' ) 101 | #define TTAG_vhea FT_MAKE_TAG( 'v', 'h', 'e', 'a' ) 102 | #define TTAG_vmtx FT_MAKE_TAG( 'v', 'm', 't', 'x' ) 103 | #define TTAG_wOFF FT_MAKE_TAG( 'w', 'O', 'F', 'F' ) 104 | 105 | 106 | FT_END_HEADER 107 | 108 | #endif /* __TTAGS_H__ */ 109 | 110 | 111 | /* END */ 112 | -------------------------------------------------------------------------------- /Accelerator/Accelerator/ftsdk/include/ttunpat.h: -------------------------------------------------------------------------------- 1 | /***************************************************************************/ 2 | /* */ 3 | /* ttunpat.h */ 4 | /* */ 5 | /* Definitions for the unpatented TrueType hinting system */ 6 | /* */ 7 | /* Copyright 2003, 2006 by */ 8 | /* David Turner, Robert Wilhelm, and Werner Lemberg. */ 9 | /* */ 10 | /* Written by Graham Asher <graham.asher@btinternet.com> */ 11 | /* */ 12 | /* This file is part of the FreeType project, and may only be used, */ 13 | /* modified, and distributed under the terms of the FreeType project */ 14 | /* license, LICENSE.TXT. By continuing to use, modify, or distribute */ 15 | /* this file you indicate that you have read the license and */ 16 | /* understand and accept it fully. */ 17 | /* */ 18 | /***************************************************************************/ 19 | 20 | 21 | #ifndef __TTUNPAT_H__ 22 | #define __TTUNPAT_H__ 23 | 24 | 25 | #include <ft2build.h> 26 | #include FT_FREETYPE_H 27 | 28 | #ifdef FREETYPE_H 29 | #error "freetype.h of FreeType 1 has been loaded!" 30 | #error "Please fix the directory search order for header files" 31 | #error "so that freetype.h of FreeType 2 is found first." 32 | #endif 33 | 34 | 35 | FT_BEGIN_HEADER 36 | 37 | 38 | /*************************************************************************** 39 | * 40 | * @constant: 41 | * FT_PARAM_TAG_UNPATENTED_HINTING 42 | * 43 | * @description: 44 | * A constant used as the tag of an @FT_Parameter structure to indicate 45 | * that unpatented methods only should be used by the TrueType bytecode 46 | * interpreter for a typeface opened by @FT_Open_Face. 47 | * 48 | */ 49 | #define FT_PARAM_TAG_UNPATENTED_HINTING FT_MAKE_TAG( 'u', 'n', 'p', 'a' ) 50 | 51 | /* */ 52 | 53 | FT_END_HEADER 54 | 55 | 56 | #endif /* __TTUNPAT_H__ */ 57 | 58 | 59 | /* END */ 60 | -------------------------------------------------------------------------------- /Accelerator/Accelerator/ftsdk/lib/freetype.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Inori/Accelerator/ad1df0ee349dc626bafa0a94b549619a18d1762d/Accelerator/Accelerator/ftsdk/lib/freetype.lib -------------------------------------------------------------------------------- /Accelerator/Accelerator/libpng16.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Inori/Accelerator/ad1df0ee349dc626bafa0a94b549619a18d1762d/Accelerator/Accelerator/libpng16.lib -------------------------------------------------------------------------------- /Accelerator/Accelerator/pngfile.h: -------------------------------------------------------------------------------- 1 | #ifndef PNGFILE_H 2 | #define PNGFILE_H 3 | #include <string> 4 | #include <stdio.h> 5 | 6 | #include "zlib.h" 7 | #include "png.h" 8 | 9 | using namespace std; 10 | 11 | #define PNG_BYTES_TO_CHECK 4 12 | 13 | enum AlphaFlag 14 | { 15 | HAVE_ALPHA = 0, 16 | NO_ALPHA 17 | }; 18 | 19 | typedef struct _PNG_DATA 20 | { 21 | unsigned int nWidth; 22 | unsigned int nHeight; 23 | AlphaFlag eFlag; 24 | unsigned char *pRgba; 25 | } PNG_DATA; 26 | 27 | class PngFile 28 | { 29 | public: 30 | 31 | static bool ReadPngFile(const char* pszFileName, PNG_DATA* pPngData); 32 | 33 | static bool ReadPngFile(FILE* pFile, PNG_DATA* pPngData); 34 | 35 | static bool WritePngFile(const char* pszFileName, PNG_DATA* pPngData); 36 | 37 | static bool WritePngFile(FILE* pFile, PNG_DATA* pPngData); 38 | 39 | private: 40 | static bool ReadRGBA(png_bytepp pRow, int nWidth, int nHeight, PNG_DATA* pPngData); 41 | static bool ReadRGB(png_bytepp pRow, int nWidth, int nHeight, PNG_DATA* pPngData); 42 | }; 43 | 44 | #endif -------------------------------------------------------------------------------- /Accelerator/Accelerator/replacemap.cpp: -------------------------------------------------------------------------------- 1 | #include "replacemap.h" 2 | #include <cstdio> 3 | 4 | ReplaceMap::ReplaceMap() 5 | { 6 | } 7 | 8 | ReplaceMap::~ReplaceMap() 9 | { 10 | } 11 | 12 | bool ReplaceMap::FillMap(const std::string& strPkgName) 13 | { 14 | if (strPkgName.empty()) 15 | { 16 | return false; 17 | } 18 | 19 | FILE* fPkg = fopen(strPkgName.c_str(), "rb"); 20 | if (!fPkg) 21 | { 22 | return false; 23 | } 24 | 25 | 26 | header_t oHeader; 27 | fread(&oHeader, sizeof(header_t), 1, fPkg); 28 | 29 | fseek(fPkg, oHeader.index_offset, SEEK_SET); 30 | 31 | ulong entry_count = oHeader.index_length / sizeof(entry_t); 32 | entry_t *pEntries = new entry_t[entry_count]; 33 | 34 | fread(pEntries, oHeader.index_length, 1, fPkg); 35 | 36 | my_entry_t * pMyEntry = new my_entry_t[entry_count]; 37 | memset(pMyEntry, 0, sizeof(my_entry_t) * entry_count); 38 | for (int i = 0; i < entry_count; i++) 39 | { 40 | fseek(fPkg, pEntries[i].name_offset, SEEK_SET); 41 | fread(pMyEntry[i].name, pEntries[i].name_length, 1, fPkg); 42 | 43 | pMyEntry[i].info.offset = pEntries[i].offset; 44 | pMyEntry[i].info.length = pEntries[i].length; 45 | pMyEntry[i].info.org_length = pEntries[i].org_length; 46 | 47 | m_oMap.insert(InfoMap::value_type(pMyEntry[i].name, pMyEntry[i].info)); 48 | } 49 | 50 | delete[] pMyEntry; 51 | delete[] pEntries; 52 | fclose(fPkg); 53 | 54 | } 55 | 56 | bool ReplaceMap::GetInfo(const std::string& strKey, info_t* pOutInfo) 57 | { 58 | if (!pOutInfo) 59 | { 60 | return false; 61 | } 62 | 63 | InfoMap::iterator iter = m_oMap.find(strKey); 64 | if (iter == m_oMap.end()) 65 | { 66 | return false; 67 | } 68 | 69 | *pOutInfo = iter->second; 70 | return true; 71 | } 72 | -------------------------------------------------------------------------------- /Accelerator/Accelerator/replacemap.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include "types.h" 4 | #include <string> 5 | #include <unordered_map> 6 | 7 | #pragma pack (1) 8 | typedef struct { 9 | char magic[8]; /* "FUYINPAK" */ 10 | uint header_length; 11 | uint is_compressed; 12 | uint index_offset; 13 | uint index_length; 14 | } header_t; 15 | 16 | typedef struct { 17 | uint name_offset; 18 | uint name_length; 19 | uint offset; 20 | uint length; 21 | uint org_length; 22 | } entry_t; 23 | 24 | typedef struct { 25 | uint offset; 26 | uint length; 27 | uint org_length; 28 | } info_t; 29 | 30 | typedef struct { 31 | char name[MAX_PATH]; 32 | info_t info; 33 | } my_entry_t; 34 | 35 | #pragma pack () 36 | 37 | typedef std::unordered_map<std::string, info_t> InfoMap; 38 | 39 | class ReplaceMap 40 | { 41 | public: 42 | ReplaceMap(); 43 | ~ReplaceMap(); 44 | 45 | bool FillMap(const std::string& strPkgName); 46 | 47 | bool GetInfo(const std::string& strKey, info_t* pOutInfo); 48 | 49 | private: 50 | InfoMap m_oMap; 51 | }; 52 | -------------------------------------------------------------------------------- /Accelerator/Accelerator/scriptparser.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Inori/Accelerator/ad1df0ee349dc626bafa0a94b549619a18d1762d/Accelerator/Accelerator/scriptparser.cpp -------------------------------------------------------------------------------- /Accelerator/Accelerator/scriptparser.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Inori/Accelerator/ad1df0ee349dc626bafa0a94b549619a18d1762d/Accelerator/Accelerator/scriptparser.h -------------------------------------------------------------------------------- /Accelerator/Accelerator/tools.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Inori/Accelerator/ad1df0ee349dc626bafa0a94b549619a18d1762d/Accelerator/Accelerator/tools.cpp -------------------------------------------------------------------------------- /Accelerator/Accelerator/tools.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Inori/Accelerator/ad1df0ee349dc626bafa0a94b549619a18d1762d/Accelerator/Accelerator/tools.h -------------------------------------------------------------------------------- /Accelerator/Accelerator/translate.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Inori/Accelerator/ad1df0ee349dc626bafa0a94b549619a18d1762d/Accelerator/Accelerator/translate.cpp -------------------------------------------------------------------------------- /Accelerator/Accelerator/translate.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Inori/Accelerator/ad1df0ee349dc626bafa0a94b549619a18d1762d/Accelerator/Accelerator/translate.h -------------------------------------------------------------------------------- /Accelerator/Accelerator/types.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Inori/Accelerator/ad1df0ee349dc626bafa0a94b549619a18d1762d/Accelerator/Accelerator/types.h -------------------------------------------------------------------------------- /Accelerator/Accelerator/zlib.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Inori/Accelerator/ad1df0ee349dc626bafa0a94b549619a18d1762d/Accelerator/Accelerator/zlib.lib -------------------------------------------------------------------------------- /Accelerator/GameInfo.txt: -------------------------------------------------------------------------------- 1 | /*******************************************************/ 2 | 记录游戏主程序需要HOOK处的特征反汇编代码或相关信息,以便日后查找。 3 | 4 | 5 | 6 | /*******************************************************/ 7 | YukaScript 8 | 9 | 10 | 断点 GDI32.TextOutA, 找到游戏使用的即可,LQ有两处,都需要hook,不然会出bug 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | /*******************************************************/ 22 | EntisGLS 23 | 24 | 25 | 断点GDI32.GetGlyphOutlineW,找到其调用者,此函数只有一个参数压栈,如果非空则为字符串。 26 | 注意如果是空需要清空字符串缓存。 27 | 28 | 29 | 004B2410 |. FF56 50 |call dword ptr [esi+0x50] ; GDI32.GetGlyphOutlineW 30 | 31 | 调用者: 32 | 00480256 | . 53 push ebx 33 | 00480257 | . 8BCF mov ecx, edi 34 | 00480259 | . 897C24 14 mov dword ptr[esp + 0x14], edi 35 | 0048025D FF52 10 call dword ptr[edx + 0x10]; get_glyph. dword ptr[edx + 0x10] = 004B21F0 36 | 37 | 38 | 39 | /*******************************************************/ 40 | 41 | 42 | 43 | 44 | 45 | 46 | -------------------------------------------------------------------------------- /Accelerator/ImportText/ImportText.py: -------------------------------------------------------------------------------- 1 | # -*- coding:utf-8 -*- 2 | import struct,os,sys, re 3 | 4 | ''' 5 | //脚本封包文件头 6 | typedef struct _acr_header 7 | { 8 | ulong index_count; //包含索引数,即字符串数 9 | ulong compress_flag; //是否压缩。 0没有压缩 10 | ulong compsize; //如果有压缩,为压缩后大小,否则等于orgsize 11 | ulong orgsize; //如果有压缩,为压缩前【压缩部分】大小,否则为实际大小 12 | }acr_header; 13 | 14 | typedef struct _acr_index 15 | { 16 | ulong hash; //oldstr的hash值,用于map查找 17 | ulong old_str_off; //oldstr 地址 18 | ulong old_str_len; //oldstr 字节长度 19 | ulong new_str_off; //newstr 地址 20 | ulong new_str_len; //newstr 长度 21 | }acr_index; 22 | ''' 23 | COMPRESS = 0 24 | HEADERLEN = 0x10 25 | INDEXLEN = 0x14 26 | 27 | #遍历文件夹,返回文件列表 28 | def walk(adr): 29 | mylist=[] 30 | for root,dirs,files in os.walk(adr): 31 | for name in files: 32 | adrlist=os.path.join(root, name) 33 | mylist.append(adrlist) 34 | return mylist 35 | 36 | #将4字节byte转换成整数 37 | def byte2int(byte): 38 | long_tuple=struct.unpack('L',byte) 39 | long = long_tuple[0] 40 | return long 41 | 42 | #将整数转换为4字节二进制byte 43 | def int2byte(num): 44 | return struct.pack('L',num) 45 | 46 | def fixjpstr(string): 47 | newstr = string.replace('/', '') 48 | return newstr 49 | 50 | def fixcnstr(string): 51 | newstr = string.replace('/', '\n') 52 | return newstr 53 | 54 | #将txt转换成文本列表,重写此函数可以适应于不同格式的文本 55 | def makestr(lines): 56 | oldstr_list = [] 57 | newstr_list = [] 58 | for index,line in enumerate(lines): 59 | part = re.match('<.+>(.*)\=(.*)\n', line) 60 | if part: 61 | oldstr = part.group(1)[:-1] 62 | newstr = part.group(2) 63 | oldstr_list.append(fixjpstr(oldstr)) 64 | newstr_list.append(fixcnstr(newstr)) 65 | elif line != '\n': 66 | print(line) 67 | 68 | return oldstr_list, newstr_list 69 | ''' 70 | def makestr(lines): 71 | oldstr_list = [] 72 | newstr_list = [] 73 | for index,line in enumerate(lines): 74 | if re.match('\[JP[0-9]+\] \[.+\]', line): 75 | part = re.match('\[JP[0-9]+\] \[.+\]', line).group() 76 | off = len(part) 77 | oldstr_list.append(line[off+1:-1]) 78 | 79 | elif re.match('\[JP[0-9]+\]', line) or re.match('\[JP|CHOICE[0-9]+\]', line): 80 | oldstr_list.append(line[10:-1]) 81 | 82 | elif re.match('\[EN[0-9]+\] \[.+\]', line): 83 | part = re.match('\[EN[0-9]+\] \[.+\]', line).group() 84 | off = len(part) 85 | newstr_list.append(line[off+1:-1]) 86 | 87 | elif re.match('\[EN[0-9]+\]', line) or re.match('\[EN|CHOICE[0-9]+\]', line): 88 | newstr_list.append(line[10:-1]) 89 | 90 | elif line != '\n': 91 | print(line) 92 | return oldstr_list, newstr_list 93 | ''' 94 | def BKDRHash(bytes): 95 | hash = 0 96 | seed = 131 97 | for c in bytes: 98 | if c != 0: 99 | hash = hash*seed + c 100 | return (hash&0x7FFFFFFF) 101 | 102 | 103 | def WriteString(src, oldstr_list, newstr_list): 104 | index = [] 105 | for oldstr, newstr in zip(oldstr_list, newstr_list): 106 | 107 | oldoff = src.tell() 108 | bstring = oldstr.encode('utf_16_le') 109 | hash = BKDRHash(bstring) 110 | oldlen = len(bstring) 111 | src.write(bstring) 112 | 113 | newoff = src.tell() 114 | bstring = newstr.encode('utf_16_le') 115 | newlen = len(bstring) 116 | src.write(bstring) 117 | 118 | index.append([hash, oldoff, oldlen, newoff, newlen]) 119 | 120 | filesize = src.tell() 121 | return index, filesize 122 | 123 | def WriteIndex(src, index): 124 | src.seek(HEADERLEN) 125 | for [hash, oldoff, oldlen, newoff, newlen] in index: 126 | src.write(int2byte(hash)) 127 | src.write(int2byte(oldoff)) 128 | src.write(int2byte(oldlen)) 129 | src.write(int2byte(newoff)) 130 | src.write(int2byte(newlen)) 131 | 132 | 133 | def Main(): 134 | text_filename = sys.argv[1] 135 | pac_filename = text_filename[:-4] + '.acr' 136 | 137 | txt = open(text_filename, 'r', encoding='utf16') 138 | dst = open(pac_filename, 'wb') 139 | 140 | lines = txt.readlines() 141 | 142 | oldstr_list, newstr_list = makestr(lines) 143 | 144 | if len(oldstr_list) != len(newstr_list): 145 | print('number not match') 146 | exit(1) 147 | 148 | index_count = len(newstr_list) 149 | dst.seek(HEADERLEN + index_count*INDEXLEN) 150 | index_list, filesize = WriteString(dst,oldstr_list, newstr_list) 151 | 152 | dst.seek(HEADERLEN) 153 | WriteIndex(dst, index_list) 154 | 155 | dst.seek(0) 156 | dst.write(int2byte(index_count)) 157 | dst.write(int2byte(COMPRESS)) 158 | dst.write(int2byte(filesize - HEADERLEN)) 159 | dst.write(int2byte(filesize - HEADERLEN)) 160 | 161 | txt.close() 162 | dst.close() 163 | 164 | Main() 165 | 166 | 167 | 168 | 169 | 170 | 171 | 172 | 173 | 174 | 175 | 176 | 177 | 178 | 179 | 180 | 181 | 182 | 183 | -------------------------------------------------------------------------------- /Accelerator/ImportText/ImportTextByOffset.py: -------------------------------------------------------------------------------- 1 | # -*- coding:utf-8 -*- 2 | import struct,os,sys, re 3 | 4 | ''' 5 | //脚本封包文件头 6 | typedef struct _acr_header 7 | { 8 | ulong index_count; //包含索引数,即字符串数 9 | ulong compress_flag; //是否压缩。 0没有压缩 10 | ulong compsize; //如果有压缩,为压缩后大小,否则等于orgsize 11 | ulong orgsize; //如果有压缩,为压缩前【压缩部分】大小,否则为实际大小 12 | }acr_header; 13 | 14 | typedef struct _acr_index 15 | { 16 | ulong hash; //oldstr的hash值,用于map查找 17 | ulong old_str_off; //oldstr 地址 18 | ulong old_str_len; //oldstr 字节长度 19 | ulong new_str_off; //newstr 地址 20 | ulong new_str_len; //newstr 长度 21 | }acr_index; 22 | ''' 23 | COMPRESS = 0 24 | HEADERLEN = 0x10 25 | INDEXLEN = 0x14 26 | 27 | #遍历文件夹,返回文件列表 28 | def walk(adr): 29 | mylist=[] 30 | for root,dirs,files in os.walk(adr): 31 | for name in files: 32 | adrlist=os.path.join(root, name) 33 | mylist.append(adrlist) 34 | return mylist 35 | 36 | #将4字节byte转换成整数 37 | def byte2int(byte): 38 | long_tuple=struct.unpack('L',byte) 39 | long = long_tuple[0] 40 | return long 41 | 42 | #将整数转换为4字节二进制byte 43 | def int2byte(num): 44 | return struct.pack('L',num) 45 | 46 | def fixjpstr(string): 47 | newstr = string.replace('', '') 48 | return newstr 49 | 50 | def fixcnstr(string): 51 | newstr = string.replace('', '') 52 | return newstr 53 | 54 | #将txt转换成文本列表,重写此函数可以适应于不同格式的文本 55 | def makestr(lines): 56 | oldstr_list = [] 57 | newstr_list = [] 58 | offset_list = [] 59 | count = len(lines) 60 | 61 | for index,line in enumerate(lines): 62 | part = re.match('○([0-9A-Fa-f]+)○[0-9]+●', line) 63 | if part: 64 | offset = int(part.group(1), base=16) 65 | oldstr = lines[index+1][:-1] 66 | newstr = lines[index+1][:-1] 67 | 68 | offset_list.append(offset) 69 | oldstr_list.append(fixjpstr(oldstr)) 70 | newstr_list.append(fixcnstr(newstr)) 71 | 72 | return offset_list, oldstr_list, newstr_list 73 | ''' 74 | def makestr(lines): 75 | oldstr_list = [] 76 | newstr_list = [] 77 | for index,line in enumerate(lines): 78 | part = re.match('<.+>(.*)\=(.*)\n', line) 79 | if part: 80 | oldstr = part.group(1)[:-1] 81 | newstr = part.group(2) 82 | oldstr_list.append(fixjpstr(oldstr)) 83 | newstr_list.append(fixcnstr(newstr)) 84 | elif line != '\n': 85 | print(line) 86 | 87 | return oldstr_list, newstr_list 88 | ''' 89 | ''' 90 | def makestr(lines): 91 | oldstr_list = [] 92 | newstr_list = [] 93 | for index,line in enumerate(lines): 94 | if re.match('\[JP[0-9]+\] \[.+\]', line): 95 | part = re.match('\[JP[0-9]+\] \[.+\]', line).group() 96 | off = len(part) 97 | oldstr_list.append(line[off+1:-1]) 98 | 99 | elif re.match('\[JP[0-9]+\]', line) or re.match('\[JP|CHOICE[0-9]+\]', line): 100 | oldstr_list.append(line[10:-1]) 101 | 102 | elif re.match('\[EN[0-9]+\] \[.+\]', line): 103 | part = re.match('\[EN[0-9]+\] \[.+\]', line).group() 104 | off = len(part) 105 | newstr_list.append(line[off+1:-1]) 106 | 107 | elif re.match('\[EN[0-9]+\]', line) or re.match('\[EN|CHOICE[0-9]+\]', line): 108 | newstr_list.append(line[10:-1]) 109 | 110 | elif line != '\n': 111 | print(line) 112 | return oldstr_list, newstr_list 113 | ''' 114 | def BKDRHash(bytes): 115 | hash = 0 116 | seed = 131 117 | for c in bytes: 118 | if c != 0: 119 | hash = hash*seed + c 120 | return (hash&0x7FFFFFFF) 121 | 122 | 123 | def WriteString(src, offset_list, oldstr_list, newstr_list): 124 | index = [] 125 | for offset, oldstr, newstr in zip(offset_list, oldstr_list, newstr_list): 126 | 127 | oldoff = src.tell() 128 | bstring = oldstr.encode('gbk', errors='ignore') 129 | oldlen = len(bstring) 130 | src.write(bstring) 131 | 132 | newoff = src.tell() 133 | bstring = newstr.encode('gbk', errors='ignore') 134 | newlen = len(bstring) 135 | src.write(bstring) 136 | 137 | index.append([offset, oldoff, oldlen, newoff, newlen]) 138 | 139 | filesize = src.tell() 140 | return index, filesize 141 | 142 | def WriteIndex(src, index): 143 | src.seek(HEADERLEN) 144 | for [hash, oldoff, oldlen, newoff, newlen] in index: 145 | src.write(int2byte(hash)) 146 | src.write(int2byte(oldoff)) 147 | src.write(int2byte(oldlen)) 148 | src.write(int2byte(newoff)) 149 | src.write(int2byte(newlen)) 150 | 151 | 152 | def Main(): 153 | text_filename = sys.argv[1] 154 | pac_filename = text_filename[:-4] + '.acr' 155 | 156 | txt = open(text_filename, 'r', encoding='utf16') 157 | dst = open(pac_filename, 'wb') 158 | 159 | lines = txt.readlines() 160 | 161 | offset_list, oldstr_list, newstr_list = makestr(lines) 162 | 163 | if len(oldstr_list) != len(newstr_list): 164 | print('number not match') 165 | exit(1) 166 | 167 | index_count = len(newstr_list) 168 | dst.seek(HEADERLEN + index_count*INDEXLEN) 169 | index_list, filesize = WriteString(dst,offset_list, oldstr_list, newstr_list) 170 | 171 | dst.seek(HEADERLEN) 172 | WriteIndex(dst, index_list) 173 | 174 | dst.seek(0) 175 | dst.write(int2byte(index_count)) 176 | dst.write(int2byte(COMPRESS)) 177 | dst.write(int2byte(filesize - HEADERLEN)) 178 | dst.write(int2byte(filesize - HEADERLEN)) 179 | 180 | txt.close() 181 | dst.close() 182 | 183 | Main() 184 | 185 | 186 | 187 | 188 | 189 | 190 | 191 | 192 | 193 | 194 | 195 | 196 | 197 | 198 | 199 | 200 | 201 | 202 | -------------------------------------------------------------------------------- /Accelerator/Readme.txt: -------------------------------------------------------------------------------- 1 | Accelerator 2 | 3 | /////////////////////////////////////////////////////////////////////////////////////// 4 | 1.Accelerator 5 | 主dll文件,注入进程,hook绘制函数等,并自己实现,以达到输出任意自定义字符串、选择并 6 | 7 | 渲染字体等目的。 8 | 9 | +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 10 | 版本信息: 11 | 12 | V0.01 13 | 刚刚测试的版本 14 | bug过多,无法使用 15 | 16 | V0.20 17 | 重新构建代码,添加FreeType + GDI+绘制文字类 18 | 19 | V0.30 20 | 添加StringInjector类,实现通过日文字符串hash值查找对应中文字符串的功能。 21 | 目前代码比较简陋,仅实现最低限度功能,存在bug。 22 | 23 | V0.31 24 | 修正了一些导致游戏崩溃的严重bug 25 | 基本实现了字符串查找替换功能。 26 | 27 | V0.32 28 | 添加LogFile类 29 | 修正一些bug,添加一些工具函数。 30 | 31 | V0.40 32 | 重新安排代码结构,添加文本文件的分析类 33 | 优化部分方法性能 34 | 35 | /////////////////////////////////////////////////////////////////////////////////////// 36 | 2.ImportText 37 | 文本打包脚本,打包后的封包可以被Accelerator读取 38 | 39 | 40 | -------------------------------------------------------------------------------- /Misaka/DumpFile/DumpFile.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Inori/Accelerator/ad1df0ee349dc626bafa0a94b549619a18d1762d/Misaka/DumpFile/DumpFile.cpp -------------------------------------------------------------------------------- /Misaka/DumpFile/DumpFile.vcxproj.filters: -------------------------------------------------------------------------------- 1 | <?xml version="1.0" encoding="utf-8"?> 2 | <Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> 3 | <ItemGroup> 4 | <Filter Include="源文件"> 5 | <UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier> 6 | <Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions> 7 | </Filter> 8 | <Filter Include="头文件"> 9 | <UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier> 10 | <Extensions>h;hh;hpp;hxx;hm;inl;inc;xsd</Extensions> 11 | </Filter> 12 | <Filter Include="资源文件"> 13 | <UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier> 14 | <Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions> 15 | </Filter> 16 | </ItemGroup> 17 | <ItemGroup> 18 | <Text Include="ReadMe.txt" /> 19 | </ItemGroup> 20 | <ItemGroup> 21 | <ClInclude Include="stdafx.h"> 22 | <Filter>头文件</Filter> 23 | </ClInclude> 24 | <ClInclude Include="targetver.h"> 25 | <Filter>头文件</Filter> 26 | </ClInclude> 27 | <ClInclude Include="detours.h"> 28 | <Filter>头文件</Filter> 29 | </ClInclude> 30 | <ClInclude Include="detver.h"> 31 | <Filter>头文件</Filter> 32 | </ClInclude> 33 | <ClInclude Include="zconf.h"> 34 | <Filter>头文件</Filter> 35 | </ClInclude> 36 | <ClInclude Include="zlib.h"> 37 | <Filter>头文件</Filter> 38 | </ClInclude> 39 | </ItemGroup> 40 | <ItemGroup> 41 | <ClCompile Include="stdafx.cpp"> 42 | <Filter>源文件</Filter> 43 | </ClCompile> 44 | <ClCompile Include="DumpFile.cpp"> 45 | <Filter>源文件</Filter> 46 | </ClCompile> 47 | <ClCompile Include="dllmain.cpp"> 48 | <Filter>源文件</Filter> 49 | </ClCompile> 50 | </ItemGroup> 51 | <ItemGroup> 52 | <Library Include="detours.lib"> 53 | <Filter>资源文件</Filter> 54 | </Library> 55 | <Library Include="zlib.lib"> 56 | <Filter>资源文件</Filter> 57 | </Library> 58 | </ItemGroup> 59 | </Project> -------------------------------------------------------------------------------- /Misaka/DumpFile/ReadMe.txt: -------------------------------------------------------------------------------- 1 | ======================================================================== 2 | 动态链接库:DumpFile 项目概述 3 | ======================================================================== 4 | 5 | 应用程序向导已为您创建了此 DumpFile DLL。 6 | 7 | 本文件概要介绍组成 DumpFile 应用程序的每个文件的内容。 8 | 9 | 10 | DumpFile.vcxproj 11 | 这是使用应用程序向导生成的 VC++ 项目的主项目文件,其中包含生成该文件的 Visual C++ 的版本信息,以及有关使用应用程序向导选择的平台、配置和项目功能的信息。 12 | 13 | DumpFile.vcxproj.filters 14 | 这是使用“应用程序向导”生成的 VC++ 项目筛选器文件。它包含有关项目文件与筛选器之间的关联信息。在 IDE 中,通过这种关联,在特定节点下以分组形式显示具有相似扩展名的文件。例如,“.cpp”文件与“源文件”筛选器关联。 15 | 16 | DumpFile.cpp 17 | 这是主 DLL 源文件。 18 | 19 | 此 DLL 在创建时不导出任何符号。因此,生成时不会产生 .lib 文件。如果希望此项目成为其他某个项目的项目依赖项,则需要添加代码以从 DLL 导出某些符号,以便产生一个导出库,或者,也可以在项目“属性页”对话框中的“链接器”文件夹中,将“常规”属性页上的“忽略输入库”属性设置为“是”。 20 | 21 | ///////////////////////////////////////////////////////////////////////////// 22 | 其他标准文件: 23 | 24 | StdAfx.h, StdAfx.cpp 25 | 这些文件用于生成名为 DumpFile.pch 的预编译头 (PCH) 文件和名为 StdAfx.obj 的预编译类型文件。 26 | 27 | ///////////////////////////////////////////////////////////////////////////// 28 | 其他注释: 29 | 30 | 应用程序向导使用“TODO:”注释来指示应添加或自定义的源代码部分。 31 | 32 | ///////////////////////////////////////////////////////////////////////////// 33 | -------------------------------------------------------------------------------- /Misaka/DumpFile/detours.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Inori/Accelerator/ad1df0ee349dc626bafa0a94b549619a18d1762d/Misaka/DumpFile/detours.lib -------------------------------------------------------------------------------- /Misaka/DumpFile/detver.h: -------------------------------------------------------------------------------- 1 | ////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // Common version parameters. 4 | // 5 | // Microsoft Research Detours Package, Version 3.0 Build_316. 6 | // 7 | // Copyright (c) Microsoft Corporation. All rights reserved. 8 | // 9 | 10 | #ifndef DETOURS_STRINGIFY 11 | #define DETOURS_STRINGIFY(x) DETOURS_STRINGIFY_(x) 12 | #define DETOURS_STRINGIFY_(x) #x 13 | #endif 14 | 15 | #define VER_FILEFLAGSMASK 0x3fL 16 | #define VER_FILEFLAGS 0x0L 17 | #define VER_FILEOS 0x00040004L 18 | #define VER_FILETYPE 0x00000002L 19 | #define VER_FILESUBTYPE 0x00000000L 20 | 21 | #define VER_DETOURS_BITS DETOUR_STRINGIFY(DETOURS_BITS) 22 | -------------------------------------------------------------------------------- /Misaka/DumpFile/dllmain.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Inori/Accelerator/ad1df0ee349dc626bafa0a94b549619a18d1762d/Misaka/DumpFile/dllmain.cpp -------------------------------------------------------------------------------- /Misaka/DumpFile/stdafx.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Inori/Accelerator/ad1df0ee349dc626bafa0a94b549619a18d1762d/Misaka/DumpFile/stdafx.cpp -------------------------------------------------------------------------------- /Misaka/DumpFile/stdafx.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Inori/Accelerator/ad1df0ee349dc626bafa0a94b549619a18d1762d/Misaka/DumpFile/stdafx.h -------------------------------------------------------------------------------- /Misaka/DumpFile/targetver.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Inori/Accelerator/ad1df0ee349dc626bafa0a94b549619a18d1762d/Misaka/DumpFile/targetver.h -------------------------------------------------------------------------------- /Misaka/DumpFile/zlib.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Inori/Accelerator/ad1df0ee349dc626bafa0a94b549619a18d1762d/Misaka/DumpFile/zlib.lib -------------------------------------------------------------------------------- /Misaka/GameInfo.txt: -------------------------------------------------------------------------------- 1 | /*******************************************************/ 2 | 记录游戏主程序需要HOOK处的特征反汇编代码,以便日后查找。 3 | 4 | 5 | 6 | /*******************************************************/ 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /Misaka/Misaka.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 2013 4 | VisualStudioVersion = 12.0.21005.1 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Misaka", "Misaka\Misaka.vcxproj", "{CE02B1B5-4D7C-45D6-A8C1-ECBCEC084611}" 7 | EndProject 8 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "DumpFile", "DumpFile\DumpFile.vcxproj", "{02FBC8E1-0E9D-49A6-B0F4-DFE525FFD61F}" 9 | EndProject 10 | Global 11 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 12 | Debug|Win32 = Debug|Win32 13 | Release|Win32 = Release|Win32 14 | EndGlobalSection 15 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 16 | {CE02B1B5-4D7C-45D6-A8C1-ECBCEC084611}.Debug|Win32.ActiveCfg = Debug|Win32 17 | {CE02B1B5-4D7C-45D6-A8C1-ECBCEC084611}.Debug|Win32.Build.0 = Debug|Win32 18 | {CE02B1B5-4D7C-45D6-A8C1-ECBCEC084611}.Release|Win32.ActiveCfg = Release|Win32 19 | {CE02B1B5-4D7C-45D6-A8C1-ECBCEC084611}.Release|Win32.Build.0 = Release|Win32 20 | {02FBC8E1-0E9D-49A6-B0F4-DFE525FFD61F}.Debug|Win32.ActiveCfg = Debug|Win32 21 | {02FBC8E1-0E9D-49A6-B0F4-DFE525FFD61F}.Debug|Win32.Build.0 = Debug|Win32 22 | {02FBC8E1-0E9D-49A6-B0F4-DFE525FFD61F}.Release|Win32.ActiveCfg = Release|Win32 23 | {02FBC8E1-0E9D-49A6-B0F4-DFE525FFD61F}.Release|Win32.Build.0 = Release|Win32 24 | EndGlobalSection 25 | GlobalSection(SolutionProperties) = preSolution 26 | HideSolutionNode = FALSE 27 | EndGlobalSection 28 | EndGlobal 29 | -------------------------------------------------------------------------------- /Misaka/Misaka/Misaka.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Inori/Accelerator/ad1df0ee349dc626bafa0a94b549619a18d1762d/Misaka/Misaka/Misaka.cpp -------------------------------------------------------------------------------- /Misaka/Misaka/Misaka.vcxproj.filters: -------------------------------------------------------------------------------- 1 | <?xml version="1.0" encoding="utf-8"?> 2 | <Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> 3 | <ItemGroup> 4 | <Filter Include="源文件"> 5 | <UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier> 6 | <Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions> 7 | </Filter> 8 | <Filter Include="头文件"> 9 | <UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier> 10 | <Extensions>h;hh;hpp;hxx;hm;inl;inc;xsd</Extensions> 11 | </Filter> 12 | <Filter Include="资源文件"> 13 | <UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier> 14 | <Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions> 15 | </Filter> 16 | </ItemGroup> 17 | <ItemGroup> 18 | <Text Include="ReadMe.txt" /> 19 | </ItemGroup> 20 | <ItemGroup> 21 | <ClInclude Include="stdafx.h"> 22 | <Filter>头文件</Filter> 23 | </ClInclude> 24 | <ClInclude Include="targetver.h"> 25 | <Filter>头文件</Filter> 26 | </ClInclude> 27 | <ClInclude Include="detours.h"> 28 | <Filter>头文件</Filter> 29 | </ClInclude> 30 | <ClInclude Include="detver.h"> 31 | <Filter>头文件</Filter> 32 | </ClInclude> 33 | <ClInclude Include="zconf.h"> 34 | <Filter>头文件</Filter> 35 | </ClInclude> 36 | <ClInclude Include="zlib.h"> 37 | <Filter>头文件</Filter> 38 | </ClInclude> 39 | </ItemGroup> 40 | <ItemGroup> 41 | <ClCompile Include="stdafx.cpp"> 42 | <Filter>源文件</Filter> 43 | </ClCompile> 44 | <ClCompile Include="Misaka.cpp"> 45 | <Filter>源文件</Filter> 46 | </ClCompile> 47 | <ClCompile Include="dllmain.cpp"> 48 | <Filter>源文件</Filter> 49 | </ClCompile> 50 | </ItemGroup> 51 | <ItemGroup> 52 | <Library Include="detours.lib"> 53 | <Filter>资源文件</Filter> 54 | </Library> 55 | <Library Include="zlib.lib"> 56 | <Filter>资源文件</Filter> 57 | </Library> 58 | </ItemGroup> 59 | </Project> -------------------------------------------------------------------------------- /Misaka/Misaka/ReadMe.txt: -------------------------------------------------------------------------------- 1 | ======================================================================== 2 | 动态链接库:Misaka 项目概述 3 | ======================================================================== 4 | 5 | 应用程序向导已为您创建了此 Misaka DLL。 6 | 7 | 本文件概要介绍组成 Misaka 应用程序的每个文件的内容。 8 | 9 | 10 | Misaka.vcxproj 11 | 这是使用应用程序向导生成的 VC++ 项目的主项目文件,其中包含生成该文件的 Visual C++ 的版本信息,以及有关使用应用程序向导选择的平台、配置和项目功能的信息。 12 | 13 | Misaka.vcxproj.filters 14 | 这是使用“应用程序向导”生成的 VC++ 项目筛选器文件。它包含有关项目文件与筛选器之间的关联信息。在 IDE 中,通过这种关联,在特定节点下以分组形式显示具有相似扩展名的文件。例如,“.cpp”文件与“源文件”筛选器关联。 15 | 16 | Misaka.cpp 17 | 这是主 DLL 源文件。 18 | 19 | 此 DLL 在创建时不导出任何符号。因此,生成时不会产生 .lib 文件。如果希望此项目成为其他某个项目的项目依赖项,则需要添加代码以从 DLL 导出某些符号,以便产生一个导出库,或者,也可以在项目“属性页”对话框中的“链接器”文件夹中,将“常规”属性页上的“忽略输入库”属性设置为“是”。 20 | 21 | ///////////////////////////////////////////////////////////////////////////// 22 | 其他标准文件: 23 | 24 | StdAfx.h, StdAfx.cpp 25 | 这些文件用于生成名为 Misaka.pch 的预编译头 (PCH) 文件和名为 StdAfx.obj 的预编译类型文件。 26 | 27 | ///////////////////////////////////////////////////////////////////////////// 28 | 其他注释: 29 | 30 | 应用程序向导使用“TODO:”注释来指示应添加或自定义的源代码部分。 31 | 32 | ///////////////////////////////////////////////////////////////////////////// 33 | -------------------------------------------------------------------------------- /Misaka/Misaka/detours.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Inori/Accelerator/ad1df0ee349dc626bafa0a94b549619a18d1762d/Misaka/Misaka/detours.lib -------------------------------------------------------------------------------- /Misaka/Misaka/detver.h: -------------------------------------------------------------------------------- 1 | ////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // Common version parameters. 4 | // 5 | // Microsoft Research Detours Package, Version 3.0 Build_316. 6 | // 7 | // Copyright (c) Microsoft Corporation. All rights reserved. 8 | // 9 | 10 | #ifndef DETOURS_STRINGIFY 11 | #define DETOURS_STRINGIFY(x) DETOURS_STRINGIFY_(x) 12 | #define DETOURS_STRINGIFY_(x) #x 13 | #endif 14 | 15 | #define VER_FILEFLAGSMASK 0x3fL 16 | #define VER_FILEFLAGS 0x0L 17 | #define VER_FILEOS 0x00040004L 18 | #define VER_FILETYPE 0x00000002L 19 | #define VER_FILESUBTYPE 0x00000000L 20 | 21 | #define VER_DETOURS_BITS DETOUR_STRINGIFY(DETOURS_BITS) 22 | -------------------------------------------------------------------------------- /Misaka/Misaka/dllmain.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Inori/Accelerator/ad1df0ee349dc626bafa0a94b549619a18d1762d/Misaka/Misaka/dllmain.cpp -------------------------------------------------------------------------------- /Misaka/Misaka/stdafx.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Inori/Accelerator/ad1df0ee349dc626bafa0a94b549619a18d1762d/Misaka/Misaka/stdafx.cpp -------------------------------------------------------------------------------- /Misaka/Misaka/stdafx.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Inori/Accelerator/ad1df0ee349dc626bafa0a94b549619a18d1762d/Misaka/Misaka/stdafx.h -------------------------------------------------------------------------------- /Misaka/Misaka/targetver.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Inori/Accelerator/ad1df0ee349dc626bafa0a94b549619a18d1762d/Misaka/Misaka/targetver.h -------------------------------------------------------------------------------- /Misaka/Misaka/zlib.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Inori/Accelerator/ad1df0ee349dc626bafa0a94b549619a18d1762d/Misaka/Misaka/zlib.lib -------------------------------------------------------------------------------- /Misaka/Readme.txt: -------------------------------------------------------------------------------- 1 | Misaka 2 | 3 | /////////////////////////////////////////////////////////////////////////////////////// 4 | 1. Misaka 5 | 6 | 主dll文件,通过注入游戏进程,hook游戏主程序代码,实现文件级动态汉化。 7 | 8 | 版本信息: 9 | V1.0 10 | 原始版本。 11 | 未判断封包是否压缩。 12 | 未测试图片文件 13 | 14 | 15 | 可工作的 引擎/游戏 列表: 16 | 17 | 1.椎名里緖(RioShiina) 18 | [3rdEye]死神のテスタメント 19 | [3rdEye]幻創のイデア 20 | [GrandCross]六花プラス 21 | 2.QLIE 22 | [eufonie]恋剣乙女 23 | 24 | 25 | /////////////////////////////////////////////////////////////////////////////////////// 26 | 2. DumpFile 27 | 28 | 从运行内存中抓取脚本、图片等文件并写到磁盘。 29 | 30 | 用于最坏的情况,如封包结构过于复杂无法分析,或懒得分析(喂……QAQ) 31 | 32 | 版本信息: 33 | V1.0 34 | 原始版本。 35 | 未测试dump图片文件 36 | 37 | 38 | 可工作的 引擎/游戏 列表: 39 | 40 | 1.椎名里緖(RioShiina) 41 | [GrandCross]六花プラス 42 | 43 | /////////////////////////////////////////////////////////////////////////////////////// 44 | 3.YukaPack.py 45 | 46 | 自定义封包的打包脚本,打包的文件可被Misaka读取。 47 | 48 | 参考了YukaScript游戏引擎的封包结构。 49 | 50 | 51 | -------------------------------------------------------------------------------- /Misaka/YukaPack.py: -------------------------------------------------------------------------------- 1 | # -*- coding:utf-8 -*- 2 | 3 | import struct,os,fnmatch,re,zlib 4 | 5 | #父文件夹名不会被写入 6 | 7 | FOLDERNAME = 'res' 8 | #1为压缩,0为不压缩 9 | COMPRESS = 1 10 | 11 | #遍历文件夹,返回文件列表 12 | def walk(adr): 13 | mylist=[] 14 | for root,dirs,files in os.walk(adr): 15 | for name in files: 16 | adrlist=os.path.join(root, name) 17 | mylist.append(adrlist) 18 | return mylist 19 | 20 | #将4字节byte转换成整数 21 | def byte2int(byte): 22 | long_tuple=struct.unpack('L',byte) 23 | long = long_tuple[0] 24 | return long 25 | 26 | #将整数转换为4字节二进制byte 27 | def int2byte(num): 28 | return struct.pack('L',num) 29 | 30 | #获取文件大小 31 | def GetSize(src): 32 | length = len(src.read()) 33 | src.seek(0) 34 | return length 35 | 36 | #写文件头 37 | def WriteHeader(dst, indexoffset, indexlength): 38 | dst.seek(0) 39 | 40 | sig = b'FUYINPAK' 41 | dst.write(sig) 42 | 43 | header_length = 0x18 44 | dst.write(int2byte(header_length)) 45 | 46 | global COMPRESS 47 | dst.write(int2byte(COMPRESS)) 48 | 49 | dst.write(int2byte(indexoffset)) 50 | dst.write(int2byte(indexlength)) 51 | 52 | #写文件数据 53 | def WriteFile(dst, filelist): 54 | item_list = [] 55 | if dst.tell() < 0x18: 56 | dst.seek(0x18) 57 | for fn in filelist: 58 | off = fn.find('\\') + 1 59 | name = fn[off:].encode('gbk') 60 | offset = dst.tell() 61 | orgsize = os.path.getsize(fn) 62 | src = open(fn, 'rb') 63 | data = src.read() 64 | 65 | if COMPRESS == 1: 66 | compressdata = zlib.compress(data, 9) 67 | size = len(compressdata) 68 | dst.write(compressdata) 69 | else: 70 | size = len(data) 71 | dst.write(data) 72 | src.close() 73 | print(fn) 74 | item_list.append([name, offset, size, orgsize]) 75 | return item_list 76 | 77 | #写文件名索引 78 | def WriteNameIndex(dst, item_list): 79 | entry_list = [] 80 | for cell in item_list: 81 | name_t = cell[0] + struct.pack('B', 0) 82 | name_offset = int2byte(dst.tell()) 83 | name_len = int2byte(len(name_t)) 84 | offset = int2byte(cell[1]) 85 | length = int2byte(cell[2]) 86 | orgsize = int2byte(cell[3]) 87 | entry_list.append([name_offset, name_len, offset, length, orgsize]) 88 | 89 | dst.write(name_t) 90 | return entry_list 91 | 92 | def WriteEntryIndex(dst, entry_list): 93 | indexoffset = dst.tell() 94 | for cell in entry_list: 95 | dst.write(cell[0]+cell[1]+cell[2]+cell[3]+cell[4]) 96 | indexlength = dst.tell() - indexoffset 97 | return indexoffset, indexlength 98 | 99 | def Main(): 100 | 101 | dst = open(FOLDERNAME+'.dat', 'wb') 102 | scr_list = walk(FOLDERNAME) 103 | scr_itemlist = WriteFile(dst, scr_list) 104 | scr_entrylist = WriteNameIndex(dst, scr_itemlist) 105 | indexoffset, indexlength= WriteEntryIndex(dst, scr_entrylist) 106 | WriteHeader(dst, indexoffset, indexlength) 107 | 108 | Main() 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | -------------------------------------------------------------------------------- /Readme.txt: -------------------------------------------------------------------------------- 1 | Accelerator 2 | 3 | Accelerator 一方通行,顾名思义,此项目目的为: 4 | 5 | 通过编写内存读写、HOOK代码,字体绘制代码等,实现一个动态汉化的框架, 6 | 7 | 使手动编写少量代码即可实现复杂的动态汉化。 8 | 9 | 10 | 目前包括以下两项,具体说明见各项目Readme.txt文档: 11 | 12 | 1. Accelerator 13 | 14 | Accelerator主项目,实现字符串级的动态汉化。 15 | 16 | 收集游戏所有显示的字符串,通过FreeType DirectX GDI等功能库,自定义绘制函数替代游戏原有绘制函数。 17 | 18 | 实现 输出自定义字符串、字体选择、渲染等高度自由化定制功能。 19 | 20 | 21 | 2. Misaka 22 | 23 | Accelerator子项目,实现文件级的动态汉化。 24 | 25 | 不改变游戏原有绘制函数,通过将脚本文件、图片文件等单文件从自定义封包中读取并复制到游戏内存, 26 | 27 | 实现汉化功能。 28 | --------------------------------------------------------------------------------