Permalink
Browse files

Fixed duplicate use of XBEIMAGE_MEDIA_TYPE_DVD_5_RW (9 was intended) (#…

  • Loading branch information...
PatrickvL authored and LukeUsher committed Jul 27, 2017
1 parent 3ee227b commit a8033fee8b787a27d3a05566202aac1ee7caefbe
Showing with 17 additions and 10 deletions.
  1. +1 −0 .gitignore
  2. +16 −10 src/CxbxKrnl/CxbxKrnl.cpp
View
@@ -102,3 +102,4 @@ src/Version.h
*.db
*.xbe
*.ipch
*.db-shm
View
@@ -120,17 +120,23 @@ void ApplyMediaPatches()
Xbe::Certificate *pCertificate = (Xbe::Certificate*)CxbxKrnl_XbeHeader->dwCertificateAddr;
// Patch the XBE Header to allow running from all media types
pCertificate->dwAllowedMedia |= XBEIMAGE_MEDIA_TYPE_HARD_DISK |
XBEIMAGE_MEDIA_TYPE_DVD_X2 | XBEIMAGE_MEDIA_TYPE_DVD_CD |
XBEIMAGE_MEDIA_TYPE_CD | XBEIMAGE_MEDIA_TYPE_DVD_5_RO |
XBEIMAGE_MEDIA_TYPE_DVD_9_RO | XBEIMAGE_MEDIA_TYPE_DVD_5_RW |
XBEIMAGE_MEDIA_TYPE_DVD_5_RW;
pCertificate->dwAllowedMedia |= 0
| XBEIMAGE_MEDIA_TYPE_HARD_DISK
| XBEIMAGE_MEDIA_TYPE_DVD_X2
| XBEIMAGE_MEDIA_TYPE_DVD_CD
| XBEIMAGE_MEDIA_TYPE_CD
| XBEIMAGE_MEDIA_TYPE_DVD_5_RO
| XBEIMAGE_MEDIA_TYPE_DVD_9_RO
| XBEIMAGE_MEDIA_TYPE_DVD_5_RW
| XBEIMAGE_MEDIA_TYPE_DVD_9_RW
;
// Patch the XBE Header to allow running on all regions
pCertificate->dwGameRegion = XBEIMAGE_GAME_REGION_MANUFACTURING |
XBEIMAGE_GAME_REGION_NA | XBEIMAGE_GAME_REGION_JAPAN |
XBEIMAGE_GAME_REGION_RESTOFWORLD;
pCertificate->dwGameRegion = 0
| XBEIMAGE_GAME_REGION_MANUFACTURING
| XBEIMAGE_GAME_REGION_NA
| XBEIMAGE_GAME_REGION_JAPAN
| XBEIMAGE_GAME_REGION_RESTOFWORLD
;
// Patch the XBE Security Flag
// This field is only present if the Xbe Size is >= than our Certificate Structure
// This works as our structure is large enough to fit the newer certificate size,

0 comments on commit a8033fe

Please sign in to comment.