dominus

Untitled

Mar 20th, 2023
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 27.74 KB | None | 0 0
  1. Unrecognized system path '<HOME>' in path '<HOME>'.
  2. Process 71623 stopped
  3. * thread #1, queue = 'com.apple.main-thread', stop reason = breakpoint 1.1
  4. frame #0: 0x00000001004fff97 exult`setup_data_dir(data_path="/Library/Application Support/Exult/data", runpath="/Users/Dominus/Code/snapshots/exult/exult") at utils.cc:721:119
  5. 718 ) {
  6. 719 #if defined(MACOSX) || defined(__IPHONEOS__)
  7. 720 // Can we try from the bundle?
  8. -> 721 std::unique_ptr<std::remove_pointer<CFURLRef>::type, CFDeleter> fileUrl {std::move(CFBundleCopyResourcesDirectoryURL(CFBundleGetMainBundle()))};
  9. 722 if (fileUrl) {
  10. 723 unsigned char buf[MAXPATHLEN];
  11. 724 if (CFURLGetFileSystemRepresentation(fileUrl.get(), true, buf, sizeof(buf))) {
  12. Target 0: (exult) stopped.
  13. (lldb) n
  14. Process 71623 stopped
  15. * thread #1, queue = 'com.apple.main-thread', stop reason = step over
  16. frame #0: 0x00000001004fffc6 exult`setup_data_dir(data_path="/Library/Application Support/Exult/data", runpath="/Users/Dominus/Code/snapshots/exult/exult") at utils.cc:722:6
  17. 719 #if defined(MACOSX) || defined(__IPHONEOS__)
  18. 720 // Can we try from the bundle?
  19. 721 std::unique_ptr<std::remove_pointer<CFURLRef>::type, CFDeleter> fileUrl {std::move(CFBundleCopyResourcesDirectoryURL(CFBundleGetMainBundle()))};
  20. -> 722 if (fileUrl) {
  21. 723 unsigned char buf[MAXPATHLEN];
  22. 724 if (CFURLGetFileSystemRepresentation(fileUrl.get(), true, buf, sizeof(buf))) {
  23. 725 string path(reinterpret_cast<const char *>(buf));
  24. Target 0: (exult) stopped.
  25. (lldb) n
  26. Process 71623 stopped
  27. * thread #1, queue = 'com.apple.main-thread', stop reason = step over
  28. frame #0: 0x00000001004fffe6 exult`setup_data_dir(data_path="/Library/Application Support/Exult/data", runpath="/Users/Dominus/Code/snapshots/exult/exult") at utils.cc:724:48
  29. 721 std::unique_ptr<std::remove_pointer<CFURLRef>::type, CFDeleter> fileUrl {std::move(CFBundleCopyResourcesDirectoryURL(CFBundleGetMainBundle()))};
  30. 722 if (fileUrl) {
  31. 723 unsigned char buf[MAXPATHLEN];
  32. -> 724 if (CFURLGetFileSystemRepresentation(fileUrl.get(), true, buf, sizeof(buf))) {
  33. 725 string path(reinterpret_cast<const char *>(buf));
  34. 726 path += "/data";
  35. 727 add_system_path("<BUNDLE>", path);
  36. Target 0: (exult) stopped.
  37. (lldb) n
  38. Process 71623 stopped
  39. * thread #1, queue = 'com.apple.main-thread', stop reason = step over
  40. frame #0: 0x000000010050002b exult`setup_data_dir(data_path="/Library/Application Support/Exult/data", runpath="/Users/Dominus/Code/snapshots/exult/exult") at utils.cc:725:11
  41. 722 if (fileUrl) {
  42. 723 unsigned char buf[MAXPATHLEN];
  43. 724 if (CFURLGetFileSystemRepresentation(fileUrl.get(), true, buf, sizeof(buf))) {
  44. -> 725 string path(reinterpret_cast<const char *>(buf));
  45. 726 path += "/data";
  46. 727 add_system_path("<BUNDLE>", path);
  47. 728 if (!U7exists(BUNDLE_EXULT_FLX))
  48. Target 0: (exult) stopped.
  49. (lldb) n
  50. Process 71623 stopped
  51. * thread #1, queue = 'com.apple.main-thread', stop reason = step over
  52. frame #0: 0x0000000100500035 exult`setup_data_dir(data_path="/Library/Application Support/Exult/data", runpath="/Users/Dominus/Code/snapshots/exult/exult") at utils.cc:726:9
  53. 723 unsigned char buf[MAXPATHLEN];
  54. 724 if (CFURLGetFileSystemRepresentation(fileUrl.get(), true, buf, sizeof(buf))) {
  55. 725 string path(reinterpret_cast<const char *>(buf));
  56. -> 726 path += "/data";
  57. 727 add_system_path("<BUNDLE>", path);
  58. 728 if (!U7exists(BUNDLE_EXULT_FLX))
  59. 729 clear_system_path("<BUNDLE>");
  60. Target 0: (exult) stopped.
  61. (lldb) n
  62. Process 71623 stopped
  63. * thread #1, queue = 'com.apple.main-thread', stop reason = step over
  64. frame #0: 0x000000010050004d exult`setup_data_dir(data_path="/Library/Application Support/Exult/data", runpath="/Users/Dominus/Code/snapshots/exult/exult") at utils.cc:727:20
  65. 724 if (CFURLGetFileSystemRepresentation(fileUrl.get(), true, buf, sizeof(buf))) {
  66. 725 string path(reinterpret_cast<const char *>(buf));
  67. 726 path += "/data";
  68. -> 727 add_system_path("<BUNDLE>", path);
  69. 728 if (!U7exists(BUNDLE_EXULT_FLX))
  70. 729 clear_system_path("<BUNDLE>");
  71. 730 }
  72. Target 0: (exult) stopped.
  73. (lldb) n
  74. Process 71623 stopped
  75. * thread #1, queue = 'com.apple.main-thread', stop reason = step over
  76. frame #0: 0x0000000100500089 exult`setup_data_dir(data_path="/Library/Application Support/Exult/data", runpath="/Users/Dominus/Code/snapshots/exult/exult") at utils.cc:728:9
  77. 725 string path(reinterpret_cast<const char *>(buf));
  78. 726 path += "/data";
  79. 727 add_system_path("<BUNDLE>", path);
  80. -> 728 if (!U7exists(BUNDLE_EXULT_FLX))
  81. 729 clear_system_path("<BUNDLE>");
  82. 730 }
  83. 731 }
  84. Target 0: (exult) stopped.
  85. (lldb) n
  86. Process 71623 stopped
  87. * thread #1, queue = 'com.apple.main-thread', stop reason = step over
  88. frame #0: 0x0000000100500161 exult`setup_data_dir(data_path="/Library/Application Support/Exult/data", runpath="/Users/Dominus/Code/snapshots/exult/exult") at utils.cc:730:3
  89. 727 add_system_path("<BUNDLE>", path);
  90. 728 if (!U7exists(BUNDLE_EXULT_FLX))
  91. 729 clear_system_path("<BUNDLE>");
  92. -> 730 }
  93. 731 }
  94. 732 #endif
  95. 733 #ifdef __IPHONEOS__
  96. Target 0: (exult) stopped.
  97. (lldb) n
  98. Process 71623 stopped
  99. * thread #1, queue = 'com.apple.main-thread', stop reason = step over
  100. frame #0: 0x0000000100500183 exult`setup_data_dir(data_path="/Library/Application Support/Exult/data", runpath="/Users/Dominus/Code/snapshots/exult/exult") at utils.cc:731:2
  101. 728 if (!U7exists(BUNDLE_EXULT_FLX))
  102. 729 clear_system_path("<BUNDLE>");
  103. 730 }
  104. -> 731 }
  105. 732 #endif
  106. 733 #ifdef __IPHONEOS__
  107. 734 if (is_system_path_defined("<BUNDLE>")) {
  108. Target 0: (exult) stopped.
  109. (lldb) n
  110. Process 71623 stopped
  111. * thread #1, queue = 'com.apple.main-thread', stop reason = step over
  112. frame #0: 0x0000000100500188 exult`setup_data_dir(data_path="/Library/Application Support/Exult/data", runpath="/Users/Dominus/Code/snapshots/exult/exult") at utils.cc:745:18
  113. 742 #endif
  114. 743
  115. 744 // First, try the cfg value:
  116. -> 745 add_system_path("<DATA>", data_path);
  117. 746 if (U7exists(EXULT_FLX))
  118. 747 return;
  119. 748
  120. Target 0: (exult) stopped.
  121. (lldb) n
  122. Process 71623 stopped
  123. * thread #1, queue = 'com.apple.main-thread', stop reason = step over
  124. frame #0: 0x00000001005001c4 exult`setup_data_dir(data_path="/Library/Application Support/Exult/data", runpath="/Users/Dominus/Code/snapshots/exult/exult") at utils.cc:746:6
  125. 743
  126. 744 // First, try the cfg value:
  127. 745 add_system_path("<DATA>", data_path);
  128. -> 746 if (U7exists(EXULT_FLX))
  129. 747 return;
  130. 748
  131. 749 // Now, try default -- if warranted.
  132. Target 0: (exult) stopped.
  133. (lldb) n
  134. Process 71623 stopped
  135. * thread #1, queue = 'com.apple.main-thread', stop reason = step over
  136. frame #0: 0x00000001005001f8 exult`setup_data_dir(data_path="/Library/Application Support/Exult/data", runpath="/Users/Dominus/Code/snapshots/exult/exult") at utils.cc:747:3
  137. 744 // First, try the cfg value:
  138. 745 add_system_path("<DATA>", data_path);
  139. 746 if (U7exists(EXULT_FLX))
  140. -> 747 return;
  141. 748
  142. 749 // Now, try default -- if warranted.
  143. 750 if (data_path != EXULT_DATADIR) {
  144. Target 0: (exult) stopped.
  145. (lldb) n
  146. Process 71623 stopped
  147. * thread #1, queue = 'com.apple.main-thread', stop reason = step over
  148. frame #0: 0x0000000100500808 exult`setup_data_dir(data_path="/Library/Application Support/Exult/data", runpath="/Users/Dominus/Code/snapshots/exult/exult") at utils.cc:787:1
  149. 784 std::cerr << "and the Exult data path is specified in the configuration file." << std::endl;
  150. 785 std::cerr << "(See the README file for more information)" << std::endl;
  151. 786 exit(-1);
  152. -> 787 }
  153. 788
  154. 789 static string Get_config_dir(const string& home_dir) {
  155. 790 #ifdef __IPHONEOS__
  156. Target 0: (exult) stopped.
  157. (lldb) n
  158. Process 71623 stopped
  159. * thread #1, queue = 'com.apple.main-thread', stop reason = step over
  160. frame #0: 0x0000000100097936 exult`exult_main(runpath="/Users/Dominus/Code/snapshots/exult/exult") at exult.cc:507:2
  161. 504 // Setup virtual directories
  162. 505 string data_path;
  163. 506 config->value("config/disk/data_path", data_path, EXULT_DATADIR);
  164. -> 507 setup_data_dir(data_path, runpath);
  165. 508
  166. 509 const std::string default_music = get_system_path("<DATA>/music");
  167. 510 config->value("config/disk/music_path", music_path, default_music.c_str());
  168. Target 0: (exult) stopped.
  169. (lldb) n
  170. Process 71623 stopped
  171. * thread #1, queue = 'com.apple.main-thread', stop reason = step over
  172. frame #0: 0x000000010009793b exult`exult_main(runpath="/Users/Dominus/Code/snapshots/exult/exult") at exult.cc:509:52
  173. 506 config->value("config/disk/data_path", data_path, EXULT_DATADIR);
  174. 507 setup_data_dir(data_path, runpath);
  175. 508
  176. -> 509 const std::string default_music = get_system_path("<DATA>/music");
  177. 510 config->value("config/disk/music_path", music_path, default_music.c_str());
  178. 511
  179. 512 add_system_path("<MUSIC>", music_path);
  180. Target 0: (exult) stopped.
  181. (lldb) n
  182. Process 71623 stopped
  183. * thread #1, queue = 'com.apple.main-thread', stop reason = step over
  184. frame #0: 0x0000000100097977 exult`exult_main(runpath="/Users/Dominus/Code/snapshots/exult/exult") at exult.cc:510:2
  185. 507 setup_data_dir(data_path, runpath);
  186. 508
  187. 509 const std::string default_music = get_system_path("<DATA>/music");
  188. -> 510 config->value("config/disk/music_path", music_path, default_music.c_str());
  189. 511
  190. 512 add_system_path("<MUSIC>", music_path);
  191. 513 add_system_path("<STATIC>", "static");
  192. Target 0: (exult) stopped.
  193. (lldb) n
  194. Process 71623 stopped
  195. * thread #1, queue = 'com.apple.main-thread', stop reason = step over
  196. frame #0: 0x00000001000979b0 exult`exult_main(runpath="/Users/Dominus/Code/snapshots/exult/exult") at exult.cc:512:18
  197. 509 const std::string default_music = get_system_path("<DATA>/music");
  198. 510 config->value("config/disk/music_path", music_path, default_music.c_str());
  199. 511
  200. -> 512 add_system_path("<MUSIC>", music_path);
  201. 513 add_system_path("<STATIC>", "static");
  202. 514 add_system_path("<GAMEDAT>", "gamedat");
  203. 515 add_system_path("<PATCH>", "patch");
  204. Target 0: (exult) stopped.
  205. (lldb) n
  206. Process 71623 stopped
  207. * thread #1, queue = 'com.apple.main-thread', stop reason = step over
  208. frame #0: 0x00000001000979e9 exult`exult_main(runpath="/Users/Dominus/Code/snapshots/exult/exult") at exult.cc:513:18
  209. 510 config->value("config/disk/music_path", music_path, default_music.c_str());
  210. 511
  211. 512 add_system_path("<MUSIC>", music_path);
  212. -> 513 add_system_path("<STATIC>", "static");
  213. 514 add_system_path("<GAMEDAT>", "gamedat");
  214. 515 add_system_path("<PATCH>", "patch");
  215. 516 // add_system_path("<SAVEGAME>", "savegame");
  216. Target 0: (exult) stopped.
  217. (lldb) n
  218. Process 71623 stopped
  219. * thread #1, queue = 'com.apple.main-thread', stop reason = step over
  220. frame #0: 0x0000000100097a49 exult`exult_main(runpath="/Users/Dominus/Code/snapshots/exult/exult") at exult.cc:514:18
  221. 511
  222. 512 add_system_path("<MUSIC>", music_path);
  223. 513 add_system_path("<STATIC>", "static");
  224. -> 514 add_system_path("<GAMEDAT>", "gamedat");
  225. 515 add_system_path("<PATCH>", "patch");
  226. 516 // add_system_path("<SAVEGAME>", "savegame");
  227. 517 add_system_path("<SAVEGAME>", ".");
  228. Target 0: (exult) stopped.
  229. (lldb) n
  230. Process 71623 stopped
  231. * thread #1, queue = 'com.apple.main-thread', stop reason = step over
  232. frame #0: 0x0000000100097aa9 exult`exult_main(runpath="/Users/Dominus/Code/snapshots/exult/exult") at exult.cc:515:18
  233. 512 add_system_path("<MUSIC>", music_path);
  234. 513 add_system_path("<STATIC>", "static");
  235. 514 add_system_path("<GAMEDAT>", "gamedat");
  236. -> 515 add_system_path("<PATCH>", "patch");
  237. 516 // add_system_path("<SAVEGAME>", "savegame");
  238. 517 add_system_path("<SAVEGAME>", ".");
  239. 518 add_system_path("<MODS>", "mods");
  240. Target 0: (exult) stopped.
  241. (lldb) n
  242. Process 71623 stopped
  243. * thread #1, queue = 'com.apple.main-thread', stop reason = step over
  244. frame #0: 0x0000000100097b09 exult`exult_main(runpath="/Users/Dominus/Code/snapshots/exult/exult") at exult.cc:517:18
  245. 514 add_system_path("<GAMEDAT>", "gamedat");
  246. 515 add_system_path("<PATCH>", "patch");
  247. 516 // add_system_path("<SAVEGAME>", "savegame");
  248. -> 517 add_system_path("<SAVEGAME>", ".");
  249. 518 add_system_path("<MODS>", "mods");
  250. 519
  251. 520 std::cout << "Exult path settings:" << std::endl;
  252. Target 0: (exult) stopped.
  253. (lldb) n
  254. Process 71623 stopped
  255. * thread #1, queue = 'com.apple.main-thread', stop reason = step over
  256. frame #0: 0x0000000100097b69 exult`exult_main(runpath="/Users/Dominus/Code/snapshots/exult/exult") at exult.cc:518:18
  257. 515 add_system_path("<PATCH>", "patch");
  258. 516 // add_system_path("<SAVEGAME>", "savegame");
  259. 517 add_system_path("<SAVEGAME>", ".");
  260. -> 518 add_system_path("<MODS>", "mods");
  261. 519
  262. 520 std::cout << "Exult path settings:" << std::endl;
  263. 521 #ifdef __IPHONEOS__
  264. Target 0: (exult) stopped.
  265. (lldb) n
  266. Process 71623 stopped
  267. * thread #1, queue = 'com.apple.main-thread', stop reason = step over
  268. frame #0: 0x0000000100097bc9 exult`exult_main(runpath="/Users/Dominus/Code/snapshots/exult/exult") at exult.cc:520:12
  269. 517 add_system_path("<SAVEGAME>", ".");
  270. 518 add_system_path("<MODS>", "mods");
  271. 519
  272. -> 520 std::cout << "Exult path settings:" << std::endl;
  273. 521 #ifdef __IPHONEOS__
  274. 522 std::cout << "Bundle : " << get_system_path("<BUNDLE>") << std::endl;
  275. 523 #endif
  276. Target 0: (exult) stopped.
  277. (lldb) n
  278. Exult path settings:
  279. Process 71623 stopped
  280. * thread #1, queue = 'com.apple.main-thread', stop reason = step over
  281. frame #0: 0x0000000100097c00 exult`exult_main(runpath="/Users/Dominus/Code/snapshots/exult/exult") at exult.cc:524:12
  282. 521 #ifdef __IPHONEOS__
  283. 522 std::cout << "Bundle : " << get_system_path("<BUNDLE>") << std::endl;
  284. 523 #endif
  285. -> 524 std::cout << "Data : " << get_system_path("<DATA>") << std::endl;
  286. 525 std::cout << "Digital music : " << get_system_path("<MUSIC>") << std::endl;
  287. 526 std::cout << std::endl;
  288. 527
  289. Target 0: (exult) stopped.
  290. (lldb) n
  291. Data : /Library/Application Support/Exult/data
  292. Process 71623 stopped
  293. * thread #1, queue = 'com.apple.main-thread', stop reason = step over
  294. frame #0: 0x0000000100097c9e exult`exult_main(runpath="/Users/Dominus/Code/snapshots/exult/exult") at exult.cc:525:12
  295. 522 std::cout << "Bundle : " << get_system_path("<BUNDLE>") << std::endl;
  296. 523 #endif
  297. 524 std::cout << "Data : " << get_system_path("<DATA>") << std::endl;
  298. -> 525 std::cout << "Digital music : " << get_system_path("<MUSIC>") << std::endl;
  299. 526 std::cout << std::endl;
  300. 527
  301. 528 // Check CRCs of our .flx files
  302. Target 0: (exult) stopped.
  303. (lldb) n
  304. Digital music : /Library/Application Support/Exult/data/music
  305. Process 71623 stopped
  306. * thread #1, queue = 'com.apple.main-thread', stop reason = step over
  307. frame #0: 0x0000000100097d3c exult`exult_main(runpath="/Users/Dominus/Code/snapshots/exult/exult") at exult.cc:526:12
  308. 523 #endif
  309. 524 std::cout << "Data : " << get_system_path("<DATA>") << std::endl;
  310. 525 std::cout << "Digital music : " << get_system_path("<MUSIC>") << std::endl;
  311. -> 526 std::cout << std::endl;
  312. 527
  313. 528 // Check CRCs of our .flx files
  314. 529 bool crc_ok = true;
  315. Target 0: (exult) stopped.
  316. (lldb) n
  317.  
  318. Process 71623 stopped
  319. * thread #1, queue = 'com.apple.main-thread', stop reason = step over
  320. frame #0: 0x0000000100097d54 exult`exult_main(runpath="/Users/Dominus/Code/snapshots/exult/exult") at exult.cc:529:7
  321. 526 std::cout << std::endl;
  322. 527
  323. 528 // Check CRCs of our .flx files
  324. -> 529 bool crc_ok = true;
  325. 530 const char *flexname = BUNDLE_CHECK(BUNDLE_EXULT_FLX, EXULT_FLX);
  326. 531 const uint32 crc = crc32(flexname);
  327. 532 if (crc != EXULT_FLX_CRC32) {
  328. Target 0: (exult) stopped.
  329. (lldb) n
  330. Process 71623 stopped
  331. * thread #1, queue = 'com.apple.main-thread', stop reason = step over
  332. frame #0: 0x0000000100097d5b exult`exult_main(runpath="/Users/Dominus/Code/snapshots/exult/exult") at exult.cc:530:25
  333. 527
  334. 528 // Check CRCs of our .flx files
  335. 529 bool crc_ok = true;
  336. -> 530 const char *flexname = BUNDLE_CHECK(BUNDLE_EXULT_FLX, EXULT_FLX);
  337. 531 const uint32 crc = crc32(flexname);
  338. 532 if (crc != EXULT_FLX_CRC32) {
  339. 533 crc_ok = false;
  340. Target 0: (exult) stopped.
  341. (lldb) n
  342. Process 71623 stopped
  343. * thread #1, queue = 'com.apple.main-thread', stop reason = step over
  344. frame #0: 0x0000000100097e0a exult`exult_main(runpath="/Users/Dominus/Code/snapshots/exult/exult") at exult.cc:531:27
  345. 528 // Check CRCs of our .flx files
  346. 529 bool crc_ok = true;
  347. 530 const char *flexname = BUNDLE_CHECK(BUNDLE_EXULT_FLX, EXULT_FLX);
  348. -> 531 const uint32 crc = crc32(flexname);
  349. 532 if (crc != EXULT_FLX_CRC32) {
  350. 533 crc_ok = false;
  351. 534 cerr << "exult.flx has a wrong checksum!" << endl;
  352. Target 0: (exult) stopped.
  353. (lldb) n
  354. Process 71623 stopped
  355. * thread #1, queue = 'com.apple.main-thread', stop reason = step over
  356. frame #0: 0x0000000100097e2d exult`exult_main(runpath="/Users/Dominus/Code/snapshots/exult/exult") at exult.cc:532:10
  357. 529 bool crc_ok = true;
  358. 530 const char *flexname = BUNDLE_CHECK(BUNDLE_EXULT_FLX, EXULT_FLX);
  359. 531 const uint32 crc = crc32(flexname);
  360. -> 532 if (crc != EXULT_FLX_CRC32) {
  361. 533 crc_ok = false;
  362. 534 cerr << "exult.flx has a wrong checksum!" << endl;
  363. 535 }
  364. Target 0: (exult) stopped.
  365. (lldb) n
  366. Process 71623 stopped
  367. * thread #1, queue = 'com.apple.main-thread', stop reason = step over
  368. frame #0: 0x000000010009808f exult`exult_main(runpath="/Users/Dominus/Code/snapshots/exult/exult") at exult.cc:536:13
  369. 533 crc_ok = false;
  370. 534 cerr << "exult.flx has a wrong checksum!" << endl;
  371. 535 }
  372. -> 536 flexname = BUNDLE_CHECK(BUNDLE_EXULT_BG_FLX, EXULT_BG_FLX);
  373. 537 if (crc32(flexname) != EXULT_BG_FLX_CRC32) {
  374. 538 crc_ok = false;
  375. 539 cerr << "exult_bg.flx has a wrong checksum!" << endl;
  376. Target 0: (exult) stopped.
  377. (lldb) n
  378. Process 71623 stopped
  379. * thread #1, queue = 'com.apple.main-thread', stop reason = step over
  380. frame #0: 0x0000000100098130 exult`exult_main(runpath="/Users/Dominus/Code/snapshots/exult/exult") at exult.cc:537:12
  381. 534 cerr << "exult.flx has a wrong checksum!" << endl;
  382. 535 }
  383. 536 flexname = BUNDLE_CHECK(BUNDLE_EXULT_BG_FLX, EXULT_BG_FLX);
  384. -> 537 if (crc32(flexname) != EXULT_BG_FLX_CRC32) {
  385. 538 crc_ok = false;
  386. 539 cerr << "exult_bg.flx has a wrong checksum!" << endl;
  387. 540 }
  388. Target 0: (exult) stopped.
  389. (lldb) n
  390. Process 71623 stopped
  391. * thread #1, queue = 'com.apple.main-thread', stop reason = step over
  392. frame #0: 0x00000001000981b8 exult`exult_main(runpath="/Users/Dominus/Code/snapshots/exult/exult") at exult.cc:541:13
  393. 538 crc_ok = false;
  394. 539 cerr << "exult_bg.flx has a wrong checksum!" << endl;
  395. 540 }
  396. -> 541 flexname = BUNDLE_CHECK(BUNDLE_EXULT_SI_FLX, EXULT_SI_FLX);
  397. 542 if (crc32(flexname) != EXULT_SI_FLX_CRC32) {
  398. 543 crc_ok = false;
  399. 544 cerr << "exult_si.flx has a wrong checksum!" << endl;
  400. Target 0: (exult) stopped.
  401. (lldb) n
  402. Process 71623 stopped
  403. * thread #1, queue = 'com.apple.main-thread', stop reason = step over
  404. frame #0: 0x0000000100098259 exult`exult_main(runpath="/Users/Dominus/Code/snapshots/exult/exult") at exult.cc:542:12
  405. 539 cerr << "exult_bg.flx has a wrong checksum!" << endl;
  406. 540 }
  407. 541 flexname = BUNDLE_CHECK(BUNDLE_EXULT_SI_FLX, EXULT_SI_FLX);
  408. -> 542 if (crc32(flexname) != EXULT_SI_FLX_CRC32) {
  409. 543 crc_ok = false;
  410. 544 cerr << "exult_si.flx has a wrong checksum!" << endl;
  411. 545 }
  412. Target 0: (exult) stopped.
  413. (lldb) n
  414. Process 71623 stopped
  415. * thread #1, queue = 'com.apple.main-thread', stop reason = step over
  416. frame #0: 0x00000001000982e1 exult`exult_main(runpath="/Users/Dominus/Code/snapshots/exult/exult") at exult.cc:548:2
  417. 545 }
  418. 546
  419. 547 bool config_ignore_crc;
  420. -> 548 config->value("config/disk/no_crc", config_ignore_crc);
  421. 549 ignore_crc |= config_ignore_crc;
  422. 550
  423. 551 if (!ignore_crc && !crc_ok) {
  424. Target 0: (exult) stopped.
  425. (lldb) n
  426. Process 71623 stopped
  427. * thread #1, queue = 'com.apple.main-thread', stop reason = step over
  428. frame #0: 0x0000000100098302 exult`exult_main(runpath="/Users/Dominus/Code/snapshots/exult/exult") at exult.cc:549:16
  429. 546
  430. 547 bool config_ignore_crc;
  431. 548 config->value("config/disk/no_crc", config_ignore_crc);
  432. -> 549 ignore_crc |= config_ignore_crc;
  433. 550
  434. 551 if (!ignore_crc && !crc_ok) {
  435. 552 cerr << "This usually means the file(s) mentioned above are "
  436. Target 0: (exult) stopped.
  437. (lldb) n
  438. Process 71623 stopped
  439. * thread #1, queue = 'com.apple.main-thread', stop reason = step over
  440. frame #0: 0x0000000100098328 exult`exult_main(runpath="/Users/Dominus/Code/snapshots/exult/exult") at exult.cc:551:18
  441. 548 config->value("config/disk/no_crc", config_ignore_crc);
  442. 549 ignore_crc |= config_ignore_crc;
  443. 550
  444. -> 551 if (!ignore_crc && !crc_ok) {
  445. 552 cerr << "This usually means the file(s) mentioned above are "
  446. 553 << "from a different version" << endl
  447. 554 << "of Exult than this one. Please re-install Exult" << endl
  448. Target 0: (exult) stopped.
  449. (lldb) n
  450. Process 71623 stopped
  451. * thread #1, queue = 'com.apple.main-thread', stop reason = step over
  452. frame #0: 0x00000001000984a6 exult`exult_main(runpath="/Users/Dominus/Code/snapshots/exult/exult") at exult.cc:565:28
  453. 562
  454. 563
  455. 564 // Convert from old format if needed
  456. -> 565 const vector<string> vs = config->listkeys("config/disk/game", false);
  457. 566 if (vs.empty() && config->key_exists("config/disk/u7path")) {
  458. 567 // Convert from the older format
  459. 568 string data_directory;
  460. Target 0: (exult) stopped.
  461. (lldb) n
  462. Process 71623 stopped
  463. * thread #1, queue = 'com.apple.main-thread', stop reason = step over
  464. frame #0: 0x00000001000984c7 exult`exult_main(runpath="/Users/Dominus/Code/snapshots/exult/exult") at exult.cc:566:9
  465. 563
  466. 564 // Convert from old format if needed
  467. 565 const vector<string> vs = config->listkeys("config/disk/game", false);
  468. -> 566 if (vs.empty() && config->key_exists("config/disk/u7path")) {
  469. 567 // Convert from the older format
  470. 568 string data_directory;
  471. 569 config->value("config/disk/u7path", data_directory, "./blackgate");
  472. Target 0: (exult) stopped.
  473. (lldb) n
  474. Process 71623 stopped
  475. * thread #1, queue = 'com.apple.main-thread', stop reason = step over
  476. frame #0: 0x00000001000986bf exult`exult_main(runpath="/Users/Dominus/Code/snapshots/exult/exult") at exult.cc:575:2
  477. 572 }
  478. 573
  479. 574 // Enable tracing of intrinsics?
  480. -> 575 config->value("config/debug/trace/intrinsics", intrinsic_trace);
  481. 576
  482. 577 // Enable tracing of UC-instructions?
  483. 578 string uctrace;
  484. Target 0: (exult) stopped.
  485. (lldb) n
  486. Process 71623 stopped
  487. * thread #1, queue = 'com.apple.main-thread', stop reason = step over
  488. frame #0: 0x00000001000986ee exult`exult_main(runpath="/Users/Dominus/Code/snapshots/exult/exult") at exult.cc:578:9
  489. 575 config->value("config/debug/trace/intrinsics", intrinsic_trace);
  490. 576
  491. 577 // Enable tracing of UC-instructions?
  492. -> 578 string uctrace;
  493. 579 config->value("config/debug/trace/usecode", uctrace, "no");
  494. 580 to_uppercase(uctrace);
  495. 581 if (uctrace == "YES")
  496. Target 0: (exult) stopped.
  497. (lldb) n
  498. Process 71623 stopped
  499. * thread #1, queue = 'com.apple.main-thread', stop reason = step over
  500. frame #0: 0x00000001000986fa exult`exult_main(runpath="/Users/Dominus/Code/snapshots/exult/exult") at exult.cc:579:2
  501. 576
  502. 577 // Enable tracing of UC-instructions?
  503. 578 string uctrace;
  504. -> 579 config->value("config/debug/trace/usecode", uctrace, "no");
  505. 580 to_uppercase(uctrace);
  506. 581 if (uctrace == "YES")
  507. 582 usecode_trace = 1;
  508. Target 0: (exult) stopped.
  509. (lldb) n
  510. Process 71623 stopped
  511. * thread #1, queue = 'com.apple.main-thread', stop reason = step over
  512. frame #0: 0x0000000100098720 exult`exult_main(runpath="/Users/Dominus/Code/snapshots/exult/exult") at exult.cc:580:2
  513. 577 // Enable tracing of UC-instructions?
  514. 578 string uctrace;
  515. 579 config->value("config/debug/trace/usecode", uctrace, "no");
  516. -> 580 to_uppercase(uctrace);
  517. 581 if (uctrace == "YES")
  518. 582 usecode_trace = 1;
  519. 583 else if (uctrace == "VERBOSE")
  520. Target 0: (exult) stopped.
  521. (lldb) n
  522. Process 71623 stopped
  523. * thread #1, queue = 'com.apple.main-thread', stop reason = step over
  524. frame #0: 0x000000010009872a exult`exult_main(runpath="/Users/Dominus/Code/snapshots/exult/exult") at exult.cc:581:14
  525. 578 string uctrace;
  526. 579 config->value("config/debug/trace/usecode", uctrace, "no");
  527. 580 to_uppercase(uctrace);
  528. -> 581 if (uctrace == "YES")
  529. 582 usecode_trace = 1;
  530. 583 else if (uctrace == "VERBOSE")
  531. 584 usecode_trace = 2;
  532. Target 0: (exult) stopped.
  533. (lldb) n
  534. Process 71623 stopped
  535. * thread #1, queue = 'com.apple.main-thread', stop reason = step over
  536. frame #0: 0x000000010009876a exult`exult_main(runpath="/Users/Dominus/Code/snapshots/exult/exult") at exult.cc:583:19
  537. 580 to_uppercase(uctrace);
  538. 581 if (uctrace == "YES")
  539. 582 usecode_trace = 1;
  540. -> 583 else if (uctrace == "VERBOSE")
  541. 584 usecode_trace = 2;
  542. 585 else
  543. 586 usecode_trace = 0;
  544. Target 0: (exult) stopped.
  545. (lldb) n
  546. Process 71623 stopped
  547. * thread #1, queue = 'com.apple.main-thread', stop reason = step over
  548. frame #0: 0x0000000100098799 exult`exult_main(runpath="/Users/Dominus/Code/snapshots/exult/exult") at exult.cc:586:17
  549. 583 else if (uctrace == "VERBOSE")
  550. 584 usecode_trace = 2;
  551. 585 else
  552. -> 586 usecode_trace = 0;
  553. 587
  554. 588 config->value("config/debug/trace/combat", combat_trace);
  555. 589
  556. Target 0: (exult) stopped.
  557. (lldb) n
  558. Process 71623 stopped
  559. * thread #1, queue = 'com.apple.main-thread', stop reason = step over
  560. frame #0: 0x00000001000987a8 exult`exult_main(runpath="/Users/Dominus/Code/snapshots/exult/exult") at exult.cc:588:2
  561. 585 else
  562. 586 usecode_trace = 0;
  563. 587
  564. -> 588 config->value("config/debug/trace/combat", combat_trace);
  565. 589
  566. 590 // Save game compression level
  567. 591 config->value("config/disk/save_compression_level", save_compression, 1);
  568. Target 0: (exult) stopped.
  569. (lldb) n
  570. Process 71623 stopped
  571. * thread #1, queue = 'com.apple.main-thread', stop reason = step over
  572. frame #0: 0x00000001000987c9 exult`exult_main(runpath="/Users/Dominus/Code/snapshots/exult/exult") at exult.cc:591:2
  573. 588 config->value("config/debug/trace/combat", combat_trace);
  574. 589
  575. 590 // Save game compression level
  576. -> 591 config->value("config/disk/save_compression_level", save_compression, 1);
  577. 592 if (save_compression < 0 || save_compression > 2) save_compression = 1;
  578. 593 config->set("config/disk/save_compression_level", save_compression, false);
  579. 594 #ifdef USECODE_DEBUGGER
  580. Target 0: (exult) stopped.
  581. (lldb) n
  582. Process 71623 stopped
  583. * thread #1, queue = 'com.apple.main-thread', stop reason = step over
  584. frame #0: 0x00000001000987ed exult`exult_main(runpath="/Users/Dominus/Code/snapshots/exult/exult") at exult.cc:592:23
  585. 589
  586. 590 // Save game compression level
  587. 591 config->value("config/disk/save_compression_level", save_compression, 1);
  588. -> 592 if (save_compression < 0 || save_compression > 2) save_compression = 1;
  589. 593 config->set("config/disk/save_compression_level", save_compression, false);
  590. 594 #ifdef USECODE_DEBUGGER
  591. 595 // Enable usecode debugger
  592. Target 0: (exult) stopped.
Add Comment
Please, Sign In to add comment