Advertisement
Guest User

Untitled

a guest
Sep 11th, 2023
37
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.48 KB | None | 0 0
  1. --- src/amule.cpp 2021-12-05 12:24:31.049020928 +0000
  2. +++ src/amule.cpp 2023-09-10 18:33:54.047972352 +0000
  3. @@ -391,7 +391,7 @@
  4. #endif
  5.  
  6. // Handle uncaught exceptions
  7. - InstallMuleExceptionHandler();
  8. +// InstallMuleExceptionHandler();
  9.  
  10. if (!InitCommon(AMULE_APP_BASE::argc, AMULE_APP_BASE::argv)) {
  11. return false;
  12. --- src/libs/common/MuleDebug.cpp 2021-12-05 12:24:31.056098816 +0000
  13. +++ src/libs/common/MuleDebug.cpp 2023-09-11 19:49:07.048234496 +0000
  14. @@ -55,6 +55,7 @@
  15. #endif
  16.  
  17. #include <vector>
  18. +#include <exception>
  19.  
  20.  
  21. /**
  22. @@ -108,10 +109,10 @@
  23. }
  24.  
  25.  
  26. -void InstallMuleExceptionHandler()
  27. -{
  28. - std::set_terminate(OnUnhandledException);
  29. -}
  30. +//void InstallMuleExceptionHandler()
  31. +//{
  32. +// std::set_terminate(OnUnhandledException);
  33. +//}
  34.  
  35.  
  36. // Make it 1 for getting the file path also
  37. --- src/Types.h 2021-12-05 12:24:31.047710208 +0000
  38. +++ src/Types.h 2023-09-11 20:20:07.074973184 +0000
  39. @@ -94,20 +94,24 @@
  40. * Backwards compatibility with emule.
  41. * Note that the int* types are indeed unsigned.
  42. */
  43. +
  44. +#ifdef __HAIKU__
  45. +#include <SupportDefs.h>
  46. +#else
  47. typedef uint8_t int8;
  48. -typedef uint8_t uint8;
  49. typedef uint16_t int16;
  50. -typedef uint16_t uint16;
  51. typedef uint32_t int32;
  52. -typedef uint32_t uint32;
  53. typedef uint64_t int64;
  54. +#endif
  55. +typedef uint8_t uint8;
  56. +typedef uint16_t uint16;
  57. +typedef uint32_t uint32;
  58. typedef uint64_t uint64;
  59. typedef int8_t sint8;
  60. typedef int16_t sint16;
  61. typedef int32_t sint32;
  62. typedef int64_t sint64;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement