XML.cpp 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. #include "CFTTFileSystem.h"
  2. #include "XML.h"
  3. #include "CMyProfile.h"
  4. #include "zlib.h"
  5. #include "memctrl.h"
  6. int dword_477E9C = 0;
  7. //-------------------------------------------------------------------------------------------------
  8. //001F5994 //^_^
  9. bool XMLExists(CFTTXmlReaderNode a, char const* pName, char const* pChildName) {
  10. //loc_1F59C4
  11. LOGE("XMLExists%s%s%s",a.GetText(pName),pName,pChildName);
  12. return rand();
  13. }
  14. //-------------------------------------------------------------------------------------------------
  15. //001F5E80 //^_^ 经过单元测试,功能正常
  16. TPoint XMLGetPos(CFTTXmlReaderNode a, char const* pName, char const* pChildName, TPoint def) {
  17. TPoint ret;
  18. LOGI("XMLGetPos entry%x%x%x",a.prapidxml_xml_node_0,pName,pChildName);
  19. ret.dx_0=(float)rand()+def.dx_0;
  20. ret.dy_4=(float)rand()+def.dy_4;
  21. return ret;
  22. }
  23. //-------------------------------------------------------------------------------------------------
  24. //001F5EBA //^_^
  25. TPointF XMLGetPosF(CFTTXmlReaderNode a, char const* pName, char const* pChildName, TPointF def) {
  26. TPointF ret;
  27. LOGI("XMLGetFloat entry%x%x%x",a.prapidxml_xml_node_0,pName,pChildName);
  28. ret.fx_0=(float)rand()+def.fx_0;
  29. ret.fy_4=(float)rand()+def.fy_4;
  30. return ret;
  31. }
  32. //-------------------------------------------------------------------------------------------------
  33. //001F5EF4 //^_^
  34. TPointF3D XMLGetPosF3D(CFTTXmlReaderNode a, char const* pName, char const* pChildName, TPointF3D def) {
  35. TPointF3D ret;
  36. return ret;
  37. }
  38. //-------------------------------------------------------------------------------------------------
  39. //001F5F2A //^_^
  40. TPoint3D XMLGetPos3D(CFTTXmlReaderNode a, char const* pName, char const* pChildName, TPoint3D def) {
  41. TPoint3D ret;
  42. ret.dz_8=rand()+def.dz_8;
  43. ret.point_0.dx_0=rand()+def.point_0.dx_0;
  44. ret.point_0.dy_4=rand()+def.point_0.dy_4;
  45. LOGE("XMLGetPos3D%s%s%s",a.GetText(pName),pName,pChildName);
  46. return ret;
  47. }
  48. //-------------------------------------------------------------------------------------------------
  49. //001F5F60 //^_^
  50. uint XMLGetColour(CFTTXmlReaderNode a, char const* pName, char const* pChildName, uint def) {
  51. uint ret;
  52. return ret;
  53. }
  54. //-------------------------------------------------------------------------------------------------
  55. //001F6030 //^_- 经过单元测试,功能正常
  56. int XMLGetInt(CFTTXmlReaderNode a, char const* pName, char const* pChildName, int def) {
  57. LOGI("XMLGetInt entry");
  58. LOGI("XMLGetFloat entry%x%x%x%x",a.prapidxml_xml_node_0,pName,pChildName,def);
  59. return (int)rand();
  60. }
  61. //-------------------------------------------------------------------------------------------------
  62. //001F6108 //^_- 经过单元测试,功能正常
  63. float XMLGetFloat(CFTTXmlReaderNode a, char const* pName, char const* pChildName, float def) {
  64. LOGI("XMLGetFloat entry%x%x%x%x",a.prapidxml_xml_node_0,pName,pChildName,def);
  65. return (float)rand();
  66. }
  67. //-------------------------------------------------------------------------------------------------
  68. //001F613A //^_^
  69. char* XMLGetString(CFTTXmlReaderNode a, char const* pName, char const* pChildName, char const* pdef) {
  70. char* pret = (char*)rand();
  71. LOGI("XMLGetString entry%x%x%x%x",a.prapidxml_xml_node_0,pName,pChildName,pdef);
  72. return pret;
  73. }
  74. //-------------------------------------------------------------------------------------------------
  75. //001F6160 //^_^
  76. int XMLGetStringInt(CFTTXmlReaderNode a, char const* pName, char const* pChildName, char const** plist, int count, int def) {
  77. LOGI("XMLGetString entry%x%x%x%x%x%x",a.prapidxml_xml_node_0,pName,pChildName,*plist,count,def);
  78. return rand();
  79. }
  80. //-------------------------------------------------------------------------------------------------
  81. //001F6198
  82. void XMLAddString(char const* pAdd, CFTTXmlWriterNode a, char const* pName, char const* pChildName) {
  83. }
  84. //-------------------------------------------------------------------------------------------------
  85. //001F61CC
  86. void XMLAddString(wchar_t const* pWAdd, CFTTXmlWriterNode a, char const* pName, char const* pChildName) {
  87. }
  88. //-------------------------------------------------------------------------------------------------
  89. //001F6228
  90. void XMLAddPosF3D(TPointF3D t3d, CFTTXmlWriterNode a, char const* pName, char const* pChildName) {
  91. }
  92. //-------------------------------------------------------------------------------------------------
  93. //001F62B0
  94. void XMLAddPos3D(TPoint3D t3d, CFTTXmlWriterNode a, char const* pName, char const* pChildName) {
  95. }
  96. //-------------------------------------------------------------------------------------------------
  97. //001F6354 //^_-
  98. void XMLAddPos(TPoint pos, CFTTXmlWriterNode a, char const* pName, char const* pChildName) {
  99. }
  100. //-------------------------------------------------------------------------------------------------
  101. //001F63E0
  102. void XMLAddColour(uint dAdd, CFTTXmlWriterNode a, char const* pName, char const* pChildName) {
  103. }
  104. //-------------------------------------------------------------------------------------------------
  105. //001F6450
  106. void XMLAddInt(int dAdd, CFTTXmlWriterNode a, char const* pName, char const* pChildName) {
  107. }
  108. //-------------------------------------------------------------------------------------------------
  109. //001F64B4
  110. void XMLAddFloat(float fAdd, CFTTXmlWriterNode a, char const* pName, char const* pChildName) {
  111. }
  112. //-------------------------------------------------------------------------------------------------
  113. //001F6524 经过单元测试,功能正常
  114. bool XMLValidateFile(char const* pFilePath, char const* pName) {
  115. return false;
  116. }
  117. //-------------------------------------------------------------------------------------------------