placed const items in xbeheaders where they belong.. instead of uConsts

This commit is contained in:
shadowtj 2012-03-21 21:51:23 +00:00
parent 48948ec51d
commit ada271b9ae
3 changed files with 7 additions and 12 deletions

View file

@ -11,8 +11,13 @@ Uses
const
XBOX_KEY_LENGTH = 16;
XBEIMAGE_ALTERNATE_TITLE_ID_COUNT = 16;
XBE_TITLENAME_MAXLENGTH = 40;
XBE_SECTIONNAME_MAXLENGTH = 9;
XBE_LIBRARYNAME_MAXLENGTH = 8;
XPR_IMAGE_HDR_SIZE = 2048; // 2K
XPR_IMAGE_WH = 128; // width and height
XPR_IMAGE_DATA_SIZE = (XPR_IMAGE_WH * XPR_IMAGE_WH) div 2; // DXT1 is 4 bits per pixel
type
_XBEIMAGE_HEADER = packed record

View file

@ -93,18 +93,12 @@ const
XBE_SECTIONHEADER_FLAG_HeadPageRO = $00000010;
XBE_SECTIONHEADER_FLAG_TailPageRO = $00000020;
XBE_SECTIONNAME_MAXLENGTH = 9;
XBE_LIBRARYVERSION_FLAG_ApprovedNo = $00;
XBE_LIBRARYVERSION_FLAG_ApprovedPossibly = $20;
XBE_LIBRARYVERSION_FLAG_ApprovedYes = $40;
XBE_LIBRARYVERSION_FLAG_ApprovedMask = $60;
XBE_LIBRARYVERSION_FLAG_DebugBuild = $80;
XBE_LIBRARYNAME_MAXLENGTH = 8;
XBE_TITLENAME_MAXLENGTH = 40;
XBE_DebugUnicodeFileName_MAXLENGTH = 40; // ?? 256;
// game region flags for Xbe certificate
@ -137,11 +131,6 @@ const
PE_HEADER_ALIGNMENT = $1000; // - Actually, there's no such thing; JclDebug calls this 'ModuleCodeOffset'
// XPR constants
XPR_IMAGE_HDR_SIZE = 2048; // 2K
XPR_IMAGE_WH = 128; // width and height
XPR_IMAGE_DATA_SIZE = (XPR_IMAGE_WH * XPR_IMAGE_WH) div 2; // DXT1 is 4 bits per pixel
XBE_SECTIONNAME_GAMEICON = '$$XTIMAGE';
XBE_SECTIONNAME_SAVEICON = '$$XSIMAGE';

View file

@ -35,6 +35,7 @@ uses
// Dxbx
uTypes,
uConsts,
XbeHeaders,
uLog,
uWindows,
uDxbxUtils,