diff --git a/.gitignore b/.gitignore index 5118eb1..07e61e6 100644 --- a/.gitignore +++ b/.gitignore @@ -39,13 +39,6 @@ compile_commands.json .ninja_log build.ninja -# ===== 项目è¿�行时产物 ===== -# overlay差分盘(程åº�è¿�行时在exe目录生æˆ�) -overlay.vhd -# sgfscrypt驱动文件(构建时拷è´�到输出目录) -sgfscrypt.sys -sgfscrypt.inf - # ===== 项目ç§�有目录/文件 ===== /driver/ /refer/ diff --git a/res/driver/sgfscrypt.inf b/res/driver/sgfscrypt.inf new file mode 100644 index 0000000..983b72a --- /dev/null +++ b/res/driver/sgfscrypt.inf @@ -0,0 +1,100 @@ +; +; Copyright(C) SEGA +; + +[Version] +Signature="$Windows NT$" +Class=SegaDevice +ClassGuid={B8ABDCDF-E252-4733-B478-E6D28B58DE97} +Provider=%SEGA% +CatalogFile=sgfscrypt.cat +DriverVer=10/02/2024,01.04.01.00 + +; ********* DestinationDirs ********* + +; –¼‘O‚ð•Ï�X‚·‚éƒtƒ@ƒCƒ‹‚ª‘¶�Ý‚·‚é�ê�Š�A�í�œ‚·‚éƒtƒ@ƒCƒ‹‚ª‚ ‚é�ê�Š‚ðŽw’è‚·‚é�B +; ƒIƒvƒVƒ‡ƒ“‚Æ‚µ‚Ä�AƒfƒtƒHƒ‹ƒg‚̃tƒHƒ‹ƒ_‚ðŽw’è‚·‚邱‚Æ‚à‰Â”\�B +; ƒfƒtƒHƒ‹ƒg‚̃tƒHƒ‹ƒ_‚Í DestinationDirs “à‚ÅŽw’肳‚ê‚Ä‚¢‚È‚¢‚à‚Ì‚ªŽg—p‚·‚é�B + +[DestinationDirs] +sgfscrypt.Files.Sys.ntamd64 = 12 +sgfscrypt.Files.Inf = 12 + +; *********************************** + +[SourceDisksNames] +1 = %DiskName% + +[SourceDisksFiles] +sgfscrypt.sys=1,, +sgfscrypt.inf=1,, +WdfCoInstaller01011.dll=1 + +[Manufacturer] +%SEGA%=sgfscryptDevice,ntamd64 + +[sgfscryptDevice.ntamd64] +%sgfscryptDesc% = sgfscryptInstall, sgfscrypt + +; ********* DefaultInstall ********* + +[sgfscryptInstall.ntamd64] +CopyFiles=sgfscrypt.Files.Sys.ntamd64,sgfscrypt.Files.Inf + +[sgfscryptInstall.ntamd64.Services] +AddService = sgfscrypt, %SPSVCINST_ASSOCSERVICE%, sgfscryptServiceInst.ntamd64 + +[sgfscryptServiceInst.ntamd64] +ServiceType = %SERVICE_KERNEL_DRIVER% +StartType = %SERVICE_SYSTEM_START% +ErrorControl = %SERVICE_ERROR_NORMAL% +DisplayName = %sgfscryptServiceDesc% +ServiceBinary = %12%\sgfscrypt.sys + +[sgfscrypt.Files.Sys.ntamd64] +sgfscrypt.sys,,,0x00000006 + +[sgfscrypt.Files.Inf] +sgfscrypt.inf,,,0x00000006 + +[Standard.NTamd64.CoInstallers] +AddReg=fscryptDeviceCoInstallerAddReg +CopyFiles=fscryptDevice_CoInstaller_CopyFiles + +[fscryptDevice.NT.CoInstallers] +AddReg=fscryptDeviceCoInstallerAddReg +CopyFiles=fscryptDeviceCoInstallerCopyFiles + +[fscryptDeviceCoInstallerAddReg] +HKR,,CoInstallers32,0x00010000, "WdfCoInstaller01011.dll,WdfCoInstaller" + +; ********* Strings ********* +[Strings] + +; * Localizable Strings * + +SEGA="SEGA" +DiskName = "SEGA fscrypt Installation Disk" +sgfscryptDesc = "SEGA fscrypt Device" +sgfscryptServiceDesc = "SEGA fscrypt Service" + +; * Non Localizable Strings * + +SPSVCINST_ASSOCSERVICE = 0x00000002 + +SERVICE_BOOT_START = 0x0 +SERVICE_SYSTEM_START = 0x1 +SERVICE_AUTO_START = 0x2 +SERVICE_DEMAND_START = 0x3 +SERVICE_DISABLED = 0x4 + +SERVICE_KERNEL_DRIVER = 0x1 +SERVICE_ERROR_IGNORE = 0x0 +SERVICE_ERROR_NORMAL = 0x1 +SERVICE_ERROR_SEVERE = 0x2 +SERVICE_ERROR_CRITICAL = 0x3 + +REG_EXPAND_SZ = 0x00020000 +REG_DWORD = 0x00010001 + +; *********************************** diff --git a/res/driver/sgfscrypt.sys b/res/driver/sgfscrypt.sys new file mode 100644 index 0000000..450b353 Binary files /dev/null and b/res/driver/sgfscrypt.sys differ