equal
deleted
inserted
replaced
17 |
17 |
18 #include "SDCGlobals.h" |
18 #include "SDCGlobals.h" |
19 #include "SDCDebugOutput.h" |
19 #include "SDCDebugOutput.h" |
20 |
20 |
21 #include <stdio.h> |
21 #include <stdio.h> |
|
22 #include <wchar.h> |
22 |
23 |
23 ////////////////////////////////////////////////////////////////////// |
24 ////////////////////////////////////////////////////////////////////// |
24 // Construction/Destruction |
25 // Construction/Destruction |
25 ////////////////////////////////////////////////////////////////////// |
26 ////////////////////////////////////////////////////////////////////// |
26 |
27 |
36 // Other methods |
37 // Other methods |
37 ////////////////////////////////////////////////////////////////////// |
38 ////////////////////////////////////////////////////////////////////// |
38 |
39 |
39 void CSDCDebugOutput::Output( CSDCData* aData ) |
40 void CSDCDebugOutput::Output( CSDCData* aData ) |
40 { |
41 { |
41 int i; |
42 unsigned int i; |
42 |
43 |
43 wprintf(L"\nSkin content\n"); |
44 wprintf(L"\nSkin content\n"); |
44 wprintf(L" PID=0x%08x 0x%08x\n", aData->iPid.iPID2, aData->iPid.iPID1 ); |
45 wprintf(L" PID=0x%08x 0x%08x\n", aData->iPid.iPID2, aData->iPid.iPID1 ); |
45 wprintf(L" Type=%i\n", aData->iSkinType); |
46 wprintf(L" Type=%i\n", aData->iSkinType); |
46 for( i=0; i<aData->iNameVector.size(); i++ ) |
47 for( i=0; i<aData->iNameVector.size(); i++ ) |
75 for( i=0; i<aData->iColorTableDefVector.size(); i++ ) |
76 for( i=0; i<aData->iColorTableDefVector.size(); i++ ) |
76 { |
77 { |
77 TSDCColorTableDef* entry = aData->iColorTableDefVector[i]; |
78 TSDCColorTableDef* entry = aData->iColorTableDefVector[i]; |
78 wprintf(L" (0x%x,0x%x) = ", entry->iIID.iMajor, entry->iIID.iMinor ); |
79 wprintf(L" (0x%x,0x%x) = ", entry->iIID.iMajor, entry->iIID.iMinor ); |
79 |
80 |
80 for( int a=0; a<entry->iColors.size(); a++ ) |
81 for( unsigned int a=0; a<entry->iColors.size(); a++ ) |
81 wprintf(L"[%i,0x%x] ", entry->iColors[a].iIndex, entry->iColors[a].iRgb ); |
82 wprintf(L"[%i,0x%x] ", entry->iColors[a].iIndex, entry->iColors[a].iRgb ); |
82 |
83 |
83 wprintf(L"\n"); |
84 wprintf(L"\n"); |
84 } |
85 } |
85 |
86 |
87 for( i=0; i<aData->iFrameDefVector.size(); i++ ) |
88 for( i=0; i<aData->iFrameDefVector.size(); i++ ) |
88 { |
89 { |
89 TSDCFrameDef* entry = aData->iFrameDefVector[i]; |
90 TSDCFrameDef* entry = aData->iFrameDefVector[i]; |
90 wprintf(L" (0x%x,0x%x) = ", entry->iIID.iMajor, entry->iIID.iMinor ); |
91 wprintf(L" (0x%x,0x%x) = ", entry->iIID.iMajor, entry->iIID.iMinor ); |
91 |
92 |
92 for( int a=0; a<entry->iElements.size(); a++ ) |
93 for( unsigned int a=0; a<entry->iElements.size(); a++ ) |
93 wprintf(L"[0x%x,0x%x] ", entry->iElements[a].iMajor, entry->iElements[a].iMinor ); |
94 wprintf(L"[0x%x,0x%x] ", entry->iElements[a].iMajor, entry->iElements[a].iMinor ); |
94 |
95 |
95 wprintf(L"\n"); |
96 wprintf(L"\n"); |
96 } |
97 } |
97 |
98 |
99 for( i=0; i<aData->iAppIconDefVector.size(); i++ ) |
100 for( i=0; i<aData->iAppIconDefVector.size(); i++ ) |
100 { |
101 { |
101 TSDCAppIconDef* entry = aData->iAppIconDefVector[i]; |
102 TSDCAppIconDef* entry = aData->iAppIconDefVector[i]; |
102 wprintf(L" (0x%x,0x%x) = ", entry->iIID.iMajor, entry->iIID.iMinor ); |
103 wprintf(L" (0x%x,0x%x) = ", entry->iIID.iMajor, entry->iIID.iMinor ); |
103 |
104 |
104 for( int a=0; a<entry->iIcons.size(); a++ ) |
105 for( unsigned int a=0; a<entry->iIcons.size(); a++ ) |
105 wprintf(L"[0x%x,0x%x] ", entry->iIcons[a].iMajor, entry->iIcons[a].iMinor ); |
106 wprintf(L"[0x%x,0x%x] ", entry->iIcons[a].iMajor, entry->iIcons[a].iMinor ); |
106 |
107 |
107 wprintf(L"\n"); |
108 wprintf(L"\n"); |
108 } |
109 } |
109 } |
110 } |