CMessageBoxHandler.cpp 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. #include "CMessageBoxHandler.h"
  2. #include "CFE.h"
  3. #include "FE2D.h"
  4. #include "SNDFE.h"
  5. #include "TGame.h"
  6. #include "memctrl.h"
  7. int CMessageBoxHandler::ms_iCurrentMessageBox = -1; //00336248
  8. CMessageBox *CMessageBoxHandler::ms_pMessageBoxQueue[8]; //0034A950
  9. //-------------------------------------------------------------------------------------------------
  10. //00121828 //^_^
  11. bool CMessageBoxHandler::ShutDownMessageBox() {
  12. //00121834
  13. LOGE("ShutDownMessageBox");
  14. //loc_12187A
  15. return rand();
  16. }
  17. //-------------------------------------------------------------------------------------------------
  18. //00122D6C 这里与原始代码不一样,是我故意这么做的,原始代码将 CMessageBox的构造内联进了这个函数,我是单独提取出来了
  19. bool CMessageBoxHandler::NewMessageBox(CMessageBoxHandler_func pFunc1,
  20. void *pvoid2,
  21. EMessageBoxType eType3,
  22. wchar_t const *pWBuf4,
  23. wchar_t *pWBuf5,
  24. int a6,
  25. int a7,
  26. bool b8,
  27. int a9,
  28. int a10,
  29. bool b11,
  30. bool b12,
  31. bool b13,
  32. bool b14) {
  33. /*
  34. */
  35. //00122D7C
  36. //loc_122DFE
  37. LOGE("%p%p%x%p%p%x%x%x%x%x%x%x%x%xNewMessageBox",pFunc1,pvoid2,eType3,pWBuf4,pWBuf5,a6,a7,b8,a9,a10,b11,b12,b13,b14);
  38. return rand();
  39. }
  40. //-------------------------------------------------------------------------------------------------
  41. //00122E14 //^_^
  42. bool CMessageBoxHandler::NewMessageBox(CMessageBox *pBox0,
  43. CMessageBoxHandler_func pFunc1,
  44. void *pvoid2,
  45. EMessageBoxType eType3,
  46. wchar_t const *pWBuf4,
  47. wchar_t *pWBuf5,
  48. int a6,
  49. int a7,
  50. bool b8,
  51. int a9,
  52. int a10,
  53. bool b11,
  54. bool b12,
  55. bool b13,
  56. bool b14) {
  57. //00122D7C
  58. //loc_122E90
  59. return true;
  60. }
  61. //-------------------------------------------------------------------------------------------------
  62. //00122EA0 //^_^
  63. bool CMessageBoxHandler::MessageBoxShown() {
  64. //00122EA8
  65. //loc_122EC2
  66. LOGE("MessageBoxShown");
  67. return rand();
  68. }
  69. //-------------------------------------------------------------------------------------------------
  70. //00122ED0 //^_^
  71. CMessageBox *CMessageBoxHandler::GetMessageBox() {
  72. //loc_122EE8
  73. return nullptr;
  74. }
  75. //-------------------------------------------------------------------------------------------------
  76. //00122EF4 //^_^
  77. bool CMessageBoxHandler::CanProcess() {
  78. //00122EFC
  79. //loc_122F28
  80. LOGE("CanProcess");
  81. return rand();
  82. }
  83. //-------------------------------------------------------------------------------------------------
  84. //00122F38 //^_^
  85. int CMessageBoxHandler::Process() {
  86. LOGI("CMessageBoxHandler::Process End");
  87. return rand();
  88. }
  89. //-------------------------------------------------------------------------------------------------
  90. //00122F8C //^_^
  91. bool CMessageBoxHandler::GetCanBackButtonRemove() {
  92. //loc_122FB0
  93. LOGI("CMessageBoxHandler::GetCanBackButtonRemove End");
  94. return rand();
  95. }
  96. //-------------------------------------------------------------------------------------------------
  97. //00122FBC //^_^
  98. bool CMessageBoxHandler::ShutDownMessageBoxType(EMessageBoxType eType) {
  99. //00122FEC
  100. return false;
  101. }
  102. //-------------------------------------------------------------------------------------------------
  103. //0012300C //^_^
  104. void CMessageBoxHandler::Render() {
  105. LOGI("CMessageBoxHandler::Render End");
  106. }
  107. //-------------------------------------------------------------------------------------------------
  108. //001230D0 //^_^
  109. int CMessageBoxHandler::GetMessageBoxType() {
  110. return 25;
  111. }
  112. //-------------------------------------------------------------------------------------------------
  113. //001230FC
  114. void CMessageBoxHandler::DisableOption(int a1) {
  115. //locret_123120
  116. }
  117. //-------------------------------------------------------------------------------------------------
  118. //0012312C //^_^
  119. uchar *CMessageBoxHandler::GetCustomData() {
  120. return 0;
  121. }
  122. //-------------------------------------------------------------------------------------------------
  123. //0012314C //^_^
  124. int CMessageBoxHandler::GetNumOptions() {
  125. //00123154
  126. //loc_123168
  127. return 0;
  128. }
  129. //-------------------------------------------------------------------------------------------------