@gaialabs/iog-baserom 0.2.1 → 0.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -1,5 +1,6 @@
1
1
  import { fileURLToPath } from "url";
2
2
  import { dirname, join, resolve } from "path";
3
+ import { existsSync, readFileSync, readdirSync } from "fs";
3
4
  import { DbRootUtils, RomProcessingConstants, crc32_buffer, saveFileAsText, snes } from "@gaialabs/core";
4
5
 
5
6
  //#region db-us/config.json
@@ -275,41 +276,29 @@ var blocks_default$1 = {
275
276
  "type": "Code",
276
277
  "scene": "engine"
277
278
  },
278
- "decompress": {
279
+ "QuintetLzDecompress": {
279
280
  "start": 164464,
280
281
  "end": 164770,
281
282
  "type": "Code",
282
283
  "scene": "engine"
283
284
  },
285
+ "DmaWordToVram": {
286
+ "start": 164770,
287
+ "end": 164795,
288
+ "type": "Code",
289
+ "scene": "engine"
290
+ },
284
291
  "scene_script": {
285
- "scene": "engine",
286
- "parts": {
287
- "DmaWordToVram": {
288
- "start": 164770,
289
- "end": 166765,
290
- "type": "Code"
291
- },
292
- "SceneCmd_LoadSpriteTiles": {
293
- "start": 166884,
294
- "end": 168078,
295
- "type": "Code"
296
- }
297
- }
292
+ "start": 164795,
293
+ "end": 168078,
294
+ "type": "Code",
295
+ "scene": "engine"
298
296
  },
299
297
  "spc_transfer": {
300
- "scene": "engine",
301
- "parts": {
302
- "SpcMusicLoadCmd": {
303
- "start": 166765,
304
- "end": 166884,
305
- "type": "Code"
306
- },
307
- "SpcLoadBuiltinEngine": {
308
- "start": 168078,
309
- "end": 171490,
310
- "type": "Code"
311
- }
312
- }
298
+ "start": 168078,
299
+ "end": 171490,
300
+ "type": "Code",
301
+ "scene": "engine"
313
302
  },
314
303
  "system_init": {
315
304
  "start": 171490,
@@ -323,7 +312,7 @@ var blocks_default$1 = {
323
312
  "type": "Code",
324
313
  "scene": "engine"
325
314
  },
326
- "text_measure": {
315
+ "DisplaySceneTitle": {
327
316
  "start": 172315,
328
317
  "end": 172521,
329
318
  "type": "Code",
@@ -354,7 +343,7 @@ var blocks_default$1 = {
354
343
  "scene": "engine"
355
344
  },
356
345
  "player_move_main": {
357
- "scene": "engine",
346
+ "scene": "player",
358
347
  "parts": {
359
348
  "PlayerMovementTick": {
360
349
  "start": 184272,
@@ -372,1035 +361,204 @@ var blocks_default$1 = {
372
361
  "start": 184376,
373
362
  "end": 184902,
374
363
  "type": "Code",
375
- "scene": "engine"
364
+ "scene": "player"
376
365
  },
377
- "player_move_ew": {
366
+ "player_move_south": {
378
367
  "start": 185206,
379
- "end": 187264,
368
+ "end": 186076,
380
369
  "type": "Code",
381
- "scene": "engine"
370
+ "scene": "player"
371
+ },
372
+ "player_move_east": {
373
+ "scene": "player",
374
+ "parts": {
375
+ "DispatchEastMove": {
376
+ "start": 186076,
377
+ "end": 186435,
378
+ "type": "Code"
379
+ },
380
+ "AutoAlignNS_East": {
381
+ "start": 187085,
382
+ "end": 187264,
383
+ "type": "Code"
384
+ }
385
+ }
386
+ },
387
+ "player_move_ramps": {
388
+ "start": 186435,
389
+ "end": 187085,
390
+ "type": "Code",
391
+ "scene": "player"
382
392
  },
383
393
  "player_move_diag": {
384
394
  "start": 187264,
385
395
  "end": 188674,
386
396
  "type": "Code",
387
- "scene": "engine"
397
+ "scene": "player"
388
398
  },
389
399
  "tile_collision": {
390
400
  "start": 188674,
391
401
  "end": 189334,
392
402
  "type": "Code",
403
+ "scene": "player"
404
+ },
405
+ "inventory_overlay": {
406
+ "start": 191746,
407
+ "end": 192584,
408
+ "type": "Code",
409
+ "scene": "inventory",
410
+ "movable": true
411
+ },
412
+ "ShowDialogueFrame": {
413
+ "start": 192584,
414
+ "end": 192618,
415
+ "type": "Code",
416
+ "scene": "functions",
417
+ "movable": true
418
+ },
419
+ "vram_buffer_clear": {
420
+ "start": 192618,
421
+ "end": 192652,
422
+ "type": "Code",
423
+ "scene": "functions",
424
+ "movable": true
425
+ },
426
+ "GlobalInputHandler": {
427
+ "start": 229376,
428
+ "end": 229567,
429
+ "type": "Code",
393
430
  "scene": "engine"
394
431
  },
395
- "chunk_038000": { "parts": {
396
- "func_038000": {
397
- "start": 229376,
398
- "end": 229567,
399
- "type": "Code"
400
- },
401
- "sub_0380BF": {
402
- "start": 229567,
403
- "end": 229977,
404
- "type": "Code"
405
- },
406
- "sub_038259": {
407
- "start": 229977,
408
- "end": 230012,
409
- "type": "Code"
410
- },
411
- "sub_03827C": {
412
- "start": 230012,
413
- "end": 230158,
414
- "type": "Code"
415
- },
416
- "sub_03830E": {
417
- "start": 230158,
418
- "end": 230191,
419
- "type": "Code"
420
- },
421
- "sub_03832F": {
422
- "start": 230191,
423
- "end": 230265,
424
- "type": "Code"
425
- },
426
- "sub_038379": {
427
- "start": 230265,
428
- "end": 230358,
429
- "type": "Code"
430
- },
431
- "word_0383D6": {
432
- "start": 230358,
433
- "end": 230416,
434
- "type": "Word"
435
- },
436
- "sub_038410": {
437
- "start": 230416,
438
- "end": 230447,
439
- "type": "Code"
440
- },
441
- "sub_03842F": {
442
- "start": 230447,
443
- "end": 230463,
444
- "type": "Code"
445
- },
446
- "table_03843F": {
447
- "start": 230463,
448
- "end": 230591,
449
- "type": "&Code"
450
- },
451
- "func_0384BF": {
452
- "start": 230591,
453
- "end": 230613,
454
- "type": "Code"
455
- },
456
- "func_0384D5": {
457
- "start": 230613,
458
- "end": 230850,
459
- "type": "Code"
460
- },
461
- "func_0385C2": {
462
- "start": 230850,
463
- "end": 231057,
464
- "type": "Code"
465
- },
466
- "func_038691": {
467
- "start": 231057,
468
- "end": 231133,
469
- "type": "Code"
470
- },
471
- "func_0386DD": {
472
- "start": 231133,
473
- "end": 231335,
474
- "type": "Code"
475
- },
476
- "func_0387A7": {
477
- "start": 231335,
478
- "end": 231411,
479
- "type": "Code"
480
- },
481
- "func_0387F3": {
482
- "start": 231411,
483
- "end": 231453,
484
- "type": "Code"
485
- },
486
- "func_03881D": {
487
- "start": 231453,
488
- "end": 231562,
489
- "type": "Code"
490
- },
491
- "func_03888A": {
492
- "start": 231562,
493
- "end": 231703,
494
- "type": "Code"
495
- },
496
- "func_038917": {
497
- "start": 231703,
498
- "end": 231793,
499
- "type": "Code"
500
- },
501
- "func_038971": {
502
- "start": 231793,
503
- "end": 231834,
504
- "type": "Code"
505
- },
506
- "func_03899A": {
507
- "start": 231834,
508
- "end": 231935,
509
- "type": "Code"
510
- },
511
- "widestring_0389FF": {
512
- "start": 231935,
513
- "end": 231958,
514
- "type": "WideString"
515
- },
516
- "func_038A16": {
517
- "start": 231958,
518
- "end": 232356,
519
- "type": "Code"
520
- },
521
- "func_038BA4": {
522
- "start": 232356,
523
- "end": 232501,
524
- "type": "Code"
525
- },
526
- "func_038C35": {
527
- "start": 232501,
528
- "end": 232807,
529
- "type": "Code"
530
- },
531
- "func_038D67": {
532
- "start": 232807,
533
- "end": 232981,
534
- "type": "Code"
535
- },
536
- "func_038E15": {
537
- "start": 232981,
538
- "end": 233110,
539
- "type": "Code"
540
- },
541
- "func_038E96": {
542
- "start": 233110,
543
- "end": 233239,
544
- "type": "Code"
545
- },
546
- "func_038F17": {
547
- "start": 233239,
548
- "end": 233327,
549
- "type": "Code"
550
- },
551
- "func_038F6F": {
552
- "start": 233327,
553
- "end": 233459,
554
- "type": "Code"
555
- },
556
- "func_038FF3": {
557
- "start": 233459,
558
- "end": 233678,
559
- "type": "Code"
560
- },
561
- "func_0390CE": {
562
- "start": 233678,
563
- "end": 233796,
564
- "type": "Code"
565
- },
566
- "func_039144": {
567
- "start": 233796,
568
- "end": 234010,
569
- "type": "Code"
570
- },
571
- "func_03921A": {
572
- "start": 234010,
573
- "end": 234137,
574
- "type": "Code"
575
- },
576
- "func_039299": {
577
- "start": 234137,
578
- "end": 234283,
579
- "type": "Code"
580
- },
581
- "func_03932B": {
582
- "start": 234283,
583
- "end": 234401,
584
- "type": "Code"
585
- },
586
- "func_0393A1": {
587
- "start": 234401,
588
- "end": 234535,
589
- "type": "Code"
590
- },
591
- "func_039427": {
592
- "start": 234535,
593
- "end": 234764,
594
- "type": "Code"
595
- },
596
- "func_03950C": {
597
- "start": 234764,
598
- "end": 235114,
599
- "type": "Code"
600
- },
601
- "func_03966A": {
602
- "start": 235114,
603
- "end": 235153,
604
- "type": "Code"
605
- },
606
- "func_039691": {
607
- "start": 235153,
608
- "end": 235581,
609
- "type": "Code"
610
- },
611
- "func_03983D": {
612
- "start": 235581,
613
- "end": 235698,
614
- "type": "Code"
615
- },
616
- "func_0398B2": {
617
- "start": 235698,
618
- "end": 235738,
619
- "type": "Code"
620
- },
621
- "func_0398DA": {
622
- "start": 235738,
623
- "end": 235868,
624
- "type": "Code"
625
- },
626
- "func_03995C": {
627
- "start": 235868,
628
- "end": 235903,
629
- "type": "Code"
630
- },
631
- "func_03997F": {
632
- "start": 235903,
633
- "end": 235981,
634
- "type": "Code"
635
- },
636
- "func_0399CD": {
637
- "start": 235981,
638
- "end": 236192,
639
- "type": "Code"
640
- },
641
- "func_039AA0": {
642
- "start": 236192,
643
- "end": 236205,
644
- "type": "Code"
645
- },
646
- "func_039AAD": {
647
- "start": 236205,
648
- "end": 236719,
649
- "type": "Code"
650
- },
651
- "func_039CAF": {
652
- "start": 236719,
653
- "end": 236809,
654
- "type": "Code"
655
- },
656
- "func_039D09": {
657
- "start": 236809,
658
- "end": 237077,
659
- "type": "Code"
660
- },
661
- "func_039E15": {
662
- "start": 237077,
663
- "end": 237360,
664
- "type": "Code"
665
- },
666
- "func_039F30": {
667
- "start": 237360,
668
- "end": 237405,
669
- "type": "Code"
670
- },
671
- "func_039F5D": {
672
- "start": 237405,
673
- "end": 237489,
674
- "type": "Code"
675
- },
676
- "func_039FB1": {
677
- "start": 237489,
678
- "end": 237490,
679
- "type": "Code"
680
- },
681
- "sub_039FB2": {
682
- "start": 237490,
683
- "end": 237514,
684
- "type": "Code"
685
- },
686
- "func_039FCA": {
687
- "start": 237514,
688
- "end": 237728,
689
- "type": "Code"
690
- },
691
- "sub_03A0A0": {
692
- "start": 237728,
693
- "end": 237738,
694
- "type": "Code"
432
+ "radar_map_screen": {
433
+ "start": 229567,
434
+ "end": 230416,
435
+ "type": "Code",
436
+ "scene": "engine"
437
+ },
438
+ "item_use_system": {
439
+ "start": 230416,
440
+ "end": 237738,
441
+ "type": "Code",
442
+ "scene": "inventory"
443
+ },
444
+ "oam_digit_compose": {
445
+ "start": 244449,
446
+ "end": 244613,
447
+ "type": "Code",
448
+ "scene": "engine"
449
+ },
450
+ "combat_collision": {
451
+ "start": 244613,
452
+ "end": 247295,
453
+ "type": "Code",
454
+ "scene": "engine"
455
+ },
456
+ "sprite_composition": {
457
+ "scene": "engine",
458
+ "parts": {
459
+ "ClearActorRenderList": {
460
+ "start": 252010,
461
+ "end": 252033,
462
+ "type": "Code"
463
+ },
464
+ "SortActorsByDepth": {
465
+ "start": 247295,
466
+ "end": 248565,
467
+ "type": "Code",
468
+ "order": 252011
469
+ }
695
470
  }
696
- } },
697
- "chunk_03BAE1": { "parts": {
698
- "func_03BAE1": {
699
- "start": 244449,
700
- "end": 244465,
701
- "type": "Code"
702
- },
703
- "func_03BAF1": {
704
- "start": 244465,
705
- "end": 244574,
706
- "type": "Code"
707
- },
708
- "func_03BB5E": {
709
- "start": 244574,
710
- "end": 244613,
711
- "type": "Code"
712
- },
713
- "func_03BB85": {
714
- "start": 244613,
715
- "end": 244660,
716
- "type": "Code"
717
- },
718
- "func_03BBB4": {
719
- "start": 244660,
720
- "end": 244708,
721
- "type": "Code"
722
- },
723
- "func_03BBE4": {
724
- "start": 244708,
725
- "end": 245085,
726
- "type": "Code"
727
- },
728
- "func_03BD5D": {
729
- "start": 245085,
730
- "end": 245543,
731
- "type": "Code"
732
- },
733
- "func_03BF27": {
734
- "start": 245543,
735
- "end": 246082,
736
- "type": "Code"
737
- },
738
- "func_03C142": {
739
- "start": 246082,
740
- "end": 246363,
741
- "type": "Code"
742
- },
743
- "func_03C25B": {
744
- "start": 246363,
745
- "end": 246752,
746
- "type": "Code"
747
- },
748
- "func_03C3E0": {
749
- "start": 246752,
750
- "end": 247076,
751
- "type": "Code"
752
- },
753
- "func_03C524": {
754
- "start": 247076,
755
- "end": 247183,
756
- "type": "Code"
757
- },
758
- "func_03C58F": {
759
- "start": 247183,
760
- "end": 247295,
761
- "type": "Code"
762
- },
763
- "func_03C5FF": {
764
- "start": 247295,
765
- "end": 247572,
766
- "type": "Code"
767
- },
768
- "func_03C714": {
769
- "start": 247572,
770
- "end": 247691,
771
- "type": "Code"
772
- },
773
- "func_03C78B": {
774
- "start": 247691,
775
- "end": 247873,
776
- "type": "Code"
777
- },
778
- "binary_03C841": {
779
- "start": 247873,
780
- "end": 247881,
781
- "type": "Binary"
782
- },
783
- "func_03C849": {
784
- "start": 247881,
785
- "end": 248345,
786
- "type": "Code"
787
- },
788
- "func_03CA19": {
789
- "start": 248345,
790
- "end": 248405,
791
- "type": "Code"
792
- },
793
- "func_03CA55": {
794
- "start": 248405,
795
- "end": 248565,
796
- "type": "Code"
797
- },
798
- "run_actors_03CAF5": {
799
- "start": 248565,
800
- "end": 249087,
801
- "type": "Code"
802
- },
803
- "func_03CCFF": {
804
- "start": 249087,
805
- "end": 249198,
806
- "type": "Code"
807
- },
808
- "func_03CD6E": {
809
- "start": 249198,
810
- "end": 249292,
811
- "type": "Code"
812
- },
813
- "func_03CDCC": {
814
- "start": 249292,
815
- "end": 249308,
816
- "type": "Code"
817
- },
818
- "func_03CDDC": {
819
- "start": 249308,
820
- "end": 249487,
821
- "type": "Code"
822
- },
823
- "func_03CE8F": {
824
- "start": 249487,
825
- "end": 249505,
826
- "type": "Code"
827
- },
828
- "func_03CEA1": {
829
- "start": 249505,
830
- "end": 249588,
831
- "type": "Code"
832
- },
833
- "func_03CEF4": {
834
- "start": 249588,
835
- "end": 249627,
836
- "type": "Code"
837
- },
838
- "func_03CF1B": {
839
- "start": 249627,
840
- "end": 250075,
841
- "type": "Code"
842
- },
843
- "func_03D0DB": {
844
- "start": 250075,
845
- "end": 250149,
846
- "type": "Code"
847
- },
848
- "binary_03D125": {
849
- "start": 250149,
850
- "end": 250157,
851
- "type": "Binary"
852
- },
853
- "func_03D12D": {
854
- "start": 250157,
855
- "end": 250205,
856
- "type": "Code"
857
- },
858
- "func_03D15D": {
859
- "start": 250205,
860
- "end": 250253,
861
- "type": "Code"
862
- },
863
- "func_03D18D": {
864
- "start": 250253,
865
- "end": 250306,
866
- "type": "Code"
867
- },
868
- "func_03D1C2": {
869
- "start": 250306,
870
- "end": 250357,
871
- "type": "Code"
872
- },
873
- "func_03D1F5": {
874
- "start": 250357,
875
- "end": 250486,
876
- "type": "Code"
877
- },
878
- "func_03D276": {
879
- "start": 250486,
880
- "end": 251053,
881
- "type": "Code"
882
- },
883
- "func_03D4AD": {
884
- "start": 251053,
885
- "end": 251484,
886
- "type": "&Code"
887
- },
888
- "func_03D65C": {
889
- "start": 251484,
890
- "end": 251516,
891
- "type": "&Code"
892
- },
893
- "func_03D67C": {
894
- "start": 251516,
895
- "end": 251631,
896
- "type": "Code"
897
- },
898
- "func_03D6EF": {
899
- "start": 251631,
900
- "end": 251652,
901
- "type": "Code"
902
- },
903
- "func_03D704": {
904
- "start": 251652,
905
- "end": 251656,
906
- "type": "Code"
907
- },
908
- "func_03D708": {
909
- "start": 251656,
910
- "end": 251786,
911
- "type": "Code"
912
- },
913
- "func_03D78A": {
914
- "start": 251786,
915
- "end": 251828,
916
- "type": "Code"
917
- },
918
- "func_03D7B4": {
919
- "start": 251828,
920
- "end": 251850,
921
- "type": "Code"
922
- },
923
- "sub_03D7CA": {
924
- "start": 251850,
925
- "end": 251879,
926
- "type": "Code"
927
- },
928
- "func_03D7E7": {
929
- "start": 251879,
930
- "end": 251953,
931
- "type": "Code"
932
- },
933
- "sub_03D831": {
934
- "start": 251953,
935
- "end": 252010,
936
- "type": "Code"
937
- },
938
- "zero_bytes_03D86A": {
939
- "start": 252010,
940
- "end": 252033,
941
- "type": "Code"
942
- },
943
- "func_03D881": {
944
- "start": 252033,
945
- "end": 252120,
946
- "type": "Code"
947
- },
948
- "sub_03D8D8": {
949
- "start": 252120,
950
- "end": 252146,
951
- "type": "Code"
952
- },
953
- "sub_03D8F2": {
954
- "start": 252146,
955
- "end": 252182,
956
- "type": "Code"
957
- },
958
- "func_03D916": {
959
- "start": 252182,
960
- "end": 252244,
961
- "type": "Code"
962
- },
963
- "func_03D954": {
964
- "start": 252244,
965
- "end": 252308,
966
- "type": "Code"
967
- },
968
- "func_03D994": {
969
- "start": 252308,
970
- "end": 252344,
971
- "type": "Code"
972
- },
973
- "func_03D9B8": {
974
- "start": 252344,
975
- "end": 252392,
976
- "type": "Code"
977
- },
978
- "func_03D9E8": {
979
- "start": 252392,
980
- "end": 252406,
981
- "type": "Code"
982
- },
983
- "func_03D9F6": {
984
- "start": 252406,
985
- "end": 252603,
986
- "type": "Code"
987
- },
988
- "sub_03DABB": {
989
- "start": 252603,
990
- "end": 252918,
991
- "type": "Code"
992
- },
993
- "sub_03DBF6": {
994
- "start": 252918,
995
- "end": 252985,
996
- "type": "Code"
997
- },
998
- "sub_03DC39": {
999
- "start": 252985,
1000
- "end": 253074,
1001
- "type": "Code"
1002
- },
1003
- "sub_03DC92": {
1004
- "start": 253074,
1005
- "end": 253270,
1006
- "type": "Code"
1007
- },
1008
- "func_03DD56": {
1009
- "start": 253270,
1010
- "end": 253645,
1011
- "type": "Code"
1012
- },
1013
- "func_03DECD": {
1014
- "start": 253645,
1015
- "end": 253706,
1016
- "type": "Code"
1017
- },
1018
- "word_03DF0A": {
1019
- "start": 253706,
1020
- "end": 253856,
1021
- "type": "Word"
1022
- },
1023
- "func_03DFA0": {
1024
- "start": 253856,
1025
- "end": 253944,
1026
- "type": "Code"
1027
- },
1028
- "func_03DFF8": {
1029
- "start": 253944,
1030
- "end": 254032,
1031
- "type": "Code"
1032
- },
1033
- "func_03E050": {
1034
- "start": 254032,
1035
- "end": 254128,
1036
- "type": "Code"
1037
- },
1038
- "func_03E0B0": {
1039
- "start": 254128,
1040
- "end": 254245,
1041
- "type": "Code"
1042
- },
1043
- "func_03E125": {
1044
- "start": 254245,
1045
- "end": 254278,
1046
- "type": "Code"
1047
- },
1048
- "func_03E146": {
1049
- "start": 254278,
1050
- "end": 254295,
1051
- "type": "Code"
1052
- },
1053
- "func_03E157": {
1054
- "start": 254295,
1055
- "end": 254323,
1056
- "type": "Code"
1057
- },
1058
- "func_03E173": {
1059
- "start": 254323,
1060
- "end": 254378,
1061
- "type": "Code"
1062
- },
1063
- "func_03E1AA": {
1064
- "start": 254378,
1065
- "end": 254422,
1066
- "type": "Code"
1067
- },
1068
- "func_03E1D6": {
1069
- "start": 254422,
1070
- "end": 254494,
1071
- "type": "Code"
1072
- },
1073
- "func_03E21E": {
1074
- "start": 254494,
1075
- "end": 254549,
1076
- "type": "Code"
1077
- },
1078
- "sub_03E255": {
1079
- "start": 254549,
1080
- "end": 254659,
1081
- "type": "Code"
1082
- },
1083
- "wide_cmd_table_03E2C3": {
1084
- "start": 254659,
1085
- "end": 254709,
1086
- "type": "&Code"
1087
- },
1088
- "cmd_c0_03E2F5": {
1089
- "start": 254709,
1090
- "end": 254735,
1091
- "type": "Code"
1092
- },
1093
- "cmd_c1_03E30F": {
1094
- "start": 254735,
1095
- "end": 254773,
1096
- "type": "Code"
1097
- },
1098
- "cmd_c2_03E335": {
1099
- "start": 254773,
1100
- "end": 254811,
1101
- "type": "Code"
1102
- },
1103
- "cmd_c3_03E35B": {
1104
- "start": 254811,
1105
- "end": 254827,
1106
- "type": "Code"
1107
- },
1108
- "cmd_c4_03E36B": {
1109
- "start": 254827,
1110
- "end": 254831,
1111
- "type": "Code"
1112
- },
1113
- "cmd_c5_03E36F": {
1114
- "start": 254831,
1115
- "end": 254867,
1116
- "type": "Code"
1117
- },
1118
- "cmd_c6_03E393": {
1119
- "start": 254867,
1120
- "end": 255023,
1121
- "type": "Code"
1122
- },
1123
- "binary_03E42F": {
1124
- "start": 255023,
1125
- "end": 255039,
1126
- "type": "Binary"
1127
- },
1128
- "cmd_c7_03E43F": {
1129
- "start": 255039,
1130
- "end": 255182,
1131
- "type": "Code"
1132
- },
1133
- "dlg_borders_03E4CE": {
1134
- "start": 255182,
1135
- "end": 255198,
1136
- "type": "Binary"
1137
- },
1138
- "sub_03E4DE": {
1139
- "start": 255198,
1140
- "end": 255237,
1141
- "type": "Code"
1142
- },
1143
- "sub_03E505": {
1144
- "start": 255237,
1145
- "end": 255353,
1146
- "type": "Code"
1147
- },
1148
- "cmd_c8_03E579": {
1149
- "start": 255353,
1150
- "end": 255467,
1151
- "type": "Code"
1152
- },
1153
- "cmd_c9_03E5EB": {
1154
- "start": 255467,
1155
- "end": 255480,
1156
- "type": "Code"
1157
- },
1158
- "cmd_cb_03E5F8": {
1159
- "start": 255480,
1160
- "end": 255518,
1161
- "type": "Code"
1162
- },
1163
- "cmd_cc_03E61E": {
1164
- "start": 255518,
1165
- "end": 255542,
1166
- "type": "Code"
1167
- },
1168
- "cmd_cd_03E636": {
1169
- "start": 255542,
1170
- "end": 255574,
1171
- "type": "Code"
1172
- },
1173
- "cmd_ce_03E656": {
1174
- "start": 255574,
1175
- "end": 255652,
1176
- "type": "Code"
1177
- },
1178
- "cmd_cf_03E6A4": {
1179
- "start": 255652,
1180
- "end": 255698,
1181
- "type": "Code"
1182
- },
1183
- "cmd_d0_03E6D2": {
1184
- "start": 255698,
1185
- "end": 255719,
1186
- "type": "Code"
1187
- },
1188
- "cmd_d1_03E6E7": {
1189
- "start": 255719,
1190
- "end": 255724,
1191
- "type": "Code"
1192
- },
1193
- "cmd_d2_03E6EC": {
1194
- "start": 255724,
1195
- "end": 255735,
1196
- "type": "Code"
1197
- },
1198
- "cmd_d3_03E6F7": {
1199
- "start": 255735,
1200
- "end": 255777,
1201
- "type": "Code"
1202
- },
1203
- "cmd_d4_03E721": {
1204
- "start": 255777,
1205
- "end": 255798,
1206
- "type": "Code"
1207
- },
1208
- "cmd_d5_03E736": {
1209
- "start": 255798,
1210
- "end": 255811,
1211
- "type": "Code"
1212
- },
1213
- "cmd_d6_03E743": {
1214
- "start": 255811,
1215
- "end": 255849,
1216
- "type": "Code"
1217
- },
1218
- "cmd_d7_03E769": {
1219
- "start": 255849,
1220
- "end": 255887,
1221
- "type": "Code"
1222
- },
1223
- "cmd_d8_03E78F": {
1224
- "start": 255887,
1225
- "end": 255922,
1226
- "type": "Code"
1227
- },
1228
- "sub_03E7B2": {
1229
- "start": 255922,
1230
- "end": 255958,
1231
- "type": "Code"
1232
- },
1233
- "sub_03E7D6": {
1234
- "start": 255958,
1235
- "end": 256012,
1236
- "type": "Code"
1237
- },
1238
- "sub_03E80C": {
1239
- "start": 256012,
1240
- "end": 256073,
1241
- "type": "Code"
1242
- },
1243
- "func_03E849": {
1244
- "start": 256073,
1245
- "end": 256387,
1246
- "type": "Code"
1247
- },
1248
- "sub_03E983": {
1249
- "start": 256387,
1250
- "end": 256554,
1251
- "type": "Code"
1252
- },
1253
- "sub_03EA2A": {
1254
- "start": 256554,
1255
- "end": 256610,
1256
- "type": "Code"
1257
- },
1258
- "func_03EA62": {
1259
- "start": 256610,
1260
- "end": 256652,
1261
- "type": "Code"
1262
- },
1263
- "asciistring_cmd_table_03EA8C": {
1264
- "start": 256652,
1265
- "end": 256688,
1266
- "type": "&Code"
1267
- },
1268
- "cmd_11_03EAB0": {
1269
- "start": 256688,
1270
- "end": 256701,
1271
- "type": "Code"
1272
- },
1273
- "cmd_10_03EABD": {
1274
- "start": 256701,
1275
- "end": 256738,
1276
- "type": "Code"
1277
- },
1278
- "cmd_0F_03EAE2": {
1279
- "start": 256738,
1280
- "end": 256795,
1281
- "type": "Code"
1282
- },
1283
- "cmd_0A_03EB1B": {
1284
- "start": 256795,
1285
- "end": 256881,
1286
- "type": "Code"
1287
- },
1288
- "sub_03EB71": {
1289
- "start": 256881,
1290
- "end": 256998,
1291
- "type": "Code"
1292
- },
1293
- "sub_03EBE6": {
1294
- "start": 256998,
1295
- "end": 257020,
1296
- "type": "Code"
1297
- },
1298
- "cmd_0B_03EBFC": {
1299
- "start": 257020,
1300
- "end": 257106,
1301
- "type": "Code"
1302
- },
1303
- "cmd_00_03EC52": {
1304
- "start": 257106,
1305
- "end": 257111,
1306
- "type": "Code"
1307
- },
1308
- "cmd_0D_03EC57": {
1309
- "start": 257111,
1310
- "end": 257124,
1311
- "type": "Code"
1312
- },
1313
- "cmd_0E_03EC64": {
1314
- "start": 257124,
1315
- "end": 257280,
1316
- "type": "Code"
1317
- },
1318
- "cmd_01_03ED00": {
1319
- "start": 257280,
1320
- "end": 257291,
1321
- "type": "Code"
1322
- },
1323
- "cmd_02_03ED0B": {
1324
- "start": 257291,
1325
- "end": 257323,
1326
- "type": "Code"
1327
- },
1328
- "cmd_03_03ED2B": {
1329
- "start": 257323,
1330
- "end": 257340,
1331
- "type": "Code"
1332
- },
1333
- "cmd_04_03ED3C": {
1334
- "start": 257340,
1335
- "end": 257391,
1336
- "type": "Code"
1337
- },
1338
- "cmd_05_03ED6F": {
1339
- "start": 257391,
1340
- "end": 257507,
1341
- "type": "Code"
1342
- },
1343
- "cmd_06_03EDE3": {
1344
- "start": 257507,
1345
- "end": 257701,
1346
- "type": "Code"
1347
- },
1348
- "cmd_07_03EEA5": {
1349
- "start": 257701,
1350
- "end": 257781,
1351
- "type": "Code"
1352
- },
1353
- "cmd_08_03EEF5": {
1354
- "start": 257781,
1355
- "end": 257823,
1356
- "type": "Code"
1357
- },
1358
- "cmd_0C_03EF1F": {
1359
- "start": 257823,
1360
- "end": 257854,
1361
- "type": "Code"
1362
- },
1363
- "cmd_09_03EF3E": {
1364
- "start": 257854,
1365
- "end": 257943,
1366
- "type": "Code"
1367
- },
1368
- "func_03EF97": {
1369
- "start": 257943,
1370
- "end": 258189,
1371
- "type": "Code"
1372
- },
1373
- "func_03F08D": {
1374
- "start": 258189,
1375
- "end": 258227,
1376
- "type": "Code"
1377
- },
1378
- "func_03F0B3": {
1379
- "start": 258227,
1380
- "end": 258250,
1381
- "type": "Code"
1382
- },
1383
- "func_03F0CA": {
1384
- "start": 258250,
1385
- "end": 258335,
1386
- "type": "Code"
1387
- },
1388
- "binary_03F11F": {
1389
- "start": 258335,
1390
- "end": 258423,
1391
- "type": "Binary"
1392
- },
1393
- "table_03F177": {
1394
- "start": 258423,
1395
- "end": 258512,
1396
- "type": "&Binary"
1397
- },
1398
- "func_03F1D0": {
1399
- "start": 258512,
1400
- "end": 258561,
1401
- "type": "Code"
471
+ },
472
+ "actor_execution": {
473
+ "start": 248565,
474
+ "end": 250157,
475
+ "type": "Code",
476
+ "scene": "engine"
477
+ },
478
+ "thinker_execution": {
479
+ "scene": "engine",
480
+ "parts": {
481
+ "SpawnSceneThinkers": {
482
+ "start": 251879,
483
+ "end": 252010,
484
+ "type": "Code"
485
+ },
486
+ "RunThinkers_TypeA": {
487
+ "start": 250157,
488
+ "end": 250357,
489
+ "type": "Code",
490
+ "order": 251880
491
+ }
1402
492
  }
1403
- } },
493
+ },
494
+ "tile_collision_physics": {
495
+ "start": 250357,
496
+ "end": 251879,
497
+ "type": "Code",
498
+ "scene": "engine"
499
+ },
500
+ "scene_lifecycle": {
501
+ "start": 252392,
502
+ "end": 254128,
503
+ "type": "Code",
504
+ "scene": "engine"
505
+ },
506
+ "save_system": {
507
+ "start": 252182,
508
+ "end": 252392,
509
+ "type": "Code",
510
+ "scene": "engine"
511
+ },
512
+ "hdma_dma_spc": {
513
+ "scene": "engine",
514
+ "parts": {
515
+ "DmaPlayerTilesToVram": {
516
+ "start": 252033,
517
+ "end": 252182,
518
+ "type": "Code"
519
+ },
520
+ "LoadPaletteBundle": {
521
+ "start": 254128,
522
+ "end": 254549,
523
+ "type": "Code"
524
+ },
525
+ "DmaAdhocVramBlock": {
526
+ "start": 258512,
527
+ "end": 258561,
528
+ "type": "Code"
529
+ }
530
+ }
531
+ },
532
+ "DialogStringRenderer": {
533
+ "start": 254549,
534
+ "end": 256073,
535
+ "type": "Code",
536
+ "scene": "engine"
537
+ },
538
+ "MenuSelectionHandler": {
539
+ "start": 256073,
540
+ "end": 256610,
541
+ "type": "Code",
542
+ "scene": "engine"
543
+ },
544
+ "ConsoleStringRenderer": {
545
+ "start": 256610,
546
+ "end": 257943,
547
+ "type": "Code",
548
+ "scene": "engine"
549
+ },
550
+ "inventory_mgmt": {
551
+ "start": 257943,
552
+ "end": 258250,
553
+ "type": "Code",
554
+ "scene": "inventory"
555
+ },
556
+ "GetPlayerFacingDirection": {
557
+ "start": 258250,
558
+ "end": 258512,
559
+ "type": "Code",
560
+ "scene": "engine"
561
+ },
1404
562
  "boot_logo_palette_enix": {
1405
563
  "start": 47167,
1406
564
  "end": 47187,
@@ -1450,44 +608,44 @@ var blocks_default$1 = {
1450
608
  "scene": "inventory",
1451
609
  "movable": true
1452
610
  },
1453
- "binary_01C384": { "parts": {
1454
- "binary_01C384": {
611
+ "math_lookup_tables": { "parts": {
612
+ "scene_flag_table": {
1455
613
  "start": 115588,
1456
614
  "end": 115797,
1457
615
  "type": "Byte"
1458
616
  },
1459
- "binary_01C455": {
617
+ "sine_table_8bit": {
1460
618
  "start": 115797,
1461
619
  "end": 115861,
1462
620
  "type": "Byte"
1463
621
  },
1464
- "binary_01C495": {
622
+ "signed_sine_table": {
1465
623
  "start": 115861,
1466
624
  "end": 116117,
1467
625
  "type": "Byte"
1468
626
  },
1469
- "binary_01C595": {
627
+ "sine_table_16bit": {
1470
628
  "start": 116117,
1471
629
  "end": 116373,
1472
630
  "type": "Word"
1473
631
  },
1474
- "binary_01C695": {
632
+ "cosine_table_16bit": {
1475
633
  "start": 116373,
1476
634
  "end": 116629,
1477
635
  "type": "Word"
1478
636
  },
1479
- "binary_01C795": {
637
+ "signed_sine_table_16bit": {
1480
638
  "start": 116629,
1481
639
  "end": 117141,
1482
640
  "type": "Word"
1483
641
  },
1484
- "binary_01C995": {
642
+ "sine_table_16bit_quarter": {
1485
643
  "start": 117141,
1486
644
  "end": 117397,
1487
645
  "type": "Word"
1488
646
  }
1489
647
  } },
1490
- "music_array_01CBA6": {
648
+ "music_pointer_array": {
1491
649
  "start": 117670,
1492
650
  "end": 117760,
1493
651
  "type": "@Binary"
@@ -1497,44 +655,50 @@ var blocks_default$1 = {
1497
655
  "end": 121022,
1498
656
  "type": "event-block-def"
1499
657
  },
1500
- "binary_01D8BE": { "parts": {
1501
- "binary_01D8BE": {
658
+ "hdma_ramp_tables": { "parts": {
659
+ "hdma_channel_config": {
1502
660
  "start": 121022,
1503
661
  "end": 121086,
1504
662
  "type": "Byte"
1505
663
  },
1506
- "binary_01D8FE": {
664
+ "parallax_speed_config": {
1507
665
  "start": 121086,
1508
666
  "end": 121099,
1509
667
  "type": "Byte"
1510
668
  },
1511
- "array_01D90B": {
669
+ "ramp_motion_curves": {
1512
670
  "start": 121099,
1513
671
  "end": 121201,
1514
672
  "type": "ramp-motion"
1515
673
  }
1516
674
  } },
1517
- "sFE_actor_03A2F1": {
675
+ "WorldMapController": {
1518
676
  "start": 238321,
1519
677
  "end": 239290,
1520
678
  "type": "actor-def",
679
+ "scene": "world_map"
680
+ },
681
+ "HdmaWindowEffect": {
682
+ "start": 239678,
683
+ "end": 239936,
684
+ "type": "Code",
1521
685
  "scene": "world_map",
1522
- "movable": false
686
+ "movable": true
1523
687
  },
1524
- "overworld_routes": {
688
+ "world_map_routes": {
1525
689
  "start": 241015,
1526
690
  "end": 242132,
1527
691
  "type": "&route-step",
1528
692
  "scene": "world_map",
1529
693
  "movable": true
1530
694
  },
1531
- "overworld_names": {
695
+ "world_map_names": {
1532
696
  "start": 242132,
1533
697
  "end": 242689,
1534
698
  "type": "map-label",
1535
699
  "scene": "world_map"
1536
700
  },
1537
- "overworld_options": {
701
+ "world_map_options": {
1538
702
  "start": 242689,
1539
703
  "end": 244449,
1540
704
  "type": "&Code",
@@ -1559,20 +723,20 @@ var blocks_default$1 = {
1559
723
  "end": 580875,
1560
724
  "type": "Code"
1561
725
  },
1562
- "widestring_08DD0B": {
726
+ "dialogstring_08DD0B": {
1563
727
  "start": 580875,
1564
728
  "end": 581234,
1565
- "type": "WideString"
729
+ "type": "DialogString"
1566
730
  },
1567
731
  "binary_08DE72": {
1568
732
  "start": 581234,
1569
733
  "end": 581270,
1570
734
  "type": "Binary"
1571
735
  },
1572
- "widestring_08DE96": {
736
+ "dialogstring_08DE96": {
1573
737
  "start": 581270,
1574
738
  "end": 584148,
1575
- "type": "WideString"
739
+ "type": "DialogString"
1576
740
  },
1577
741
  "func_08E9D4": {
1578
742
  "start": 584148,
@@ -1589,20 +753,20 @@ var blocks_default$1 = {
1589
753
  "end": 584552,
1590
754
  "type": "Binary"
1591
755
  },
1592
- "widestring_08EB68": {
756
+ "dialogstring_08EB68": {
1593
757
  "start": 584552,
1594
758
  "end": 584591,
1595
- "type": "WideString"
759
+ "type": "DialogString"
1596
760
  },
1597
761
  "table_08EB8F": {
1598
762
  "start": 584591,
1599
763
  "end": 584659,
1600
- "type": "&WideString"
764
+ "type": "&DialogString"
1601
765
  },
1602
766
  "table_08EBD3": {
1603
767
  "start": 584659,
1604
768
  "end": 585522,
1605
- "type": "&WideString"
769
+ "type": "&DialogString"
1606
770
  },
1607
771
  "func_08EF32": {
1608
772
  "start": 585522,
@@ -1840,49 +1004,49 @@ var blocks_default$1 = {
1840
1004
  "table_0BF6AD": {
1841
1005
  "start": 784045,
1842
1006
  "end": 784051,
1843
- "type": "&WideString"
1007
+ "type": "&DialogString"
1844
1008
  },
1845
- "widestring_0BF3F4": {
1009
+ "dialogstring_0BF3F4": {
1846
1010
  "start": 783348,
1847
1011
  "end": 783931,
1848
1012
  "order": 784046,
1849
- "type": "WideString"
1013
+ "type": "DialogString"
1850
1014
  },
1851
1015
  "table_0BF63B": {
1852
1016
  "start": 783931,
1853
1017
  "end": 783975,
1854
1018
  "order": 784047,
1855
- "type": "&WideString"
1019
+ "type": "&DialogString"
1856
1020
  },
1857
1021
  "table_0BF667": {
1858
1022
  "start": 783975,
1859
1023
  "end": 783993,
1860
1024
  "order": 784048,
1861
- "type": "&WideString"
1025
+ "type": "&DialogString"
1862
1026
  },
1863
- "widestring_0BF679": {
1027
+ "dialogstring_0BF679": {
1864
1028
  "start": 783993,
1865
1029
  "end": 784036,
1866
1030
  "order": 784049,
1867
- "type": "WideString"
1031
+ "type": "DialogString"
1868
1032
  },
1869
- "widestring_0BF6A4": {
1033
+ "dialogstring_0BF6A4": {
1870
1034
  "start": 784036,
1871
1035
  "end": 784045,
1872
1036
  "order": 784050,
1873
- "type": "WideString"
1037
+ "type": "DialogString"
1874
1038
  },
1875
- "widestring_0BF6B3": {
1039
+ "dialogstring_0BF6B3": {
1876
1040
  "start": 784051,
1877
1041
  "end": 784089,
1878
1042
  "order": 784051,
1879
- "type": "WideString"
1043
+ "type": "DialogString"
1880
1044
  },
1881
1045
  "table_0BF6D9": {
1882
1046
  "start": 784089,
1883
1047
  "end": 784134,
1884
1048
  "order": 784052,
1885
- "type": "&WideString"
1049
+ "type": "&DialogString"
1886
1050
  }
1887
1051
  }
1888
1052
  },
@@ -2014,7 +1178,7 @@ var blocks_default$1 = {
2014
1178
  "type": "actor-def",
2015
1179
  "movable": true
2016
1180
  },
2017
- "dark_space_palette": {
1181
+ "shadow_shimmer": {
2018
1182
  "start": 176654,
2019
1183
  "end": 176798,
2020
1184
  "type": "Code",
@@ -2036,27 +1200,11 @@ var blocks_default$1 = {
2036
1200
  "movable": false
2037
1201
  },
2038
1202
  "attack_ability_system": {
2039
- "scene": "player",
2040
- "movable": false,
2041
- "parts": {
2042
- "AttackSystemEntry": {
2043
- "start": 178099,
2044
- "end": 179702,
2045
- "type": "Code"
2046
- },
2047
- "ComputeParentOffset": {
2048
- "start": 179826,
2049
- "end": 181132,
2050
- "type": "Code"
2051
- }
2052
- }
2053
- },
2054
- "attack_trail_followers": {
2055
- "start": 179702,
2056
- "end": 179826,
1203
+ "start": 178099,
1204
+ "end": 181132,
2057
1205
  "type": "Code",
2058
1206
  "scene": "player",
2059
- "movable": true
1207
+ "movable": false
2060
1208
  },
2061
1209
  "player_character": {
2062
1210
  "start": 181132,
@@ -2211,7 +1359,7 @@ var blocks_default$1 = {
2211
1359
  "type": "thinker-def",
2212
1360
  "movable": true
2213
1361
  },
2214
- "sFE_proc_03A940": {
1362
+ "mode7_perspective": {
2215
1363
  "start": 239936,
2216
1364
  "end": 240520,
2217
1365
  "type": "thinker-def"
@@ -2296,7 +1444,7 @@ var blocks_default$1 = {
2296
1444
  "type": "Code",
2297
1445
  "movable": true
2298
1446
  },
2299
- "func_03AB88": {
1447
+ "mode7_perspective_unused": {
2300
1448
  "start": 240520,
2301
1449
  "end": 241015,
2302
1450
  "type": "Code",
@@ -2759,10 +1907,10 @@ var blocks_default$1 = {
2759
1907
  "scene": "dream",
2760
1908
  "movable": true
2761
1909
  },
2762
- "widestring_058000": {
1910
+ "dialogstring_058000": {
2763
1911
  "start": 360448,
2764
1912
  "end": 360487,
2765
- "type": "WideString",
1913
+ "type": "DialogString",
2766
1914
  "movable": true
2767
1915
  },
2768
1916
  "gs2B_actor_058027": {
@@ -4079,10 +3227,10 @@ var blocks_default$1 = {
4079
3227
  "end": 443266,
4080
3228
  "type": "actor-def"
4081
3229
  },
4082
- "widestring_06C3B1": {
3230
+ "dialogstring_06C3B1": {
4083
3231
  "start": 443313,
4084
3232
  "end": 443415,
4085
- "type": "WideString"
3233
+ "type": "DialogString"
4086
3234
  }
4087
3235
  }
4088
3236
  },
@@ -4101,11 +3249,11 @@ var blocks_default$1 = {
4101
3249
  "order": 443270,
4102
3250
  "type": "Code"
4103
3251
  },
4104
- "widestring_06C417": {
3252
+ "dialogstring_06C417": {
4105
3253
  "start": 443415,
4106
3254
  "end": 443498,
4107
3255
  "order": 443271,
4108
- "type": "WideString"
3256
+ "type": "DialogString"
4109
3257
  }
4110
3258
  }
4111
3259
  },
@@ -4370,10 +3518,10 @@ var blocks_default$1 = {
4370
3518
  "end": 650431,
4371
3519
  "type": "&Code"
4372
3520
  },
4373
- "widestring_09ECBF": {
3521
+ "dialogstring_09ECBF": {
4374
3522
  "start": 650431,
4375
3523
  "end": 652080,
4376
- "type": "WideString!"
3524
+ "type": "DialogString!"
4377
3525
  },
4378
3526
  "code_09F4AA": {
4379
3527
  "start": 652458,
@@ -4703,11 +3851,11 @@ var blocks_default$1 = {
4703
3851
  "end": 643317,
4704
3852
  "type": "actor-def"
4705
3853
  },
4706
- "widestring_05F8F7": {
3854
+ "dialogstring_05F8F7": {
4707
3855
  "start": 391415,
4708
3856
  "end": 391580,
4709
3857
  "order": 643119,
4710
- "type": "WideString"
3858
+ "type": "DialogString"
4711
3859
  }
4712
3860
  }
4713
3861
  },
@@ -5146,10 +4294,10 @@ var blocks_default$1 = {
5146
4294
  "end": 719685,
5147
4295
  "type": "Code"
5148
4296
  },
5149
- "widestring_0AFB45": {
4297
+ "dialogstring_0AFB45": {
5150
4298
  "start": 719685,
5151
4299
  "end": 720166,
5152
- "type": "WideString"
4300
+ "type": "DialogString"
5153
4301
  }
5154
4302
  }
5155
4303
  }
@@ -5183,10 +4331,10 @@ var blocks_default$1 = {
5183
4331
  "end": 558406,
5184
4332
  "type": "Code"
5185
4333
  },
5186
- "widestring_0887C6": {
4334
+ "dialogstring_0887C6": {
5187
4335
  "start": 559046,
5188
4336
  "end": 559196,
5189
- "type": "WideString"
4337
+ "type": "DialogString"
5190
4338
  },
5191
4339
  "code_088A60": {
5192
4340
  "start": 559712,
@@ -5218,10 +4366,10 @@ var blocks_default$1 = {
5218
4366
  "end": 559046,
5219
4367
  "type": "actor-def"
5220
4368
  },
5221
- "widestring_08885C": {
4369
+ "dialogstring_08885C": {
5222
4370
  "start": 559196,
5223
4371
  "end": 559712,
5224
- "type": "WideString"
4372
+ "type": "DialogString"
5225
4373
  }
5226
4374
  }
5227
4375
  },
@@ -5666,25 +4814,6 @@ var blocks_default$1 = {
5666
4814
  "type": "Code",
5667
4815
  "movable": true
5668
4816
  },
5669
- "dialogue_display": {
5670
- "start": 192584,
5671
- "end": 192618,
5672
- "type": "Code",
5673
- "movable": true
5674
- },
5675
- "vram_buffer_clear": {
5676
- "start": 192618,
5677
- "end": 192652,
5678
- "type": "Code",
5679
- "movable": true
5680
- },
5681
- "inventory_overlay": {
5682
- "start": 191746,
5683
- "end": 192584,
5684
- "type": "Code",
5685
- "scene": "inventory",
5686
- "movable": true
5687
- },
5688
4817
  "func_06B9F2": {
5689
4818
  "start": 440818,
5690
4819
  "end": 440841,
@@ -5759,10 +4888,10 @@ var blocks_default$1 = {
5759
4888
  "end": 372142,
5760
4889
  "type": "actor-def"
5761
4890
  },
5762
- "widestring_05AEA3": {
4891
+ "dialogstring_05AEA3": {
5763
4892
  "start": 372387,
5764
4893
  "end": 372527,
5765
- "type": "WideString"
4894
+ "type": "DialogString"
5766
4895
  }
5767
4896
  }
5768
4897
  },
@@ -5775,17 +4904,17 @@ var blocks_default$1 = {
5775
4904
  "end": 372766,
5776
4905
  "type": "actor-def"
5777
4906
  },
5778
- "widestring_05ADAE": {
4907
+ "dialogstring_05ADAE": {
5779
4908
  "start": 372142,
5780
4909
  "end": 372387,
5781
4910
  "order": 372617,
5782
- "type": "WideString"
4911
+ "type": "DialogString"
5783
4912
  },
5784
- "widestring_05AF2F": {
4913
+ "dialogstring_05AF2F": {
5785
4914
  "start": 372527,
5786
4915
  "end": 372613,
5787
4916
  "order": 372618,
5788
- "type": "WideString"
4917
+ "type": "DialogString"
5789
4918
  }
5790
4919
  }
5791
4920
  },
@@ -6113,7 +5242,7 @@ var blocks_default$1 = {
6113
5242
  }
6114
5243
  },
6115
5244
  tables: {
6116
- "table_018000": {
5245
+ "display_preset_table": {
6117
5246
  "start": 98304,
6118
5247
  "end": 98868,
6119
5248
  "type": "&display-preset"
@@ -6123,7 +5252,7 @@ var blocks_default$1 = {
6123
5252
  "end": 108894,
6124
5253
  "type": "&warp-def"
6125
5254
  },
6126
- "table_01A95E": {
5255
+ "forced_walk_sequence_table": {
6127
5256
  "start": 108894,
6128
5257
  "end": 109278,
6129
5258
  "type": "&Binary"
@@ -6133,32 +5262,32 @@ var blocks_default$1 = {
6133
5262
  "end": 109534,
6134
5263
  "type": "Byte"
6135
5264
  },
6136
- "dir_sprite_01ABDE": {
5265
+ "direction_velocity_table": {
6137
5266
  "start": 109534,
6138
5267
  "end": 109552,
6139
5268
  "type": "direction-velocity"
6140
5269
  },
6141
- "stats_01ABF0": {
5270
+ "enemy_stats_table": {
6142
5271
  "start": 109552,
6143
5272
  "end": 109992,
6144
5273
  "type": "enemy-stats"
6145
5274
  },
6146
- "table_01ADA8": {
5275
+ "scene_barrier_chest_table": {
6147
5276
  "start": 109992,
6148
5277
  "end": 110726,
6149
5278
  "type": "&Binary"
6150
5279
  },
6151
- "table_01B086": {
5280
+ "movement_delta_table": {
6152
5281
  "start": 110726,
6153
5282
  "end": 115588,
6154
5283
  "type": "&delta-node"
6155
5284
  },
6156
- "templates_01CA95": {
5285
+ "dialog_template_table": {
6157
5286
  "start": 117397,
6158
5287
  "end": 117670,
6159
- "type": "&WideString"
5288
+ "type": "&DialogString"
6160
5289
  },
6161
- "parallax_table": {
5290
+ "parallax_scroll_table": {
6162
5291
  "start": 117760,
6163
5292
  "end": 119758,
6164
5293
  "type": "&Binary"
@@ -6168,90 +5297,95 @@ var blocks_default$1 = {
6168
5297
  "end": 121255,
6169
5298
  "type": "body-entry"
6170
5299
  },
6171
- "table_01D9A7": {
6172
- "start": 121255,
6173
- "end": 121279,
6174
- "type": "&Binary"
6175
- },
6176
- "table_01D9BF": {
6177
- "start": 121279,
6178
- "end": 121304,
6179
- "type": "&Binary"
6180
- },
5300
+ "ability_anim_tables": { "parts": {
5301
+ "will_ability_anim_table": {
5302
+ "start": 121255,
5303
+ "end": 121279,
5304
+ "type": "&Binary"
5305
+ },
5306
+ "freedan_ability_anim_table": {
5307
+ "start": 121279,
5308
+ "end": 121304,
5309
+ "type": "&Binary"
5310
+ }
5311
+ } },
6181
5312
  "system_strings": { "parts": {
6182
- "asciistring_01D9D8": {
5313
+ "boot_screen_strings": {
6183
5314
  "start": 121304,
6184
5315
  "end": 121535,
6185
- "type": "ASCIIString"
5316
+ "type": "ConsoleString"
6186
5317
  },
6187
- "itemname_table_01DABF": {
5318
+ "item_name_table": {
6188
5319
  "start": 121535,
6189
5320
  "end": 122398,
6190
- "type": "&ASCIIString"
5321
+ "type": "&ConsoleString"
6191
5322
  },
6192
- "itemmenu_table_01DE1E": {
5323
+ "item_menu_table": {
6193
5324
  "start": 122398,
6194
5325
  "end": 123178,
6195
- "type": "&ASCIIString"
5326
+ "type": "&ConsoleString"
6196
5327
  },
6197
- "binary_01E12A": {
5328
+ "item_table_separator": {
6198
5329
  "start": 123178,
6199
5330
  "end": 123186,
6200
5331
  "type": "Binary"
6201
5332
  },
6202
- "itemdesc_table_01E132": {
5333
+ "item_description_table": {
6203
5334
  "start": 123186,
6204
5335
  "end": 124396,
6205
- "type": "&ASCIIString"
5336
+ "type": "&ConsoleString"
6206
5337
  },
6207
- "abilmenu_table_01E5EC": {
5338
+ "ability_menu_table": {
6208
5339
  "start": 124396,
6209
5340
  "end": 124509,
6210
- "type": "&ASCIIString"
5341
+ "type": "&ConsoleString"
6211
5342
  },
6212
- "abilname_table_01E65D": {
5343
+ "ability_name_table": {
6213
5344
  "start": 124509,
6214
5345
  "end": 124636,
6215
- "type": "&ASCIIString"
5346
+ "type": "&ConsoleString"
6216
5347
  },
6217
- "abildesc_table_01E6DC": {
5348
+ "ability_description_table": {
6218
5349
  "start": 124636,
6219
5350
  "end": 124878,
6220
- "type": "&ASCIIString"
5351
+ "type": "&ConsoleString"
6221
5352
  },
6222
- "charname_table_01E7CE": {
5353
+ "character_name_table": {
6223
5354
  "start": 124878,
6224
5355
  "end": 125260,
6225
- "type": "&ASCIIString"
5356
+ "type": "&ConsoleString"
6226
5357
  },
6227
- "table_01E94C": {
5358
+ "misc_ui_strings": {
6228
5359
  "start": 125260,
6229
5360
  "end": 125711,
6230
- "type": "&ASCIIString"
5361
+ "type": "&ConsoleString"
6231
5362
  }
6232
5363
  } },
6233
- "itemcomp_table_01EB0F": {
5364
+ "item_component_table": {
6234
5365
  "start": 125711,
6235
5366
  "end": 125864,
6236
- "type": "&ASCIIString",
5367
+ "type": "&ConsoleString",
6237
5368
  "movable": true
6238
5369
  },
6239
- "dictionary_01EBA8": {
6240
- "start": 125864,
6241
- "end": 128333,
6242
- "type": "&WideString",
6243
- "movable": true
6244
- },
6245
- "dictionary_01F54D": {
6246
- "start": 128333,
6247
- "end": 130340,
6248
- "type": "&WideString",
6249
- "movable": true
5370
+ "dialog_dictionaries": {
5371
+ "movable": true,
5372
+ "parts": {
5373
+ "dialog_dictionary_a": {
5374
+ "start": 125864,
5375
+ "end": 128333,
5376
+ "type": "&DialogString"
5377
+ },
5378
+ "dialog_dictionary_b": {
5379
+ "start": 128333,
5380
+ "end": 130340,
5381
+ "type": "&DialogString"
5382
+ }
5383
+ }
6250
5384
  },
6251
- "itemget_table_01FD24": {
5385
+ "item_get_dialog_table": {
6252
5386
  "start": 130340,
6253
5387
  "end": 130924,
6254
- "type": "&WideString"
5388
+ "type": "&DialogString"
6255
5389
  },
6256
5390
  "scene_actors": {
6257
5391
  "start": 819200,
@@ -6271,7 +5405,7 @@ var blocks_default$1 = {
6271
5405
  "start": 884736,
6272
5406
  "end": 897023,
6273
5407
  "type": "scene-meta",
6274
- "postProcess": "Lookup(0,1)&&Label(label)",
5408
+ "postProcess": "Lookup(0,1)&&Label(label,meta_label)",
6275
5409
  "movable": true
6276
5410
  },
6277
5411
  "table_0E8000": {
@@ -6366,7 +5500,7 @@ var blocks_default$1 = {
6366
5500
  }
6367
5501
  },
6368
5502
  sky_garden: {
6369
- "s59_actor_03A0AA": {
5503
+ "garden_crash_cutscene": {
6370
5504
  "start": 237738,
6371
5505
  "end": 238074,
6372
5506
  "type": "actor-def",
@@ -6567,7 +5701,7 @@ var blocks_default$1 = {
6567
5701
  }
6568
5702
  },
6569
5703
  angkor_wat: {
6570
- "sC0_actor_03A1FA": {
5704
+ "future_vision_cutscene": {
6571
5705
  "start": 238074,
6572
5706
  "end": 238321,
6573
5707
  "type": "actor-def",
@@ -6726,48 +5860,13 @@ var blocks_default$1 = {
6726
5860
  }
6727
5861
  },
6728
5862
  prologue: {
6729
- "pr8C_proc_03A6BA": {
5863
+ "IrisCircleEffect": {
6730
5864
  "start": 239290,
6731
5865
  "end": 239678,
6732
5866
  "type": "thinker-def",
6733
5867
  "scene": "prologue_prophecy",
6734
5868
  "movable": true
6735
5869
  },
6736
- "pr_proc_03A83E": {
6737
- "movable": true,
6738
- "parts": {
6739
- "e_pr_proc_03A83E": {
6740
- "start": 239678,
6741
- "end": 239750,
6742
- "type": "Code"
6743
- },
6744
- "sub_03A886": {
6745
- "start": 239750,
6746
- "end": 239782,
6747
- "type": "Code"
6748
- },
6749
- "sub_03A8A6": {
6750
- "start": 239782,
6751
- "end": 239883,
6752
- "type": "Code"
6753
- },
6754
- "sub_03A90B": {
6755
- "start": 239883,
6756
- "end": 239922,
6757
- "type": "Code"
6758
- },
6759
- "binary_03A932": {
6760
- "start": 239922,
6761
- "end": 239929,
6762
- "type": "Binary"
6763
- },
6764
- "binary_03A939": {
6765
- "start": 239929,
6766
- "end": 239936,
6767
- "type": "Binary"
6768
- }
6769
- }
6770
- },
6771
5870
  "pr8C_prologue1": {
6772
5871
  "scene": "prologue_prophecy",
6773
5872
  "movable": true,
@@ -7519,10 +6618,10 @@ var blocks_default$1 = {
7519
6618
  "end": 505892,
7520
6619
  "type": "actor-def"
7521
6620
  },
7522
- "widestring_07B824": {
6621
+ "dialogstring_07B824": {
7523
6622
  "start": 505892,
7524
6623
  "end": 506557,
7525
- "type": "WideString"
6624
+ "type": "DialogString"
7526
6625
  },
7527
6626
  "e_gw8B_lily": {
7528
6627
  "start": 506557,
@@ -7912,10 +7011,10 @@ var blocks_default$1 = {
7912
7011
  "end": 571124,
7913
7012
  "type": "actor-def"
7914
7013
  },
7915
- "widestring_08B70D": {
7014
+ "dialogstring_08B70D": {
7916
7015
  "start": 571149,
7917
7016
  "end": 571213,
7918
- "type": "WideString"
7017
+ "type": "DialogString"
7919
7018
  }
7920
7019
  }
7921
7020
  },
@@ -8326,7 +7425,7 @@ var copdef_default = {
8326
7425
  },
8327
7426
  MusicAndText: {
8328
7427
  "id": 25,
8329
- "parts": ["Byte", "@WideString"]
7428
+ "parts": ["Byte", "@DialogString"]
8330
7429
  },
8331
7430
  BranchIfSolidType: {
8332
7431
  "id": 26,
@@ -8739,9 +7838,9 @@ var copdef_default = {
8739
7838
  "id": 106,
8740
7839
  "parts": ["&Code"]
8741
7840
  },
8742
- PrintWideStringAlt: {
7841
+ PrintDialogStringAlt: {
8743
7842
  "id": 107,
8744
- "parts": ["&WideString"]
7843
+ "parts": ["&DialogString"]
8745
7844
  },
8746
7845
  InitSpiral: {
8747
7846
  "id": 108,
@@ -9076,9 +8175,9 @@ var copdef_default = {
9076
8175
  ],
9077
8176
  "halt": true
9078
8177
  },
9079
- PrintWideString: {
8178
+ PrintDialogString: {
9080
8179
  "id": 191,
9081
- "parts": ["&WideString"]
8180
+ "parts": ["&DialogString"]
9082
8181
  },
9083
8182
  SetOnInteract: {
9084
8183
  "id": 192,
@@ -30088,6 +29187,7 @@ var overrides_default$1 = {
30088
29187
  "36702": { "M": 0 },
30089
29188
  "164350": { "M": 0 },
30090
29189
  "164770": { "M": 1 },
29190
+ "165571": { "B": 129 },
30091
29191
  "165820": { "M": 1 },
30092
29192
  "166269": { "M": 1 },
30093
29193
  "166765": { "M": 1 },
@@ -30104,6 +29204,8 @@ var overrides_default$1 = {
30104
29204
  "187909": { "M": 0 },
30105
29205
  "187988": { "M": 0 },
30106
29206
  "188255": { "M": 0 },
29207
+ "249588": { "M": 0 },
29208
+ "256688": { "M": 0 },
30107
29209
  "637860": { "B": 126 }
30108
29210
  };
30109
29211
 
@@ -30154,7 +29256,7 @@ var rewrites_default$1 = {
30154
29256
  //#endregion
30155
29257
  //#region db-us/stringTypes.json
30156
29258
  var stringTypes_default$1 = {
30157
- ASCIIString: {
29259
+ ConsoleString: {
30158
29260
  "delimiter": "|",
30159
29261
  "terminator": 0,
30160
29262
  "layers": [{ "map": [
@@ -30611,7 +29713,7 @@ var stringTypes_default$1 = {
30611
29713
  }
30612
29714
  }
30613
29715
  },
30614
- WideString: {
29716
+ DialogString: {
30615
29717
  "delimiter": "`",
30616
29718
  "terminator": 202,
30617
29719
  "greedyTerminator": true,
@@ -31473,7 +30575,7 @@ var structs_default$1 = {
31473
30575
  "Byte",
31474
30576
  "Byte"
31475
30577
  ] },
31476
- "diary-entry": { "types": ["WideString", "Binary"] },
30578
+ "diary-entry": { "types": ["DialogString", "Binary"] },
31477
30579
  "ramp-motion": { "types": ["&Binary", "Byte"] },
31478
30580
  "meta<>": {
31479
30581
  "discriminator": 0,
@@ -31596,7 +30698,7 @@ var structs_default$1 = {
31596
30698
  "types": ["Byte", "@thinker-def"],
31597
30699
  "delimiter": 255
31598
30700
  },
31599
- "scene-event": { "types": ["enemy-spawn", "WideString"] },
30701
+ "scene-event": { "types": ["enemy-spawn", "DialogString"] },
31600
30702
  "warp-def": { "types": ["scene-warp", "stair-warp"] },
31601
30703
  "scene-warp": {
31602
30704
  "types": [
@@ -31744,38 +30846,38 @@ var transforms_default$1 = {
31744
30846
  }
31745
30847
  ],
31746
30848
  pyDA_lithograph2: [{
31747
- "key": "&widestring_08C88C",
31748
- "value": "&pyDA_lithograph1.widestring_08C7C9"
30849
+ "key": "&dialogstring_08C88C",
30850
+ "value": "&pyDA_lithograph1.dialogstring_08C7C9"
31749
30851
  }, {
31750
- "key": "widestring_08C88C `[^`]*`\r?\n?",
30852
+ "key": "dialogstring_08C88C `[^`]*`\r?\n?",
31751
30853
  "value": ""
31752
30854
  }],
31753
30855
  pyDA_lithograph3: [{
31754
- "key": "&widestring_08C934",
31755
- "value": "&pyDA_lithograph1.widestring_08C7C9"
30856
+ "key": "&dialogstring_08C934",
30857
+ "value": "&pyDA_lithograph1.dialogstring_08C7C9"
31756
30858
  }, {
31757
- "key": "widestring_08C934 `[^`]*`\r?\n?",
30859
+ "key": "dialogstring_08C934 `[^`]*`\r?\n?",
31758
30860
  "value": ""
31759
30861
  }],
31760
30862
  pyDA_lithograph4: [{
31761
- "key": "&widestring_08C9DC",
31762
- "value": "&pyDA_lithograph1.widestring_08C7C9"
30863
+ "key": "&dialogstring_08C9DC",
30864
+ "value": "&pyDA_lithograph1.dialogstring_08C7C9"
31763
30865
  }, {
31764
- "key": "widestring_08C9DC `[^`]*`\r?\n?",
30866
+ "key": "dialogstring_08C9DC `[^`]*`\r?\n?",
31765
30867
  "value": ""
31766
30868
  }],
31767
30869
  pyDA_lithograph5: [{
31768
- "key": "&widestring_08CA84",
31769
- "value": "&pyDA_lithograph1.widestring_08C7C9"
30870
+ "key": "&dialogstring_08CA84",
30871
+ "value": "&pyDA_lithograph1.dialogstring_08C7C9"
31770
30872
  }, {
31771
- "key": "widestring_08CA84 `[^`]*`\r?\n?",
30873
+ "key": "dialogstring_08CA84 `[^`]*`\r?\n?",
31772
30874
  "value": ""
31773
30875
  }],
31774
30876
  pyDA_lithograph6: [{
31775
- "key": "&widestring_08CB2C",
31776
- "value": "&pyDA_lithograph1.widestring_08C7C9"
30877
+ "key": "&dialogstring_08CB2C",
30878
+ "value": "&pyDA_lithograph1.dialogstring_08C7C9"
31777
30879
  }, {
31778
- "key": "widestring_08CB2C `[^`]*`\r?\n?",
30880
+ "key": "dialogstring_08CB2C `[^`]*`\r?\n?",
31779
30881
  "value": ""
31780
30882
  }],
31781
30883
  pyDD_teleporter: [{
@@ -31821,14 +30923,6 @@ var transforms_default$1 = {
31821
30923
  {
31822
30924
  "key": "`Shrine `",
31823
30925
  "value": "`Shrine`"
31824
- },
31825
- {
31826
- "key": "actor-spawn < #08, #0C, #03, @hidden_red_jewel >",
31827
- "value": "$&\r\n actor-spawn < #0C, #2F, #00, @SouthCapeDeliveryman >"
31828
- },
31829
- {
31830
- "key": "actor-spawn < #12, #38, #11, @hidden_red_jewel >",
31831
- "value": "$&\r\n actor-spawn < #14, #23, #07, @wa78_men >"
31832
30926
  }
31833
30927
  ],
31834
30928
  scene_meta: [
@@ -31849,12 +30943,12 @@ var transforms_default$1 = {
31849
30943
  "value": "music < #1F, #00, @bgm_illusion_of_gaia >"
31850
30944
  },
31851
30945
  {
31852
- "key": "mapdef_0041 \\[\\s+ppu < #00 >",
31853
- "value": "mapdef_0041 [\r\n ppu < #11 >"
30946
+ "key": "scene_meta_0041 \\[\\s+display-mode < #00 >",
30947
+ "value": "scene_meta_0041 [\r\n display-mode < #11 >"
31854
30948
  }
31855
30949
  ],
31856
30950
  diary_menu_window_dma: [{
31857
- "key": "(dma_data_00BC4C\\s\\[\\s*\\])[\\s]*(dma_data_00BC4D\\s\\[[^\\]]*\\])",
30951
+ "key": "(dma_channel_00BC4C\\s\\[\\s*\\])[\\s]*(dma_channel_00BC4D\\s\\[[^\\]]*\\])",
31858
30952
  "value": "$2\r\n\r\n$1"
31859
30953
  }],
31860
30954
  system_strings: [
@@ -31867,11 +30961,11 @@ var transforms_default$1 = {
31867
30961
  "value": "| Will|"
31868
30962
  },
31869
30963
  {
31870
- "key": "(?<=asciistring_01EADC \\|[^|]*) (?=[^|]*\\|)",
30964
+ "key": "(?<=consolestring_01EADC \\|[^|]*) (?=[^|]*\\|)",
31871
30965
  "value": "█"
31872
30966
  }
31873
30967
  ],
31874
- itemcomp_table_01EB0F: [{
30968
+ item_component_table: [{
31875
30969
  "key": "█",
31876
30970
  "value": " "
31877
30971
  }]
@@ -32147,8 +31241,8 @@ var names_default$1 = {
32147
31241
  "43065": "NudgePosition",
32148
31242
  "43111": "RunBg3Script",
32149
31243
  "43156": "DialogueOptions",
32150
- "43259": "PrintWideString",
32151
- "43352": "PrintWideStringAlt",
31244
+ "43259": "PrintDialogString",
31245
+ "43352": "PrintDialogStringAlt",
32152
31246
  "43410": "InitSpiral",
32153
31247
  "43438": "SpiralStep",
32154
31248
  "43499": "SetInteractHandler",
@@ -32382,13 +31476,52 @@ var names_default$1 = {
32382
31476
  "62387": "StopPlayerOnDeathAssign",
32383
31477
  "62409": "ApplyOrbitalOffsetFromRef",
32384
31478
  "62514": "ApplyOrbitalOffsetXY",
31479
+ "98304": "display_preset_table",
31480
+ "98868": "scene_warps",
31481
+ "108894": "forced_walk_sequence_table",
31482
+ "109278": "enemy_clear_reward_table",
31483
+ "109534": "direction_velocity_table",
31484
+ "109552": "enemy_stats_table",
31485
+ "109992": "scene_barrier_chest_table",
31486
+ "110726": "movement_delta_table",
31487
+ "115588": "scene_flag_table",
31488
+ "115797": "sine_table_8bit",
31489
+ "115861": "signed_sine_table",
31490
+ "116117": "sine_table_16bit",
31491
+ "116373": "cosine_table_16bit",
31492
+ "116629": "signed_sine_table_16bit",
31493
+ "117141": "sine_table_16bit_quarter",
31494
+ "117397": "dialog_template_table",
31495
+ "117670": "music_pointer_array",
31496
+ "117760": "parallax_scroll_table",
31497
+ "119758": "event_block_table",
31498
+ "121022": "hdma_channel_config",
31499
+ "121086": "parallax_speed_config",
31500
+ "121099": "ramp_motion_curves",
31501
+ "121201": "body_table",
31502
+ "121255": "will_ability_anim_table",
31503
+ "121279": "freedan_ability_anim_table",
31504
+ "121304": "boot_screen_strings",
31505
+ "121535": "item_name_table",
31506
+ "122398": "item_menu_table",
31507
+ "123178": "item_table_separator",
31508
+ "123186": "item_description_table",
31509
+ "124396": "ability_menu_table",
31510
+ "124509": "ability_name_table",
31511
+ "124636": "ability_description_table",
31512
+ "124878": "character_name_table",
31513
+ "125260": "misc_ui_strings",
31514
+ "125711": "item_component_table",
31515
+ "125864": "dialog_dictionary_a",
31516
+ "128333": "dialog_dictionary_b",
31517
+ "130340": "item_get_dialog_table",
32385
31518
  "163840": "MulDivide",
32386
31519
  "163899": "VBlankPartial",
32387
31520
  "163907": "VBlankWaitAndJoypad",
32388
31521
  "164241": "EnableNmiAndJoypad",
32389
31522
  "164258": "EnableNmiOnly",
32390
- "164271": "ForceBlank",
32391
- "164284": "EnableDisplay",
31523
+ "164271": "ScreenBlackout",
31524
+ "164284": "EnterForcedBlank",
32392
31525
  "164297": "WaitFrames",
32393
31526
  "164305": "SignedMultiply",
32394
31527
  "164328": "UnsignedDivide",
@@ -32455,9 +31588,9 @@ var names_default$1 = {
32455
31588
  "172096": "MusicPlaybackActor",
32456
31589
  "172261": "MusicRenderSync",
32457
31590
  "172298": "IsMusicPlaying",
32458
- "172315": "MeasureDialogueWidth",
32459
- "172393": "dialogue_measure_format",
32460
- "172402": "CountTextGlyphs",
31591
+ "172315": "DisplaySceneTitle",
31592
+ "172393": "scene_title_box_format",
31593
+ "172402": "CountTitleGlyphs",
32461
31594
  "172521": "ApplyAllEventBlocks",
32462
31595
  "172576": "SwapEventBlockTiles",
32463
31596
  "172816": "FlushVramWriteQueue",
@@ -32499,13 +31632,13 @@ var names_default$1 = {
32499
31632
  "176462": "MapIndexMoveDown_L1",
32500
31633
  "176488": "ProbeRightTiles",
32501
31634
  "176571": "ProbeLeftTiles",
32502
- "176654": "DarkSpacePaletteInit",
32503
- "176671": "DarkSpacePaletteIdle",
32504
- "176705": "DarkSpacePaletteActive",
32505
- "176740": "DarkSpaceCheckValidity",
32506
- "176781": "DarkSpacePaletteCycleA",
32507
- "176788": "DarkSpacePaletteCycleB",
32508
- "176795": "DarkSpacePaletteNop",
31635
+ "176654": "ShadowShimmerInit",
31636
+ "176671": "ShadowShimmerIdle",
31637
+ "176705": "ShadowShimmerActive",
31638
+ "176740": "ShadowShimmerGuard",
31639
+ "176781": "ShadowShimmerCycleA",
31640
+ "176788": "ShadowShimmerCycleB",
31641
+ "176795": "ShadowShimmerNop",
32509
31642
  "176798": "PlayerMoveController",
32510
31643
  "177094": "JoypadToVelocity",
32511
31644
  "177195": "SlopePhysicsEntry",
@@ -32530,6 +31663,7 @@ var names_default$1 = {
32530
31663
  "178261": "LaunchPsychoDash",
32531
31664
  "178273": "LaunchPsychoSlider",
32532
31665
  "178285": "FreedanAttackDispatch",
31666
+ "178389": "AttackChargeReturn",
32533
31667
  "178390": "LaunchDarkFriar",
32534
31668
  "178407": "LaunchAuraBarrier",
32535
31669
  "178433": "AttackCleanup",
@@ -32585,7 +31719,7 @@ var names_default$1 = {
32585
31719
  "180393": "PsychoSliderMain",
32586
31720
  "180604": "PsychoSliderRelease",
32587
31721
  "180633": "PsychoSliderLaunch",
32588
- "180643": "loc_02C1A3",
31722
+ "180643": "PsychoSliderLaunchLoop",
32589
31723
  "180670": "PsychoSliderDirEW",
32590
31724
  "180688": "PsychoSliderDirNS",
32591
31725
  "180708": "PsychoSliderAbort",
@@ -32613,6 +31747,7 @@ var names_default$1 = {
32613
31747
  "181418": "IdleStandWestShadow",
32614
31748
  "181423": "IdleStandEast",
32615
31749
  "181434": "IdleStandEastShadow",
31750
+ "181467": "IdleAnimReturn",
32616
31751
  "181469": "WalkSouth",
32617
31752
  "181540": "WalkNorth",
32618
31753
  "181612": "WalkWest",
@@ -32643,17 +31778,21 @@ var names_default$1 = {
32643
31778
  "182461": "ShimmyRightEntry",
32644
31779
  "182484": "ShimmyRightCheckWall",
32645
31780
  "182508": "ShimmyRightLoop",
31781
+ "182555": "ShimmyRightAnimLoop",
32646
31782
  "182573": "ShimmyRightUpCheck",
32647
31783
  "182580": "ShimmyRightDownCheck",
32648
31784
  "182587": "ShimmyLeftEntry",
32649
31785
  "182610": "ShimmyLeftCheckWall",
32650
31786
  "182633": "ShimmyLeftLoop",
31787
+ "182679": "ShimmyLeftAnimLoop",
32651
31788
  "182697": "ShimmyLeftUpCheck",
32652
31789
  "182704": "ShimmyLeftDownCheck",
32653
31790
  "182711": "ShimmyDetachRight",
32654
31791
  "182725": "ShimmyDetachRightShadow",
32655
31792
  "182730": "ShimmyDetachLeft",
32656
31793
  "182744": "ShimmyDetachLeftShadow",
31794
+ "182795": "DetachedCheckUp",
31795
+ "182802": "DetachedCheckDown",
32657
31796
  "182809": "ShimmyTopCorner",
32658
31797
  "182818": "AttackFromWalkSouth",
32659
31798
  "182824": "RunSouth",
@@ -32665,7 +31804,11 @@ var names_default$1 = {
32665
31804
  "182866": "RunEast",
32666
31805
  "182914": "RunStopToIdle",
32667
31806
  "182916": "MovingEastWest",
31807
+ "182938": "MovingToEast",
31808
+ "182994": "MovingToWest",
32668
31809
  "183052": "MovingNorthSouth",
31810
+ "183074": "MovingToNorth",
31811
+ "183130": "MovingToSouth",
32669
31812
  "183186": "CheckRunAttack",
32670
31813
  "183221": "RunAttackSpeedCheck",
32671
31814
  "183257": "SpeedThresholdEW",
@@ -32677,9 +31820,13 @@ var names_default$1 = {
32677
31820
  "183490": "RestoreStatusDisplay",
32678
31821
  "183496": "RunAttackCleanup",
32679
31822
  "183514": "AttackSouth",
31823
+ "183551": "AttackSouthWallPush",
32680
31824
  "183643": "AttackNorth",
31825
+ "183680": "AttackNorthWallPush",
32681
31826
  "183772": "AttackWest",
31827
+ "183811": "AttackWestWallPush",
32682
31828
  "183898": "AttackEast",
31829
+ "183937": "AttackEastWallPush",
32683
31830
  "184024": "AttackRedirect",
32684
31831
  "184038": "AttackFinish",
32685
31832
  "184046": "AttackInit",
@@ -32694,11 +31841,11 @@ var names_default$1 = {
32694
31841
  "184220": "ProjectileWest",
32695
31842
  "184246": "ProjectileEast",
32696
31843
  "184272": "PlayerMovementTick",
32697
- "184376": "DispatchSouthMove",
32698
- "184508": "SnapYSouthCollision",
32699
- "184532": "SouthInteractTile",
32700
- "184558": "SouthSlopeRight",
32701
- "184610": "SouthSlopeLeft",
31844
+ "184376": "DispatchNorthMove",
31845
+ "184508": "SnapYNorthCollision",
31846
+ "184532": "NorthInteractTile",
31847
+ "184558": "NorthSlopeRight",
31848
+ "184610": "NorthSlopeLeft",
32702
31849
  "184712": "SouthWallHandler",
32703
31850
  "184782": "SouthWallNudge",
32704
31851
  "184812": "ClearSpeedNS_1",
@@ -32710,39 +31857,42 @@ var names_default$1 = {
32710
31857
  "185023": "AutoAlignEW",
32711
31858
  "185147": "NudgeToLowerGrid",
32712
31859
  "185172": "NudgeToUpperGrid",
32713
- "185206": "DispatchEastMove",
32714
- "185322": "EastBlockedWall",
32715
- "185335": "SnapXEastCollision",
32716
- "185355": "EastInteractTile",
32717
- "185381": "EastStairsTile",
32718
- "185422": "EastSlopeRight",
32719
- "185471": "EastSlopeLeft",
32720
- "185562": "EastWallNorthInteract",
32721
- "185636": "EastWallNorthProbe",
31860
+ "185206": "DispatchSouthMove",
31861
+ "185322": "SouthBlockedWall",
31862
+ "185335": "SnapYSouthCollision",
31863
+ "185355": "SouthInteractTile",
31864
+ "185381": "SouthStairsTile",
31865
+ "185422": "SouthSlopeRight",
31866
+ "185471": "SouthSlopeLeft",
31867
+ "185562": "SouthWallNorthInteract",
31868
+ "185636": "SouthWallNorthProbe",
32722
31869
  "185648": "ClearSpeedNS_3",
32723
- "185654": "EastWallSouthInteract",
32724
- "185724": "EastSlideJumpShim",
31870
+ "185654": "SouthWallSouthInteract",
31871
+ "185724": "SouthSlideJumpShim",
32725
31872
  "185726": "ClearSpeedNS_4",
32726
- "185732": "AutoAlignNS_East",
32727
- "185849": "ComputeEastSnapOffset",
31873
+ "185732": "AutoAlignEW_South",
31874
+ "185849": "ComputeSouthSnapOffset",
32728
31875
  "185941": "FineAdjustXEast",
32729
31876
  "186010": "FineAdjustXWest",
32730
- "186076": "DispatchWestMove",
32731
- "186208": "SnapXWestCollision",
32732
- "186236": "WestLadderTile",
32733
- "186265": "WestWallNorthDiag",
32734
- "186337": "WestWallNorthFlag",
31877
+ "186076": "DispatchEastMove",
31878
+ "186208": "SnapXEastCollision",
31879
+ "186236": "EastLadderTile",
31880
+ "186265": "EastWallNorthDiag",
31881
+ "186267": "EastWallNorthHandler",
31882
+ "186337": "EastWallNorthFlag",
32735
31883
  "186343": "ClearSpeedEW_5",
32736
- "186349": "WestWallSouthDiag",
31884
+ "186349": "EastWallSouthDiag",
31885
+ "186351": "EastWallSouthHandler",
31886
+ "186395": "EastWallSouthFlag",
32737
31887
  "186429": "ClearSpeedEW_6",
32738
- "186435": "WestRampDown",
32739
- "186687": "WestRampUp",
32740
- "186744": "WestRedirectToNorth",
32741
- "186758": "EastRampDown",
32742
- "187018": "EastRampUp",
32743
- "187071": "EastRedirectToSouth",
32744
- "187085": "AutoAlignNS_West",
32745
- "187170": "ComputeWestSnapOffset",
31888
+ "186435": "EastRampDown",
31889
+ "186687": "EastRampUp",
31890
+ "186744": "EastRedirectToNorth",
31891
+ "186758": "WestRampUp",
31892
+ "187018": "WestRampDown",
31893
+ "187071": "WestRedirectToSouth",
31894
+ "187085": "AutoAlignNS_East",
31895
+ "187170": "ComputeEastSnapOffset",
32746
31896
  "187264": "DispatchDiagDownLeft",
32747
31897
  "187408": "SnapXDiagCollision",
32748
31898
  "187436": "DiagLadderTile",
@@ -32774,10 +31924,10 @@ var names_default$1 = {
32774
31924
  "189061": "ProbeFutureBL",
32775
31925
  "189103": "TileProbeMain",
32776
31926
  "189180": "ReadCollisionNibble",
32777
- "189203": "MapCellRight",
32778
- "189227": "MapCellLeft",
32779
- "189251": "MapCellDown",
32780
- "189277": "MapCellUp",
31927
+ "189203": "MapCellDown",
31928
+ "189227": "MapCellUp",
31929
+ "189251": "MapCellRight",
31930
+ "189277": "MapCellLeft",
32781
31931
  "189308": "CheckSubTileAlignX",
32782
31932
  "189321": "CheckSubTileAlignY",
32783
31933
  "189334": "InventoryMenuDef",
@@ -32833,8 +31983,8 @@ var names_default$1 = {
32833
31983
  "191168": "HideStatusActors",
32834
31984
  "191223": "ShowEquipCursor",
32835
31985
  "191243": "HideEquipCursor",
32836
- "191258": "HideAllItemSlots",
32837
- "191301": "ShowAllItemSlots",
31986
+ "191258": "ShowAllItemSlots",
31987
+ "191301": "HideAllItemSlots",
32838
31988
  "191344": "ComputeSlotPosition",
32839
31989
  "191366": "SlotPositionTable",
32840
31990
  "191430": "YesNoPromptLoop",
@@ -32859,10 +32009,311 @@ var names_default$1 = {
32859
32009
  "192584": "ShowDialogueFrame",
32860
32010
  "192618": "ClearVramBufferPartial",
32861
32011
  "192630": "ClearVramBufferFull",
32012
+ "229376": "GlobalInputHandler",
32013
+ "229567": "RadarScreenSetup",
32014
+ "229977": "RadarBorderAnimate",
32015
+ "230012": "RadarPlotSceneMarkers",
32016
+ "230158": "RadarPlotActors",
32017
+ "230191": "RadarPlotFriendlyActor",
32018
+ "230265": "RadarPlotEnemyActor",
32019
+ "230358": "RadarBorderTileTable",
32020
+ "230416": "ItemUseDispatch",
32021
+ "230447": "ItemUseEpilogue",
32022
+ "230463": "ItemHandlerJumpTable",
32023
+ "230591": "UseItem_None",
32024
+ "230613": "UseItem_RedJewel",
32025
+ "230850": "UseItem_PrisonKey",
32026
+ "231057": "UseItem_IncaStatueA",
32027
+ "231133": "UseItem_IncaStatueA_CheckAlt",
32028
+ "231335": "UseItem_IncaStatueB",
32029
+ "231411": "UseItem_IncaStatueB_CheckAlt",
32030
+ "231453": "UseItem_IncanMelody",
32031
+ "231562": "UseItem_Herb",
32032
+ "231703": "UseItem_DiamondBlock",
32033
+ "231793": "UseItem_DiamondBlock_Place",
32034
+ "231834": "UseItem_WindFlute",
32035
+ "231958": "UseItem_WindFlute_Effect",
32036
+ "232356": "UseItem_LolaMelody",
32037
+ "232501": "UseItem_LolaMelody_Effect",
32038
+ "232807": "UseItem_SmokedMeat",
32039
+ "232981": "UseItem_MineKeyA",
32040
+ "233110": "UseItem_MineKeyB",
32041
+ "233239": "UseItem_MemoryMelody",
32042
+ "233327": "UseItem_MemoryMelody_Effect",
32043
+ "233459": "UseItem_CrystalBall",
32044
+ "233678": "UseItem_ElevatorKey",
32045
+ "233796": "UseItem_SeasidePalaceKey",
32046
+ "234010": "UseItem_PurificationStone",
32047
+ "234137": "UseItem_StatueOfHope",
32048
+ "234283": "UseItem_RamaStatue",
32049
+ "234401": "UseItem_MagicPowder",
32050
+ "234535": "UseItem_Journal",
32051
+ "234764": "UseItem_LanceLetter",
32052
+ "235114": "UseItem_LillyNecklace",
32053
+ "235153": "UseItem_Will",
32054
+ "235581": "UseItem_Teapot",
32055
+ "235698": "UseItem_MushroomWater",
32056
+ "235738": "UseItem_MushroomWater_Alt",
32057
+ "235868": "UseItem_PrizeMoney",
32058
+ "235903": "UseItem_BlackGlasses",
32059
+ "235981": "UseItem_GorgonFlower",
32060
+ "236192": "UseItem_HieroglyphPlate",
32061
+ "236205": "UseItem_HieroglyphPlate_Detail",
32062
+ "236719": "UseItem_Aura",
32063
+ "236809": "UseItem_BillLolaLetter",
32064
+ "237077": "UseItem_FatherJournal",
32065
+ "237360": "UseItem_CrystalRing",
32066
+ "237405": "UseItem_Apple",
32067
+ "237489": "UseItem_Unused",
32068
+ "237490": "RemoveEquippedItem",
32069
+ "237514": "FluteMusicActorController",
32070
+ "237728": "SetPlayerTransition",
32071
+ "237738": "GardenCrashCutscene",
32072
+ "237833": "GardenCrashExitPhase",
32073
+ "237856": "CrashCameraController",
32074
+ "238057": "CrashDebrisSfx",
32075
+ "238074": "FutureVisionCutscene",
32076
+ "238126": "FutureVisionController",
32077
+ "238321": "WorldMapController",
32078
+ "238401": "DeferSceneTransition",
32079
+ "238430": "ArrivalAndTravelSetup",
32080
+ "238697": "CompanionDotMovement",
32081
+ "238851": "companion_position_tables",
32082
+ "238895": "RouteAnimationEngine",
32083
+ "238913": "RouteStepLoop",
32084
+ "239067": "SkipToSceneTransition",
32085
+ "239088": "RouteSubroutineCall",
32086
+ "239102": "RouteEndHandler",
32087
+ "239233": "ClearWorldMapState",
32088
+ "239250": "LookupMapName",
32089
+ "239290": "IrisCircleEffect",
32090
+ "239492": "IrisCircleEvenFrame",
32091
+ "239678": "HdmaWindowEffect",
32092
+ "239750": "QueueHdmaSineBuffers",
32093
+ "239782": "UpdateHdmaWindowParams",
32094
+ "239883": "InitSineTableBuffers",
32095
+ "239936": "Mode7PerspectiveInit",
32096
+ "240005": "Mode7PerspectiveUpdate",
32097
+ "240146": "QueueMode7HdmaTables",
32098
+ "240173": "Mode7Quadrant_PosCosPosSin",
32099
+ "240254": "Mode7Quadrant_PosCosNegSin",
32100
+ "240335": "Mode7Quadrant_NegCosPosSin",
32101
+ "240418": "Mode7Quadrant_NegCosNegSin",
32102
+ "240501": "NormalizeDivisor",
32103
+ "240520": "Mode7PerspectiveAlt",
32104
+ "240696": "QueueMode7HdmaAlt",
32105
+ "240723": "Mode7AltQ1_PosCosPosSin",
32106
+ "240795": "Mode7AltQ2_PosCosNegSin",
32107
+ "240867": "Mode7AltQ3_NegCosPosSin",
32108
+ "240941": "Mode7AltQ4_NegCosNegSin",
32109
+ "244449": "ComposeDigits_Continuation",
32110
+ "244465": "ComposeDigitSprites",
32111
+ "244574": "EmitDigitOamEntry",
32112
+ "244613": "ProcessDodgeCallbacks",
32113
+ "244660": "CheckPlayerDeath",
32114
+ "244708": "RunCombatCollision",
32115
+ "244729": "CombatCollision_EnemyLoop",
32116
+ "244768": "CombatCollision_NextTarget",
32117
+ "244924": "CombatCollision_InnerLoop",
32118
+ "245082": "CombatCollision_Exit",
32119
+ "245085": "PlayerAttackHitTest",
32120
+ "245538": "PlayerAttackHitTest_End",
32121
+ "245543": "EnemyHitPlayerHandler",
32122
+ "245636": "EnemyHitPlayer_Epilogue",
32123
+ "246038": "InvinciblePlayerHit",
32124
+ "246082": "CalcKnockbackDirection",
32125
+ "246363": "InteractionCollision_Exit",
32126
+ "246366": "RunInteractionCollision",
32127
+ "246424": "InteractionCollision_LoopBody",
32128
+ "246626": "InteractionCollision_FriendlyMode",
32129
+ "246752": "ApplyInteractionDamage",
32130
+ "246997": "InteractionDamage_NPCChat",
32131
+ "247076": "CalcKnockbackFromActorCenters",
32132
+ "247183": "FormatDamageDigits",
32133
+ "247295": "SortActorsByDepth",
32134
+ "247441": "SortActors_OffScreen",
32135
+ "247451": "SortActors_BuildFinalList",
32136
+ "247572": "ComposeAllSprites",
32137
+ "247691": "RenderComposeBuffer",
32138
+ "247873": "OamHiTableMasks",
32139
+ "247881": "DecomposeActorMetasprites",
32140
+ "248104": "DecomposePlayerSprites",
32141
+ "248325": "PlayerSprite_OffScreen",
32142
+ "248345": "CheckPlayerSpriteCache",
32143
+ "248405": "UpdateActorAnimation",
32144
+ "248565": "RunActors_Normal",
32145
+ "248696": "RunActors_PostTick",
32146
+ "248723": "RunActors_CopScriptPostTick",
32147
+ "248739": "RunActors_DisplayFiltered",
32148
+ "248850": "RunActors_DisplayFiltered_PostTick",
32149
+ "248874": "RunActors_DisplayFiltered_Exit",
32150
+ "248877": "RunActors_DisplayFiltered_CopPostTick",
32151
+ "248893": "RunActors_PauseFiltered",
32152
+ "248900": "RunActors_PauseFiltered_Body",
32153
+ "249005": "RunActors_PauseFiltered_PostTick",
32154
+ "249034": "RunActors_PauseFiltered_Exit",
32155
+ "249071": "RunActors_PauseFiltered_CopPostTick",
32156
+ "249087": "RunActors_CutsceneOnly",
32157
+ "249160": "RunActors_CutsceneOnly_PostTick",
32158
+ "249182": "RunActors_CutsceneOnly_CopPostTick",
32159
+ "249198": "RunActors_OverlayOnly",
32160
+ "249282": "RunActors_OverlayOnly_PostTick",
32161
+ "249292": "RunActors_OverlayOnly_CopPostTick",
32162
+ "249308": "InitActorPool",
32163
+ "249487": "ThinkerPoolAlloc",
32164
+ "249505": "SpawnSceneActors",
32165
+ "249588": "AdvanceSceneDataAndFree",
32166
+ "249627": "InitActorFromSceneData",
32167
+ "250075": "CheckEnemyDefeatedFlag",
32168
+ "250149": "BitMaskTable_Wram",
32169
+ "250157": "RunThinkers_TypeA",
32170
+ "250198": "RunThinkers_TypeA_Next",
32171
+ "250205": "RunThinkers_TypeB",
32172
+ "250246": "RunThinkers_TypeB_Next",
32173
+ "250253": "RunThinkers_TypeC",
32174
+ "250299": "RunThinkers_TypeC_Next",
32175
+ "250306": "RunThinkers_TypeD",
32176
+ "250350": "RunThinkers_TypeD_Next",
32177
+ "250357": "ApplyMovement",
32178
+ "250486": "ApplyMovementWithCollision",
32179
+ "250553": "CollisionX_PostMove",
32180
+ "250679": "CollisionY_Setup",
32181
+ "250780": "TileCollision_MoveLeft",
32182
+ "250911": "TileCollision_MoveRight",
32183
+ "251053": "TileTypeJumpTable_Horizontal",
32184
+ "251085": "TileCollision_SolidH",
32185
+ "251086": "TileCollision_BlockH",
32186
+ "251195": "TileCollision_PassH",
32187
+ "251201": "TileCollision_CheckAdjacentH",
32188
+ "251222": "TileCollision_MoveUp",
32189
+ "251351": "TileCollision_MoveDown",
32190
+ "251484": "TileTypeJumpTable_Vertical",
32191
+ "251516": "TileCollision_BlockV",
32192
+ "251625": "TileCollision_PassV",
32193
+ "251631": "TileCollision_CheckAdjacentV",
32194
+ "251652": "TileCollision_SolidV",
32195
+ "251656": "CheckActorOnSpecialTile",
32196
+ "251786": "CalcTileMapOffset",
32197
+ "251828": "AdvanceTileOffsetRight",
32198
+ "251850": "AdvanceTileOffsetDown",
32199
+ "251879": "SpawnSceneThinkers",
32200
+ "251953": "InitThinkerFromSceneData",
32201
+ "252010": "ClearActorRenderList",
32202
+ "252033": "DmaPlayerTilesToVram",
32203
+ "252120": "DmaPlayerTiles_UpperHalf",
32204
+ "252146": "DmaPlayerTiles_LowerHalf",
32205
+ "252182": "SaveGameState_Scene",
32206
+ "252244": "LoadGameState_Scene",
32207
+ "252308": "ClearSaveSlot",
32208
+ "252344": "ComputeSaveChecksum",
32209
+ "252392": "CheckSceneTransition",
32210
+ "252406": "ExecuteSceneTransition",
32211
+ "252603": "ScreenExitTransition",
32212
+ "252836": "ScreenExitTransition_WaveAlt",
32213
+ "252918": "ApplyScrollWaveEffect",
32214
+ "252985": "ComputeSineScrollTable",
32215
+ "253074": "ScreenEnterTransition",
32216
+ "253270": "ClearSceneState",
32217
+ "253645": "LoadHudTilemap",
32218
+ "253706": "HudTilemapData",
32219
+ "253856": "LoadScenePalettes",
32220
+ "253944": "LoadPlayerGraphics",
32221
+ "254032": "InitCameraBounds",
32222
+ "254128": "LoadPaletteBundle",
32223
+ "254245": "DecompressGfxToVram",
32224
+ "254278": "ResetHdmaState",
32225
+ "254295": "SetupHdmaChannel_Indirect",
32226
+ "254323": "SetupHdmaChannel_Direct",
32227
+ "254378": "SpcCheckMusicReady",
32228
+ "254422": "SpcTransferMusicData",
32229
+ "254494": "LoadMusicFromTransitionState",
32230
+ "254549": "DialogStringRenderer",
32231
+ "254559": "DialogString_CharLoop",
32232
+ "254659": "DialogStringCommandTable",
32233
+ "254709": "DialogCmd_EndAndWait",
32234
+ "254727": "DialogCmd_Return",
32235
+ "254735": "DialogCmd_SetPosition",
32236
+ "254773": "DialogCmd_InsertTemplate",
32237
+ "254811": "DialogCmd_SetPalette",
32238
+ "254827": "DialogCmd_InfiniteLoop",
32239
+ "254831": "DialogCmd_IndirectString",
32240
+ "254867": "DialogCmd_PrintNumber",
32241
+ "255023": "HexDigitTileTable",
32242
+ "255039": "DialogCmd_OpenDialogueBox",
32243
+ "255059": "OpenDialogueBox_Body",
32244
+ "255182": "DialogueBorderTiles",
32245
+ "255198": "DrawDialogueBorderRow",
32246
+ "255237": "DrawDialogueBodyRows",
32247
+ "255353": "DialogCmd_ClearDialogueBox",
32248
+ "255467": "DialogCmd_WaitFrames",
32249
+ "255480": "DialogCmd_NewLine",
32250
+ "255518": "DialogCmd_AdvanceCursor",
32251
+ "255542": "DialogCmd_InsertRemoteString",
32252
+ "255574": "DialogCmd_ClearBox",
32253
+ "255652": "DialogCmd_WaitForButton",
32254
+ "255698": "DialogCmd_WaitForAnyInput",
32255
+ "255719": "DialogCmd_JumpToAddress",
32256
+ "255724": "DialogCmd_SetSfx",
32257
+ "255735": "DialogCmd_OpenDefaultBox",
32258
+ "255777": "DialogCmd_SetPaletteColor",
32259
+ "255798": "DialogCmd_SetFrameDelay",
32260
+ "255811": "DialogCmd_DictionaryA",
32261
+ "255849": "DialogCmd_DictionaryB",
32262
+ "255887": "DialogCmd_PrintRawTiles",
32263
+ "255922": "WaitOneFrame",
32264
+ "255925": "WaitNFrames_Entry",
32265
+ "255930": "WaitNFrames_PerChar",
32266
+ "255947": "WaitNFrames_Loop",
32267
+ "255958": "ScrollDialogueUp",
32268
+ "256012": "DrawDialogueCursor",
32269
+ "256073": "MenuSelectionHandler",
32270
+ "256084": "MenuSelection_PollLoop",
32271
+ "256252": "MenuSelection_Down",
32272
+ "256316": "MenuSelection_LeftRight",
32273
+ "256387": "DrawMenuCursor",
32274
+ "256554": "ReadMenuSelection",
32275
+ "256610": "ConsoleStringRenderer",
32276
+ "256652": "ConsoleStringCommandTable",
32277
+ "256688": "AsciiCmd_AdvanceRow2",
32278
+ "256701": "AsciiCmd_InsertItemName",
32279
+ "256738": "AsciiCmd_ClearRect",
32280
+ "256795": "AsciiCmd_DrawPlayerHpBar",
32281
+ "256881": "DrawHpBar",
32282
+ "256998": "HpBar_AdvanceRow",
32283
+ "257020": "AsciiCmd_DrawEnemyHpBar",
32284
+ "257106": "AsciiCmd_End",
32285
+ "257111": "AsciiCmd_AdvanceRow4",
32286
+ "257124": "AsciiCmd_Print3DigitNumber",
32287
+ "257280": "AsciiCmd_SetVramAddr",
32288
+ "257291": "AsciiCmd_InsertRemoteString",
32289
+ "257323": "AsciiCmd_SetPalette",
32290
+ "257340": "AsciiCmd_IndirectString",
32291
+ "257391": "AsciiCmd_PrintBcdNumber",
32292
+ "257507": "AsciiCmd_DrawBox",
32293
+ "257701": "AsciiCmd_ClearColumn",
32294
+ "257781": "AsciiCmd_FillTile",
32295
+ "257823": "AsciiCmd_PrintRawBytes",
32296
+ "257854": "AsciiCmd_PrintEquipIcons",
32297
+ "257943": "GiveItemToPlayer",
32298
+ "258129": "GiveItem_DefUp",
32299
+ "258160": "GiveItem_StoreInSlot",
32300
+ "258173": "GiveItem_Success",
32301
+ "258176": "GiveItem_InventoryFull",
32302
+ "258189": "RemoveItemFromInventory",
32303
+ "258227": "CheckInventoryForItem",
32304
+ "258250": "GetPlayerFacingDirection",
32305
+ "258286": "GetPlayerFacing_AltEntry",
32306
+ "258335": "FacingDirectionLookup",
32307
+ "258423": "FacingFormOffsetTable",
32308
+ "258431": "FacingData_Will",
32309
+ "258458": "FacingData_Freedan",
32310
+ "258502": "FacingData_Shadow_A",
32311
+ "258506": "FacingData_Shadow_B",
32312
+ "258512": "DmaAdhocVramBlock",
32862
32313
  "296015": "e_sc01_pot",
32863
- "381117": "dm47_imas_destroy",
32864
32314
  "312858": "ec0A_throne_guard1",
32865
32315
  "312991": "ec0A_throne_guard2",
32316
+ "381117": "dm47_imas_destroy",
32866
32317
  "389974": "sg4C_spirit1",
32867
32318
  "390062": "sg4C_spirit2",
32868
32319
  "390227": "sg4C_spirit3",
@@ -32953,411 +32404,6 @@ var names_default$1 = {
32953
32404
  "849151": "loc_0CF4FF"
32954
32405
  };
32955
32406
 
32956
- //#endregion
32957
- //#region db-us/comments.json
32958
- var comments_default$1 = {
32959
- "32789": "16-bit A and X/Y for initialization sequence",
32960
- "32794": "Direct page = $0000",
32961
- "32798": "Stack pointer = $01FF",
32962
- "32804": "Data bank = $81 (FastROM mirror of bank $01)",
32963
- "32807": "Enable FastROM access speed (3.58 MHz for banks $80+)",
32964
- "32827": "Bit 7 = world-ready flag; permits scene loading",
32965
- "32830": "Check warmboot signature byte at $000100",
32966
- "32836": "Warmboot marker = $83",
32967
- "32845": "Store initial scene ID from warmboot result (Y=0 default)",
32968
- "32862": "Default max walk speed = 9 per axis",
32969
- "32871": "Initial max defense and current defense = 8",
32970
- "32892": "Default slope acceleration curve pointer",
32971
- "32901": "Default slope deceleration curve pointer (+$14 offset)",
32972
- "32916": "$FFFF sentinel — clear all 6 ability slot registers",
32973
- "32939": "Scene $FB = title screen / initial game startup",
32974
- "32944": "Clear ability bitmask — no abilities unlocked",
32975
- "32949": "=== Main game loop entry ===",
32976
- "32980": "OAM write index — end-of-sprite-list position",
32977
- "32985": "$FF sentinels terminate OAM composition buffer",
32978
- "33013": "Scroll camera BG1 (X=0 selects horizontal layer)",
32979
- "33020": "Scroll camera BG2 (X=2 selects vertical layer)",
32980
- "33051": "Branch always — infinite main loop",
32981
- "33054": "Full register save for re-entrant dialogue frame update",
32982
- "33120": "Clear bit 3 — dialogue rendering complete",
32983
- "33289": "Bit 6 = HUD suppression; if set, skip entire update",
32984
- "33300": "Save current status bar visibility (bit 0) on stack",
32985
- "33309": "Bit 1 = secondary HUD lock; skip defense anim if set",
32986
- "33316": "Throttle defense recovery animation to every 8 frames",
32987
- "33342": "Animate: increment displayed defense toward max",
32988
- "33345": "Play defense recovery tick sound ($0D)",
32989
- "33372": "Set bit 4 — flag HUD VRAM data as dirty for redraw",
32990
- "33379": "Zero the hundreds digit accumulator",
32991
- "33385": "Repeated subtraction by 100 to extract hundreds digit",
32992
- "33396": "Redraw gem/stat counters via BG3 script",
32993
- "33408": "XP display timer = 25 frames when XP first awarded",
32994
- "33425": "XP hold timer = 60 frames after award display",
32995
- "33443": "XP fadeout timer = 30 frames",
32996
- "33449": "Clear pending XP accumulator after display period expires",
32997
- "33469": "Cache current stats for next-frame change detection",
32998
- "33492": "Restore original bit 0 of displayModeFlags from stack",
32999
- "33505": "Decrement invincibility timer if non-negative (bit 15 clear)",
33000
- "33514": "Increment global frame timer, capped at $0100",
33001
- "33542": "Disable HDMA during V-Blank DMA transfers",
33002
- "33564": "VMAIN=$80: word-mode VRAM access, auto-increment high byte",
33003
- "33569": "BBAD0=$18: VRAM data write port target",
33004
- "33574": "DMAP0=$01: two-register DMA (word increment mode)",
33005
- "33582": "Bit 3 = dialogue mode — skip full tilemap DMA",
33006
- "33586": "Secondary DMA skip flag for partial VRAM bypass",
33007
- "33614": "Re-enable HDMA channels from cached mask (DP $66)",
33008
- "33621": "Spin-wait until auto-joypad read completes",
33009
- "33627": "Latch hardware joypad register to joypadRaw",
33010
- "33633": "Music state: 0=idle, positive=fading, negative=complete",
33011
- "33640": "Full frame update during music fade for visual continuity",
33012
- "33648": "Frame parity bit — SPC I/O writes on odd frames only",
33013
- "33654": "Dequeue pending sound effect for SPC transfer",
33014
- "33660": "Write audio command to SPC I/O port 2 ($2142)",
33015
- "33663": "Increment frame parity counter",
33016
- "33674": "Bit 3 = direct scroll write mode (bypass indexed system)",
33017
- "33678": "Negative priority flag = swap BG1/BG2 write order",
33018
- "33719": "Direct scroll mode: write registers without layer indexing",
33019
- "33748": "Check horizontal scroll override flag for this layer",
33020
- "33773": "Mask to 2 bits — high portion of 10-bit scroll position",
33021
- "33778": "Check vertical scroll override flag for this layer",
33022
- "33809": "Byte count at DP $B2; zero = no pending DMA transfer",
33023
- "33836": "Trigger DMA channel 0",
33024
- "33841": "Clear byte count to prevent re-trigger",
33025
- "33858": "Target: WRAM $0422 (OAM staging buffer)",
33026
- "33864": "$0200 = 512 bytes (128 OAM entries × 4 bytes each)",
33027
- "33872": "DMA mode $08: fixed-source fill",
33028
- "33877": "B-bus $80 = WRAM data port ($2180)",
33029
- "33900": "Fill value $E0: offscreen Y position (224 = bottom edge)",
33030
- "171493": "CGADD=0: palette write starts at index 0",
33031
- "171499": "BBAD0=$22: CGRAM data write register",
33032
- "171504": "Source: palette buffer at WRAM $7F0A00",
33033
- "171515": "512 bytes = 256 colors × 2 bytes each",
33034
- "171526": "Write backdrop color components to COLDATA fixed-color registers",
33035
- "171553": "OAM address = 0: start at first sprite entry",
33036
- "171559": "BBAD0=$04: OAM data register",
33037
- "171564": "Source: OAM staging buffer at $0422",
33038
- "171575": "544 bytes: 512 main table + 32 high-table attribute bytes",
33039
- "171601": "Begin zero-fill at WRAM $0000",
33040
- "171604": "Fill $0100 bytes (direct page area)",
33041
- "171610": "Skip stack ($0100-$01FF), resume fill at $0200",
33042
- "171616": "Fill $FF00 bytes covering $0200 through first WRAM bank",
33043
- "171622": "Fill remaining $FF00 bytes — clears all 128KB minus stack",
33044
- "171631": "Read destination address from init constant table",
33045
- "171635": "Negative address = end-of-table sentinel",
33046
- "171638": "Store initialization value to WRAM destination",
33047
- "171797": "DMA mode $08: fixed-source byte fill",
33048
- "171802": "B-bus $80 = WRAM data port ($2180)",
33049
- "171807": "Source: known zero byte in ROM (binary_01C384)",
33050
- "171829": "Read 16-bit register address from PPU init table",
33051
- "171835": "Negative address = end-of-table sentinel",
33052
- "171840": "Write 8-bit initialization value to hardware register",
33053
- "59731": "Set bit 12 in actor status — marks this actor as the active camera controller",
33054
- "59736": "Subtract 8px to center camera X on player sprite midpoint",
33055
- "59747": "Subtract 16px to center camera Y above player sprite top",
33056
- "59755": "Initialize 3-iteration scroll ramp-up loop via COP LoopInit",
33057
- "59761": "Save initial Y scroll delta to savedCameraDelta before entering per-frame loop",
33058
- "59769": "Set actor re-entry point; yields then continues computing deltas each frame",
33059
- "59777": "Bit 15 marks this value as a forced scroll override",
33060
- "59780": "Store to forcedScrollOverride ($06C8); engine applies this directly instead of normal delta",
33061
- "59783": "Clear normal cameraDeltaX since forced override takes precedence",
33062
- "60060": "Set camera-active flag (bit 12) in actor status word",
33063
- "60065": "Set re-entry point; actor recomputes both scroll deltas every frame from here",
33064
- "60084": "Check Y scroll speed parameter at DP $16; zero means no vertical scrolling needed",
33065
- "60091": "Compute vertical scroll delta = cameraTargetY × speed / scale via MulDivide",
33066
- "60107": "Zero both X and Y scroll accumulator registers at DP $24 and $26",
33067
- "60122": "Add running accumulated X offset ($24) to computed horizontal scroll delta",
33068
- "60131": "Add running accumulated Y offset ($26) to computed vertical scroll delta",
33069
- "60651": "8-bit mode: LSR operates independently on high and low bytes of the coordinate",
33070
- "60653": "Shift right ×4: divide by 16 to convert pixel position to metatile grid index",
33071
- "60659": "Mask $0F0F isolates 4-bit tile indices from both packed bytes",
33072
- "60667": "Subtract 8px half-tile centering offset before aligning X to tile grid",
33073
- "60675": "Y position aligns directly to tile grid with no centering offset",
33074
- "60683": "Load X scroll speed parameter; zero skips horizontal delta computation entirely",
33075
- "60690": "MulDivide: cameraDeltaX = cameraTargetX × speed parameter / scale factor",
33076
- "60697": "Load Y scroll speed parameter; zero skips vertical delta computation",
33077
- "60704": "MulDivide: cameraDeltaY = cameraTargetY × speed parameter / scale factor",
33078
- "174986": "Save flags; routine uses mixed 8/16-bit modes for VRAM register setup and map math",
33079
- "174989": "Load camera target X position for this BG layer (X = 0 or 2 selects layer)",
33080
- "174992": "Compare against map width bound — camera must not scroll past map edge",
33081
- "175000": "Create bitmask (bounds−1) for AND-based position clamping",
33082
- "175011": "Copy clamped X to BG horizontal scroll register ($068A+X)",
33083
- "175014": "Align to 16px metatile grid — tilemap rendering operates on 16×16 granularity",
33084
- "175019": "Load camera target Y for vertical bounds checking and clamping",
33085
- "175043": "Copy clamped Y to BG vertical scroll register ($068E+X)",
33086
- "175053": "VMAIN=$81: word-access VRAM, auto-increment by 32 words (column-mode for strips)",
33087
- "175075": "Loop counter = 32: full visible screen height in metatiles",
33088
- "175078": "=== Full tilemap row rendering loop (32 iterations) ===",
33089
- "175079": "Render one horizontal row of metatiles into the staging buffer",
33090
- "175092": "Immediately DMA the rendered row to VRAM (no staging — direct transfer)",
33091
- "175099": "Advance rendering position by 16px (one metatile row height)",
33092
- "175102": "Check if position has passed map width bound; wrap if needed",
33093
- "175119": "Store wrapped row position; continue loop",
33094
- "175125": "Clear all four staging buffer VRAM address words to prevent V-Blank re-trigger",
33095
- "175144": "Upload full CGRAM palette after tilemap refresh to sync colors with new tiles",
33096
- "175153": "Test scrollModeFlags bit 3: direct scroll mode bypasses delta clamping entirely",
33097
- "175161": "Direct mode: copy camera targets straight to scroll position registers (no smoothing)",
33098
- "175175": "Check if processing secondary BG layer (X≠0) with priority flag active",
33099
- "175188": "Layer 1 priority: store deltas directly to bg1ScrollV and savedCameraDelta",
33100
- "175202": "Save current horizontal scroll position on stack for tile-boundary XOR detection",
33101
- "175210": "Compute X delta = camera target X − current BG scroll X",
33102
- "175215": "Clamp negative delta: if less than −16, force to −16px per frame",
33103
- "175225": "Clamp positive delta: if greater than +16, force to +16px per frame",
33104
- "175233": "Store clamped horizontal delta for later use by tilemap rendering system",
33105
- "175237": "Update scroll position: new = old + clamped delta",
33106
- "175243": "XOR old and new scroll positions to detect which bits changed",
33107
- "175245": "Bit 4 = 16px tile alignment; if this bit flipped, camera crossed a metatile boundary",
33108
- "175250": "Tile boundary crossed horizontally: render newly-visible column into staging buffer",
33109
- "175254": "Begin vertical scroll processing — same delta/clamp/XOR logic as horizontal",
33110
- "175277": "Clamp positive vertical delta to +16px maximum",
33111
- "175285": "Store clamped vertical delta",
33112
- "175297": "Test vertical tile boundary crossing via XOR on bit 4",
33113
- "175302": "Tile boundary crossed vertically: render newly-visible row into staging buffer",
33114
- "175308": "Copy current horizontal scroll to $18 (full X extent for the row being rendered)",
33115
- "175313": "Default row offset = −16: top screen edge for upward scrolling",
33116
- "175321": "Scrolling down: use +$E0 (224px) offset for bottom screen edge",
33117
- "175325": "Compute actual row Y = current vertical scroll + edge offset",
33118
- "175328": "Wrap Y against map height: subtract mapBoundsY until within valid range",
33119
- "175341": "Render the computed row position as a horizontal tilemap strip",
33120
- "175345": "Default column offset = 0: left screen edge for leftward scrolling",
33121
- "175353": "Scrolling right: use +$100 (256px = one nametable width) for right edge",
33122
- "175357": "Compute column X = current horizontal scroll + edge offset",
33123
- "175367": "Render the computed column as a vertical tilemap strip",
33124
- "175374": "Load metatile definition table base pointer for this BG layer",
33125
- "175377": "Store tile def pointer at DP $02 for FillHorizTilemapSeg to reference",
33126
- "175379": "Switch to 8-bit A for byte-level map coordinate math",
33127
- "175381": "Set data bank to $7E for direct WRAM map and staging buffer access",
33128
- "175385": "Load high byte of Y position ($1D = map page component)",
33129
- "175388": "Load map row stride low byte for this layer",
33130
- "175391": "SignedMultiply: compute map page offset = Y_page × row_stride",
33131
- "175396": "Add X position page component ($19 = high byte of $18)",
33132
- "175399": "Add tilemap column base offset for this layer",
33133
- "175403": "Load Y position low byte for row-within-page alignment",
33134
- "175405": "Mask to 16px boundary (AND #$F0) — clear sub-tile bits",
33135
- "175408": "Store combined map row/column index at DP $04 for WrapMapIndex",
33136
- "175410": "Restore 16-bit A for VRAM address calculation",
33137
- "175412": "Normalize map index within tilemap bounds",
33138
- "175417": "Isolate Y row within 256-byte VRAM tilemap page (AND #$00F0)",
33139
- "175420": "ASL ×2: multiply by 4 for VRAM word addressing",
33140
- "175423": "Add VRAM tilemap base address for this layer ($06BA+X)",
33141
- "175427": "Load vertical strip staging buffer pointer for this layer ($06B6+X)",
33142
- "175431": "Load X scroll position to determine nametable half",
33143
- "175433": "Test bit 8: left nametable (0) vs right nametable (1)",
33144
- "175439": "Left half: store VRAM address into staging slot 0 (primary nametable)",
33145
- "175443": "Second nametable is $400 VRAM words offset from first",
33146
- "175446": "Store second nametable VRAM address at staging +$82",
33147
- "175452": "Right half: store VRAM address into staging slot 1 (nametable order swapped)",
33148
- "175459": "Secondary nametable address → staging slot 0 (swapped for right half)",
33149
- "175463": "16 metatiles = first half of visible horizontal row",
33150
- "175466": "Expand 16 metatile indices into VRAM tile entries for first half",
33151
- "175469": "Load current map Y index to advance to second row section",
33152
- "175472": "Add $100 to move to next 256-byte map section",
33153
- "175477": "Peek at saved staging base pointer on stack for second pass setup",
33154
- "175482": "Wrap the advanced map index within tilemap bounds",
33155
- "175487": "Advance staging pointer by $82 to second nametable slot",
33156
- "175491": "16 metatiles for second half of visible row",
33157
- "175494": "Expand second half of metatile indices into staging buffer",
33158
- "175501": "Subtract tilemap base address and row stride to normalize map index",
33159
- "175509": "Carry set = index overflowed past map bounds; needs wrapping",
33160
- "175512": "Re-add tilemap base to wrap around; store result and loop until normalized",
33161
- "175525": "Load map width bound (mapBoundsX) for wrap calculations",
33162
- "175528": "Store map width at DP $1A for boundary comparisons",
33163
- "175530": "Load map row stride (bytes per row in tilemap data)",
33164
- "175533": "Store row stride at DP $08 for wrap subtraction",
33165
- "175536": "Compute upper bound = tilemap base address + row stride",
33166
- "175539": "Store upper bound at DP $1E for boundary checks",
33167
- "175541": "Load metatile definition table base pointer for this layer",
33168
- "175544": "Store tile def pointer at DP $02 for FillVertTilemapSeg lookups",
33169
- "175546": "Switch to 8-bit A for byte-level map coordinate math",
33170
- "175548": "Set data bank to $7E for direct WRAM map data access",
33171
- "175552": "Load Y position page (high byte of $1C) for row page calculation",
33172
- "175555": "Load map width page (high byte of mapBoundsX)",
33173
- "175557": "SignedMultiply: map page offset = Y_page × mapWidth_page",
33174
- "175562": "Add X position page ($19 = high byte of $18)",
33175
- "175565": "Add tilemap column offset base for this layer ($069F+X)",
33176
- "175568": "Store complete column page index at DP $05",
33177
- "175570": "Load Y position low byte for metatile row index extraction",
33178
- "175572": "LSR ×4: divide by 16 to convert pixel Y → metatile row index",
33179
- "175577": "Map row width = 16 metatile entries",
33180
- "175579": "SignedMultiply: row offset = metatile_row_index × 16",
33181
- "175583": "Store row offset in map data at DP $04",
33182
- "175585": "Load X position low byte for metatile column index",
33183
- "175587": "LSR ×4: divide by 16 to convert pixel X → metatile column index",
33184
- "175592": "Add column index to row offset = complete linear map data index",
33185
- "175594": "Store total map data index at DP $04",
33186
- "175596": "Restore 16-bit A for VRAM address and staging buffer calculations",
33187
- "175600": "Normalize map data index within tilemap bounds via WrapMapIndex",
33188
- "175605": "Save original map offset at DP $06 for edge-case wrapping check later",
33189
- "175607": "Load horizontal strip staging buffer pointer for this layer ($06B2+X)",
33190
- "175611": "Load X scroll position for nametable column determination",
33191
- "175616": "Mask to column index × 2 bytes (AND #$003E, range 0-62)",
33192
- "175619": "Bit 5: determines left (0) or right (1) nametable half",
33193
- "175622": "Branch to right-half nametable VRAM address assignment",
33194
- "175625": "Left half: add VRAM nametable base address for this layer",
33195
- "175629": "Store VRAM column address in staging slot 0",
33196
- "175632": "INC: adjacent VRAM column for right side of 2-wide metatile",
33197
- "175633": "Store adjacent column VRAM address at staging +$42",
33198
- "175643": "Metatile Y offset within visible screen (AND #$000F, range 0-15)",
33199
- "175646": "Store split point at DP $10 — tiles from current Y to screen bottom",
33200
- "175654": "16 total visible metatile rows in the column",
33201
- "175658": "First segment count = 16 − Y_offset (tiles from current row to screen bottom)",
33202
- "175660": "Fill first vertical segment of column with FillVertTilemapSeg",
33203
- "175664": "Check if second segment needed (Y_offset > 0 means column wraps)",
33204
- "175666": "Skip second segment if column starts at metatile row 0 (no wrap)",
33205
- "175671": "Clear row bits from map offset (AND #$FF0F) — reset to row 0 of current column",
33206
- "175675": "Add map width to advance to next map row section",
33207
- "175677": "Check against tilemap upper bound for wrap detection",
33208
- "175682": "Subtract row stride to wrap back within tilemap bounds",
33209
- "175693": "Normalize wrapped map offset via WrapMapIndex",
33210
- "175697": "Load remaining tile count for second segment",
33211
- "175699": "Fill second vertical segment — tiles that wrap from bottom to top of map",
33212
- "175704": "Right half: mask column index to even values (AND #$001E)",
33213
- "175712": "Add $400 for right-half nametable VRAM offset",
33214
- "175716": "Store right-half VRAM address in staging slot 0",
33215
- "175720": "Adjacent column address for right side of metatile",
33216
- "175723": "Store adjacent VRAM address at staging +$42",
33217
- "175792": "=== Edge tile handling: render the preceding metatile row for seamless scrolling ===",
33218
- "175794": "Back up staging pointer by 4 bytes (one metatile entry width)",
33219
- "175798": "Load original map offset saved at DP $06",
33220
- "175800": "Test Y row offset bits — zero means at top of map section boundary",
33221
- "175803": "Non-zero row: skip to normal preceding-row calculation",
33222
- "175806": "At row 0 boundary: subtract map width to reach previous map section",
33223
- "175809": "Add $F0 to index the bottom row of the previous section",
33224
- "175820": "Check if computed offset is before tilemap start address",
33225
- "175823": "Negative (before tilemap): skip edge tile rendering entirely",
33226
- "175832": "Subtract $10 (one map row of 16 entries) to get the preceding row",
33227
- "175847": "Render just 1 edge metatile for seamless visual continuity",
33228
- "175850": "Fill single edge tile via FillVertTilemapSeg",
33229
- "175857": "Load map data source pointer from DP $04 into Y for indexed reads",
33230
- "175859": "Store A (metatile count) as loop counter at DP $0E",
33231
- "175861": "Read metatile index byte from map data in bank $7E",
33232
- "175864": "Save map data pointer Y on stack for next iteration",
33233
- "175865": "Mask to 8-bit index (AND #$00FF) — metatile indices are single bytes",
33234
- "175868": "ASL ×3: multiply index by 8 (each metatile def = 4 tile words = 8 bytes)",
33235
- "175872": "Add tile definition table base (DP $02) to get this metatile's address",
33236
- "175875": "Load tile word 0: top-left 8×8 tile (tile#, palette, flip flags)",
33237
- "175878": "Write top-left tile to staging buffer at +$02",
33238
- "175881": "Load tile word 1: top-right 8×8 tile",
33239
- "175884": "Write top-right tile to staging +$04",
33240
- "175887": "Load tile word 2: bottom-left 8×8 tile",
33241
- "175890": "Write bottom-left at +$42 (one VRAM tilemap row = $40 bytes below top-left)",
33242
- "175893": "Load tile word 3: bottom-right 8×8 tile",
33243
- "175896": "Write bottom-right at +$44 ($40 below top-right)",
33244
- "175899": "Advance staging pointer by 4 bytes (2 VRAM entries = one metatile width)",
33245
- "175903": "Restore map data pointer from stack",
33246
- "175904": "Advance to next consecutive metatile in map row",
33247
- "175905": "Decrement metatile counter",
33248
- "175907": "Loop until all metatiles in this horizontal segment are processed",
33249
- "175910": "Load map data source pointer from DP $04 into Y",
33250
- "175912": "Store A (metatile count) as loop counter at DP $0E",
33251
- "175914": "Read metatile index byte from map data in bank $7E",
33252
- "175917": "Save map pointer via PHY; will recover with PLA for vertical row advance",
33253
- "175918": "Mask to 8-bit metatile index (AND #$00FF)",
33254
- "175921": "ASL ×3: multiply by 8 to index into tile definition table",
33255
- "175925": "Add tile definition table base pointer (DP $02)",
33256
- "175928": "Load tile word 0: left column, upper half of metatile",
33257
- "175931": "Write left-upper tile to staging buffer +$02",
33258
- "175934": "Load tile word 1: right column, upper half",
33259
- "175937": "Write right-upper at staging +$44 (next VRAM row + one column right)",
33260
- "175940": "Load tile word 2: left column, lower half",
33261
- "175943": "Write left-lower to staging +$04 (below left-upper in staging layout)",
33262
- "175946": "Load tile word 3: right column, lower half",
33263
- "175949": "Write right-lower at staging +$46 (next VRAM row + one column right of lower)",
33264
- "175952": "Advance staging pointer by 4 bytes per metatile row",
33265
- "175956": "PLA: recover saved map pointer into A (was pushed as Y via PHY)",
33266
- "175958": "Add $10 (16 bytes = one map row) to advance vertically through map data",
33267
- "175961": "Transfer updated map pointer back to Y for next iteration",
33268
- "175962": "Decrement metatile counter",
33269
- "175964": "Loop until all metatiles in this vertical segment are processed",
33270
- "175968": "Switch to 8-bit A for DMA register configuration",
33271
- "175970": "VMAIN=$81: word-access VRAM with 32-word auto-increment for horizontal strips",
33272
- "175992": "Check and DMA horizontal strip 0 ($06B2) — row update for BG layer 0",
33273
- "176005": "Check and DMA horizontal strip 1 ($06B4) — row update for BG layer 1",
33274
- "176018": "Switch VMAIN to $80: word-access with sequential increment for vertical strips",
33275
- "176024": "Check and DMA vertical strip 0 ($06B6) — column update for BG layer 0",
33276
- "176037": "Check and DMA vertical strip 1 ($06B8) — column update for BG layer 1",
33277
- "176050": "Clear all four staging buffer VRAM addresses to prevent stale re-triggering next frame",
33278
- "176074": "Skip past 2-byte VRAM destination address word to reach tilemap data in staging buffer",
33279
- "176077": "Set VRAM destination address from the staging buffer header word",
33280
- "176083": "$40 = 64 bytes = 32 tilemap entries = one complete metatile row in VRAM",
33281
- "176097": "Advance source pointer by $40 bytes to second nametable half of the row",
33282
- "176101": "Load VRAM destination address for second 32×32 nametable",
33283
- "176140": "$80 = 128 bytes = 64 tilemap entries = full column height across both nametable halves",
33284
- "176154": "Advance source by $80 bytes to second nametable half of the column",
33285
- "176184": "Check $09ED bit 7 — if set, sprite VRAM DMA is globally suppressed",
33286
- "176190": "Check displayModeFlags bits 0/4/5 ($31 mask) — any set triggers sprite tile DMA",
33287
- "176198": "Bit 0 = full sprite tileset transfer mode (character form change)",
33288
- "176202": "$0800 = 2048 bytes = 128 complete 8×8 tiles for full character sprite set",
33289
- "176208": "VRAM $7800 = sprite character tile destination (upper sprite page)",
33290
- "176214": "Source $7F0200 = sprite tileset staging area in extended WRAM",
33291
- "176222": "Bits 4-5: partial sprite tile update modes (animation frame updates)",
33292
- "176229": "$0140 = 320 bytes = 40 tiles for partial sprite animation update",
33293
- "176237": "Bit 5 special: clear flag after DMA for single-shot extended partial transfer",
33294
- "176248": "VRAM $7840 = sprite animation tile area (offset within sprite tile page)",
33295
- "176254": "Source $7F0280 = animation tile staging area in extended WRAM",
33296
- "176260": "Clear sprite DMA request flags (bits 0,4,5) via TRB to prevent re-triggering",
33297
- "176265": "VMAIN=$80: standard word-access VRAM with sequential auto-increment",
33298
- "176280": "Source bank $7F = extended WRAM (second 64KB bank for sprite staging)",
33299
- "176287": "Trigger DMA channel 0 to execute the sprite tile VRAM transfer"
33300
- };
33301
-
33302
- //#endregion
33303
- //#region db-us/blockNotes.json
33304
- var blockNotes_default$1 = {
33305
- system_core: "Core system loop and CPU interrupt vectors.\n\nContains the SNES reset vector (emulation → native mode switch), COP/NMI/IRQ dispatchers, the full hardware initialization and boot sequence (SystemInit), and the main game loop that orchestrates all per-frame subsystems: VBlank sync, scene management, actor processing, sprite composition, camera scrolling, HUD updates, and display list flushing.\n\nAlso provides three context-specific frame update variants:\n- UpdateFrameDialogue: lightweight update during text/dialogue display\n- UpdateFrameRender: minimal render-only update for menus/transitions\n- UpdateFrameFull: complete subsystem tick during music transitions\n\nThe NMI handler manages all VRAM DMA transfers (scroll registers, tilemap strips, CGRAM, OAM, sprite tiles, event blocks) and handles joypad polling and SPC audio I/O.\n\nUtility routines include scroll register upload with layer priority support, VRAM DMA execution, and WRAM block fill for OAM clearing.",
33306
- camera_scroll: "Camera scroll actor definitions and shared subroutines (Bank 00).\n\nDefines four actor-based camera scroll behaviors used during gameplay and cutscenes. Each scroll actor sets bit 12 ($1000) in the actor status word as a camera-active flag, then computes per-frame scroll deltas using the hardware multiply/divide unit (MulDivide).\n\nThe four scroll modes are:\n- ScrollCameraInit: Initialization mode — aligns camera to tile grid with centering offsets, runs a 3-iteration ramp-up loop computing deltas, saves the initial Y delta, then sets a forced X scroll override (bit 15 set) and clears the normal X delta.\n- ScrollCameraTrack: Continuous tracking — aligns position to tile grid each frame, then recomputes both X and Y scroll deltas via MulDivide.\n- ScrollCameraVertical: Vertical-only tracking — aligns position but only computes the Y axis delta, leaving horizontal scrolling unchanged.\n- ScrollCameraAccumulate: Additive accumulation mode — computes deltas and adds running accumulated offsets from DP $24/$26 to both axes.\n\nShared subroutines:\n- TileAlignCoord: Converts a pixel coordinate to a tile-grid-aligned value by shifting right 4 bits and masking to $0F0F.\n- TileAlignPosition: Applies TileAlignCoord to both X ($14, with −8px centering offset) and Y ($16) parameters.\n- ComputeScrollDeltas: Uses JSL to hardware_math.MulDivide to compute scroll velocity for each axis from the camera target positions and speed parameters.",
33307
- camera_tilemap: "Camera tilemap rendering, VRAM DMA transfer, and scroll stripe management (Bank 02).\n\nImplements the complete pipeline for updating SNES background layer tilemaps in response to camera scrolling. The system manages two BG layers (indexed by X=0 for layer 0, X=2 for layer 1) with independent scroll positions, using a staging buffer at $7E3100 to prepare tilemap data for DMA transfer during V-Blank.\n\nTwo primary modes:\n- CameraFullRefresh: Redraws the entire visible tilemap by iterating all 32 rows, clamping camera to map bounds, rendering each row via RenderScrollRow, and immediately DMA-transferring it to VRAM. Called on scene load or major camera repositioning.\n- CameraSmoothScroll: Per-frame incremental scroll. Deltas are clamped to ±16px per frame for smooth motion. When scrolling crosses a 16px tile boundary (detected by XOR of old/new positions on bit 4), the newly-visible row or column is rendered into the staging buffer for DMA during V-Blank.\n\nThe rendering pipeline (RenderScrollRow, RenderScrollColumn) converts map tile indices to 2×2 VRAM tilemap entries (16×16 metatiles → four 8×8 tiles), handles nametable wrapping via WrapMapIndex, and writes to the staging buffer. FillHorizTilemapSeg and FillVertTilemapSeg are the inner loops that expand metatile indices into VRAM-format tilemap words.\n\nFlushDirtyTilemapStrips is called during V-Blank (NMI) to DMA any staged horizontal and vertical strips to VRAM using DmaHorizontalStrip (64 bytes = one row) and DmaVerticalStrip (128 bytes = one column).\n\nSpriteVramDma handles sprite tile transfers from WRAM $7F to VRAM during V-Blank, with full ($0800 bytes for character form changes) and partial ($0140 bytes for animation frame updates) transfer modes.",
33308
- system_init: "Hardware and system variable initialization for boot sequence.\n\nCalled during SystemInit to prepare all SNES hardware and game state. Contains:\n- UploadCgramPalette: DMA transfer of 256-color palette buffer from WRAM $7F0A00 to CGRAM, plus backdrop color writes to COLDATA fixed-color registers for color math.\n- UploadOamTable: DMA transfer of 544-byte OAM staging buffer ($0422) to PPU OAM.\n- InitSystemVariables: Zeroes all 128KB of WRAM (skipping the stack at $0100-$01FF), then loads initial values from a constant table into designated WRAM addresses.\n- DmaFixedByteFill: Utility for DMA fixed-source byte fills to WRAM.\n- InitHardwareRegisters: Table-driven initialization of all PPU registers ($2100-$213F) and CPU I/O registers ($4200-$420D).\n\nData tables include the system variable initialization constants, PPU register init table, and graphics cache slot indices."
33309
- };
33310
-
33311
- //#endregion
33312
- //#region db-us/partNotes.json
33313
- var partNotes_default$1 = {
33314
- ScrollCameraInit: "Camera initialization scroll actor.\n\nSets bit 12 ($1000) in actor status as a camera-active flag. Subtracts centering offsets (−8px X, −16px Y) from position parameters and aligns both axes to the 16×16 tile grid via TileAlignCoord.\n\nRuns a 3-iteration ramp-up loop (COP LoopInit with count 3) that computes scroll deltas each iteration via ComputeScrollDeltas. After the loop, saves the final Y delta to savedCameraDelta ($0690).\n\nThen sets the actor entry point (COP SetEntryContinue) for per-frame execution, computes deltas one more time, and forces the X scroll by writing cameraDeltaX with bit 15 set to forcedScrollOverride ($06C8). The normal cameraDeltaX is zeroed since the forced override takes precedence.\n\nUsed during scene transitions where the camera needs to snap to a position, ramp up smoothly, then maintain a forced horizontal scroll.",
33315
- ScrollCameraTrack: "Simple continuous camera tracking actor.\n\nSets the camera-active flag, aligns position parameters to the tile grid via TileAlignPosition, then enters a per-frame loop (COP SetEntryContinue). Each frame, both X and Y scroll deltas are recomputed by ComputeScrollDeltas using the current camera targets and speed parameters.\n\nThe simplest scroll mode — used when the camera should smoothly follow the player with no special behavior.",
33316
- ScrollCameraVertical: "Vertical-only camera tracking actor.\n\nSets the camera-active flag and aligns position, then enters a per-frame loop. Each frame, only the Y axis delta is computed via MulDivide: cameraDeltaY = cameraTargetY × speed parameter $16 / scale. The X delta is left unchanged (whatever was set by a previous scroll actor or zero).\n\nThe Y speed parameter at DP $16 is checked first — if zero, the MulDivide call is skipped entirely. Used for cutscenes or areas where only vertical camera movement is needed.",
33317
- ScrollCameraAccumulate: "Accumulative scroll actor that adds running offsets to computed deltas.\n\nSets the camera-active flag and initializes accumulator registers at DP $24 (X accumulator) and $26 (Y accumulator) to zero. Aligns position to the tile grid.\n\nEach frame after SetEntryContinue, computes both scroll deltas via ComputeScrollDeltas, then adds the accumulated offsets: cameraDeltaX += $24 and cameraDeltaY += $26. The accumulators can be set externally by other actors to apply additional camera drift or offset on top of the base scroll tracking.\n\nUsed for scenes with layered camera effects where additional motion is blended with standard tracking.",
33318
- TileAlignCoord: "Converts a pixel coordinate to a tile-grid-aligned value.\n\nSwitches to 8-bit accumulator, shifts right 4 times (divides by 16 — the metatile width), then restores 16-bit mode and masks with $0F0F to isolate valid 4-bit tile indices in both the high and low bytes. The result is transferred to Y for the caller to store.\n\nThe 8-bit shift is key: by operating in 8-bit mode, the LSR operations independently divide the high and low bytes of the 16-bit value, producing two separate 4-bit tile indices packed into a word.",
33319
- TileAlignPosition: "Applies tile-grid alignment to both camera position parameters.\n\nSubtracts 8 pixels from the X position ($14) to center the camera horizontally on the player sprite midpoint before aligning. The Y position ($16) is aligned without any centering offset.\n\nBoth axes are processed through TileAlignCoord, and the aligned results (in Y register) are stored back to their respective DP locations.",
33320
- ComputeScrollDeltas: "Computes scroll velocity for both axes using the hardware multiply/divide unit.\n\nFor each axis: loads the speed parameter ($14 for X, $16 for Y) and camera target position (cameraTargetX $06BE or cameraTargetY $06C2), then calls hardware_math.MulDivide via JSL. The result is stored to cameraDeltaX ($06C0) or cameraDeltaY ($06C4).\n\nIf a speed parameter is zero, the corresponding MulDivide call and delta store are skipped entirely (the axis remains at its previous value). This allows selective axis computation — e.g., ScrollCameraVertical only sets $16 nonzero.",
33321
- CameraFullRefresh: "Full tilemap refresh — redraws the entire visible screen.\n\nClamps camera target positions to map bounds using bitmask clamping (AND with bounds−1). Copies clamped positions to the BG scroll registers ($068A+X for horizontal, $068E+X for vertical) and aligns to the 16px tile grid for rendering origin.\n\nSets up VRAM DMA registers: VMAIN=$81 (word-access, column-mode auto-increment), DMAP0=$01 (two-register), BBAD0=$18 (VRAM data port), source bank=$7E.\n\nIterates 32 rows (full screen height in metatiles): for each row, calls RenderScrollRow to build tilemap data in the staging buffer, then immediately DMA-transfers it via DmaHorizontalStrip. After each row, advances the X position by 16px and wraps against map bounds.\n\nAfter all rows are rendered, clears the four staging buffer VRAM address words to prevent re-triggering, then calls UploadCgramPalette to sync the color palette.\n\nCalled during scene loading and major camera repositioning where the entire tilemap must be rebuilt.",
33322
- CameraSmoothScroll: "Per-frame incremental smooth scrolling for both BG layers.\n\nThree modes based on flags:\n1. Direct mode (scrollModeFlags bit 3): Copies camera targets directly to scroll registers without any smoothing or delta clamping.\n2. Layer 1 priority mode (X≠0 and layerPriorityFlag bit $0400): Copies camera deltas directly to the secondary layer scroll registers (bg1ScrollV and savedCameraDelta).\n3. Normal smooth scroll: For each axis (X then Y):\n a. Computes delta = target − current scroll position\n b. Clamps delta to ±16px maximum per frame for smooth motion\n c. Stores clamped delta (scrollDeltaXClamped/scrollDeltaYClamped)\n d. Applies delta to update the scroll position\n e. XORs old and new positions and tests bit 4 — if this bit changed, the camera crossed a 16px tile boundary\n f. On boundary crossing: calls UpdateScrollColumn (for X) or UpdateScrollRow (for Y) to render the newly-visible tile strip into the staging buffer\n\nThe XOR boundary detection is elegant: bit 4 represents the 16px tile grid alignment, so any change in this bit means a new column or row of tiles has scrolled into view.",
33323
- UpdateScrollRow: "Determines which horizontal row to render when vertical scrolling crosses a tile boundary.\n\nSets $18 to the current horizontal scroll (full X extent for the row). Computes the Y position of the newly-visible row based on scroll direction: if scrolling up (negative delta), uses −16 to get the top screen edge; if scrolling down (positive delta), uses +224 ($00E0) to get the bottom edge (14 tiles × 16px).\n\nThe Y position is added to the current vertical scroll and then wrapped against mapBoundsY via a subtraction loop to handle maps that wrap vertically.\n\nFinally calls RenderScrollColumn to render that row of tiles into the staging buffer for V-Blank DMA.",
33324
- UpdateScrollColumn: "Determines which vertical column to render when horizontal scrolling crosses a tile boundary.\n\nComputes the X position of the newly-visible column based on scroll direction: if scrolling left (negative delta), uses offset 0 (left screen edge); if scrolling right (positive delta), uses +256 ($0100, one nametable width for the right edge).\n\nSets $18 = computed X position, $1C = current vertical scroll, then calls RenderScrollRow to render that column of tiles into the staging buffer.",
33325
- RenderScrollColumn: "Renders a horizontal row of metatiles into the tilemap staging buffer for V-Blank DMA.\n\nComputes the map tile offset from Y position ($1C) using the map row stride and tilemap base address via SignedMultiply. Determines the VRAM tilemap address from the Y-aligned position, accounting for which 32×32 nametable half the position falls in.\n\nSplits rendering into two passes when the row crosses the nametable boundary (X bit 8): assigns VRAM addresses to the staging buffer slots at $06B6+X, placing them in the correct nametable order.\n\nEach pass calls FillHorizTilemapSeg to expand 16 metatile indices into VRAM-format 2×2 tile entries. After the first 16 tiles, advances the map index by one map row, wraps via WrapMapIndex, and renders the second half.\n\nOperates in bank $7E (data bank set via PHB) for direct access to the map and staging buffers.",
33326
- WrapMapIndex: "Wraps a map data index back within valid tilemap bounds.\n\nSubtracts the tilemap base address ($069E+X) and row stride ($069A+X) from the current index. If the result is still positive (carry set), the index has overflowed past the end of the map data — the base is re-added and the check repeats in a loop until the index normalizes.\n\nStores the wrapped index to DP $04 and Y register. Called by both RenderScrollColumn and RenderScrollRow whenever map access indices might exceed the allocated tilemap region.",
33327
- RenderScrollRow: "Renders a vertical column of metatiles into the tilemap staging buffer for V-Blank DMA.\n\nThe most complex rendering routine. Computes the map data offset from tile coordinates using SignedMultiply for the Y component and shift/add for the X component. Handles left/right nametable halves (BIT $0020 on the tile X index) with different VRAM address assignments at $06B2+X staging slots.\n\nFor each nametable half, splits the column into two vertical segments when it crosses the map Y boundary:\n1. First segment: from current Y position to either the bottom of the map or 16 tiles, whichever comes first\n2. Second segment: wraps around to the top of the map for the remaining tiles\n\nEach segment calls FillVertTilemapSeg to expand metatile indices into VRAM-format entries. After both nametable halves, handles the edge case of the last metatile row (checks for map wrapping on the final row boundary).\n\nThe staging buffer entries at $06B2+X contain VRAM destination addresses followed by tilemap data. The staging buffer uses two slots per layer for the two nametable halves.",
33328
- FillHorizTilemapSeg: "Inner loop that expands metatile indices into VRAM tilemap entries for a horizontal strip.\n\nReads $0E consecutive metatile index bytes from map data (pointed to by Y=$04). For each byte: masks to 8 bits, multiplies by 8 (ASL ×3) to index into the tile definition table at $02+offset. Copies 4 words (8 bytes) from the tile definition — the four 8×8 tile entries that compose one 16×16 metatile — into the staging buffer:\n- Words 0,1 → buffer+$02/+$04 (top-left, top-right)\n- Words 2,3 → buffer+$42/+$44 (bottom-left, bottom-right)\n\nThe +$42 offset places the bottom row exactly one VRAM tilemap row (32 entries × 2 bytes = 64 bytes = $40) below the top row. X advances by 4 bytes (2 entries) per metatile.",
33329
- FillVertTilemapSeg: "Inner loop that expands metatile indices into VRAM tilemap entries for a vertical strip.\n\nReads $0E consecutive metatile index bytes from map data, advancing the source Y pointer by $10 (16 bytes = one map row) per iteration to traverse vertically through the map.\n\nFor each metatile byte: masks to 8 bits, multiplies by 8 to index the tile definition table. Copies 4 tile entries to the staging buffer in a column-oriented layout:\n- Words 0,2 → buffer+$02/+$04 (left column, top and bottom)\n- Words 1,3 → buffer+$44/+$46 (right column, top and bottom)\n\nThe +$44 offset places the right column one VRAM tilemap row plus one entry to the right. X advances by 4 bytes per metatile vertically.",
33330
- FlushDirtyTilemapStrips: "V-Blank routine that DMA-transfers all staged tilemap strips to VRAM.\n\nCalled during the NMI handler after scroll updates have been computed. Sets up common DMA registers: VMAIN=$81 (word-access, 32-word increment for column-mode), DMAP0=$01 (two-register), source bank=$7E.\n\nProcesses four staging buffer slots in order:\n1. Horizontal strip 0 ($06B2): DMA via DmaHorizontalStrip — row update for layer 0\n2. Horizontal strip 1 ($06B4): DMA via DmaHorizontalStrip — row update for layer 1\n3. Vertical strip 0 ($06B6): DMA via DmaVerticalStrip — column update for layer 0 (VMAIN switched to $80 for sequential access)\n4. Vertical strip 1 ($06B8): DMA via DmaVerticalStrip — column update for layer 1\n\nEach slot is skipped (BEQ) if its VRAM address word is zero (no pending update). After all transfers, clears all four staging buffer VRAM address words and the related staging areas to prevent re-triggering.",
33331
- DmaHorizontalStrip: "Transfers one horizontal tilemap strip (row) from the staging buffer to VRAM via DMA.\n\nThe staging buffer layout for each strip: [VRAM_addr:u16, data:64_bytes, VRAM_addr:u16, data:64_bytes]. Each half represents one 32×32 nametable.\n\nFirst DMA: Sets VMADDL to the first VRAM address (from Y parameter), sets A1T0L to the staging data pointer (X+2), transfers $40 bytes (64 bytes = 32 tilemap entries = one metatile row).\n\nSecond DMA: Advances the source pointer by $40 bytes to the second nametable half, reads its VRAM address, and transfers another $40 bytes.\n\nThe two transfers cover both nametable halves of a horizontal row.",
33332
- DmaVerticalStrip: "Transfers one vertical tilemap strip (column) from the staging buffer to VRAM via DMA.\n\nSimilar structure to DmaHorizontalStrip but transfers $80 bytes (128 bytes = 64 tilemap entries) per nametable half. The larger size covers a full column height (32 rows × 2 entries per metatile row = 64 entries).\n\nVMAIN must be set to $80 (word-access, increment by 1) by the caller — unlike horizontal strips which use column-mode increment. The second nametable half is at source+$80.",
33333
- SpriteVramDma: "Transfers sprite tile graphics from WRAM to VRAM during V-Blank.\n\nFirst checks $09ED bit 7 — if set, sprite DMA is globally suppressed (returns immediately). Then checks displayModeFlags ($09EC) for bits $31 — if none are set, no sprite update is needed.\n\nThree transfer modes based on flag bits:\n1. Bit 0 (full update): Transfers $0800 bytes (2048 = 128 complete 8×8 tiles) from WRAM $7F0200 to VRAM $7800. Used for character form changes (Will → Freedan → Shadow).\n2. Bits 4-5 (partial update): Transfers $0140 bytes (320 = 40 tiles) from WRAM $7F0280 to VRAM $7840. Used for animation frame updates. If bit 5 is set, it's a single-shot transfer — the flag is cleared after DMA.\n\nAfter transfer, clears the request flags (bits 0,4,5 via TRB with $31) to prevent re-triggering. Sets VMAIN=$80, DMAP0=$01, BBAD0=$18, source bank=$7F, then triggers DMA channel 0.",
33334
- ResetVector: "CPU reset entry point. Disables interrupts, clears carry, switches from 65816 emulation mode to native mode via XCE, then jumps long to SystemInit.",
33335
- CopVector: "COP software interrupt vector. Jumps to the COP dispatch handler which implements the game's scripting command system.",
33336
- NmiVector: "NMI (V-Blank) interrupt vector. Jumps to the NMI handler for per-frame DMA transfers and display updates.",
33337
- IrqVector: "Hardware IRQ vector. Jumps to IrqHandler (currently a stub — hardware IRQs are unused).",
33338
- IrqHandler: "IRQ handler stub. Returns immediately via RTI since no hardware IRQ sources are enabled.",
33339
- SystemInit: "Full system boot sequence and main game loop.\n\nBoot phase:\n1. Sets native 65816 mode with 16-bit registers\n2. Initializes direct page ($0000), stack ($01FF), data bank ($81)\n3. Enables FastROM access speed\n4. Calls hardware register init, system variable init, SPC engine load\n5. Enables display and sets world-ready flag\n6. Checks warmboot signature at $000100 for scene selection\n7. Initializes gameplay defaults: movement speeds, defense, HP, slope curves, ability slots\n8. Sets starting scene to $FB (title screen)\n\nMain loop (infinite):\n1. VBlank wait and joypad read\n2. Scene management and warp/chest checks\n3. Actor AI processing and sprite composition\n4. Camera scrolling for both BG layers\n5. HUD update and display list flush\n6. Enable NMI and loop",
33340
- UpdateFrameDialogue: "Lightweight frame update called during dialogue and text display.\n\nSaves and restores full register context (B, A, X, Y, D) for safe re-entrant calling from within COP script handlers. Runs actor rendering (func_03CCFF variant), OAM termination, sprite composition, camera scrolling, HDMA updates, display sync, and scene tick — but skips the full actor AI pass and warp/chest checks that the main loop performs.\n\nClears bit 3 of displayModeFlags after rendering to signal dialogue frame completion.",
33341
- UpdateFrameRender: "Minimal frame update for render-only contexts such as menus and screen transitions.\n\nSaves full register context. Runs only sprite composition, palette/display processing, HDMA updates, HUD update, VBlank sync, and scene tick. Does not run actor AI, camera scrolling, or OAM termination — assumes those are handled by the caller's context.",
33342
- UpdateFrameFull: "Complete single-frame update used during music transitions.\n\nRuns all subsystems including VBlank partial wait, scene tick, actor AI (func_03CD6E variant), OAM termination, sprite composition, camera scrolling for both BG layers, HDMA updates, and display list processing. Called from within the NMI handler when musicTransitionState is positive, allowing visual animation to continue during music fade sequences.",
33343
- UpdateHUD: "Manages the in-game heads-up display for HP, gems, and enemy health.\n\nFirst checks $09ED bit 6 (HUD suppression flag) — returns immediately if set.\n\nHP recovery animation:\n- Skipped if secondary lock ($09AF bit 1) is set or not on an 8-frame boundary\n- Decrements damageFlashTimer and increments displayed HP (playerHp) toward max (playerMaxHp)\n- Plays sound effect $0D on each recovery tick\n- Stops when current HP equals max HP\n\nStat display update:\n- Compares current HP, max HP, and gem count against cached values\n- If any changed: sets VRAM dirty flag (bit 4), converts gem count to decimal via repeated /100, redraws stat counters via BG3 script\n\nEnemy health display:\n- When enemyHpPending is nonzero, sets display timer and redraws\n- Timer chain: 25 frames (display) → 60 frames (hold) → 30 frames (fadeout) → clear\n\nFinally caches all stat values for next-frame dirty detection and restores the original status bar visibility flag.",
33344
- UpdateFrameCounters: "Per-frame timer maintenance subroutine (called via JSR from main loop).\n\nDecrements the invincibility timer if it's non-negative (bit 15 clear = active). Increments the global frame timer, capping it at $0100 to prevent overflow. Both operations use 16-bit mode.",
33345
- NmiHandler: "V-Blank interrupt handler — the critical per-frame DMA orchestration routine.\n\nExecution order during V-Blank:\n1. Save registers and set data bank to $81\n2. Disable HDMA to prevent bus conflicts\n3. Upload scroll registers to PPU\n4. DMA tilemap strip updates (dirty column/row data)\n5. DMA CGRAM palette (512 bytes from $7F0A00)\n6. DMA OAM table (544 bytes from $0422)\n7. DMA sprite VRAM tiles\n8. Configure VRAM DMA mode ($80 word-access, $18 target, $01 two-reg)\n9. Conditional: full tilemap DMA or skip based on displayModeFlags bit 3\n10. Execute queued VRAM writes and pending DMA\n11. Re-enable HDMA channels\n12. Poll joypad (spin-wait for auto-read completion)\n13. Handle music transition state (run full frame update if fading)\n14. Send audio commands to SPC on alternate frames\n15. Increment frame parity counter and restore registers",
33346
- UploadScrollRegisters: "Writes BG1 and BG2 scroll positions to PPU hardware registers.\n\nTwo modes based on scrollModeFlags bit 3:\n- Normal mode: Uses WriteBgScroll with indexed layer data. Respects layerPriorityFlag — when negative, swaps the order BG1/BG2 are written to handle layer priority changes.\n- Direct mode (bit 3 set): Writes bg1ScrollH/bg2ScrollH directly to BG1HOFS/BG1VOFS registers, masking high bytes to 7 bits.",
33347
- WriteBgScroll: "Writes horizontal and vertical scroll values for one background layer.\n\nX index selects the scroll data source (0=BG1, 2=BG2). Y index selects the PPU register target.\n\nFor each axis (H and V), checks an override flag at $06C7+X / $06CB+X:\n- If negative (bit 7 set): uses the scroll override value instead of normal scroll\n- If positive: uses the standard scroll position\n\nHigh bytes are masked to 2 bits (10-bit scroll position for Mode 1 backgrounds).",
33348
- ExecuteVramDma: "Executes a single VRAM DMA transfer using pre-staged parameters.\n\nReads transfer parameters from direct page:\n- $00B2: byte count (0 = skip)\n- $00B0: VRAM destination address\n- $00AC-$00AE: ROM/RAM source address (16-bit + bank)\n\nTriggers DMA channel 0 and clears the byte count to prevent re-triggering.",
33349
- FillWramBlock: "Fills the OAM staging buffer at WRAM $0422 with the byte value $E0 via DMA.\n\nUses DMA fixed-source mode ($08) to repeat a single byte across 512 bytes of the OAM buffer. The fill value $E0 sets all sprite Y positions to 224 (off the bottom of the visible 224-line display), effectively hiding all OAM entries before sprite composition begins each frame.\n\nTarget: WRAM data port ($2180), size: $0200 (512 bytes = 128 OAM entries × 4 bytes).",
33350
- WramFillConstant: "Single-byte constant ($E0) used as the fixed DMA source for OAM buffer clearing. Value $E0 = 224 decimal places sprites at the bottom screen edge (offscreen in 224-line mode).",
33351
- UploadCgramPalette: "Transfers the full 256-color palette from WRAM buffer to CGRAM via DMA.\n\nDMA setup: CGADD=0 (start at palette 0), source=$7F0A00, size=512 bytes, target=CGRAM data register ($2122), mode=single-register increment.\n\nAfter the bulk DMA, separately writes the three backdrop color components from $7F0C00-$7F0C02 to the COLDATA fixed-color register ($2132). These control the backdrop/screen color used by the SNES color math hardware for subscreen blending.",
33352
- UploadOamTable: "Transfers the 544-byte OAM staging buffer to the PPU's Object Attribute Memory via DMA.\n\nDMA setup: OAM address=0 (first entry), source=$0422, size=$0220 (544 bytes: 512 main table + 32 high-table bytes), target=OAM data register ($2104), mode=single-register increment.",
33353
- InitSystemVariables: "Zeroes all 128KB of WRAM then loads initial values from a constant table.\n\nWRAM clear sequence:\n1. Fill $0100 bytes from $0000 (direct page area)\n2. Skip $0100-$01FF (stack — must not be zeroed while in use)\n3. Fill $FF00 bytes from $0200 (first WRAM bank remainder)\n4. Fill $FF00 bytes (second WRAM bank)\nTotal: $1FF00 bytes = 128KB minus 256-byte stack area.\n\nThen iterates the system_init_constants table, loading each 4-byte entry (destination address + 16-bit value) and storing to WRAM until a negative address sentinel is reached.",
33354
- SystemInitConstants: "Initialization constant table loaded during system boot.\n\nEach 4-byte entry: [destination_addr:u16, value:u16]. Terminated by a negative address.\n\nSets up critical system variables including: VRAM layout addresses, BG tilemap/charset pointers, DMA channel defaults, actor system base addresses, scene metadata pointer, input configuration, and various engine parameters.",
33355
- DmaFixedByteFill: "DMA utility that fills a WRAM region with a fixed zero byte.\n\nUses DMA mode $08 (fixed source address) to repeatedly write a zero byte from ROM to WRAM via the WRAM data port ($2180). The byte count is passed in Y. Called by InitSystemVariables to bulk-clear WRAM during boot.",
33356
- InitHardwareRegisters: "Table-driven initialization of PPU and CPU I/O registers.\n\nIterates the ppu_register_init_table, reading 3-byte entries: [register_addr:u16, value:u8]. Writes each value to the corresponding hardware register. Table is terminated by a negative address sentinel.\n\nCovers all PPU registers ($2100-$2133): display brightness, OBJ settings, BG mode, tilemap/charset addresses, window masks, color math, and screen designation. Also initializes CPU I/O registers ($4200-$420D): NMI/IRQ enables, H/V timer, DMA/HDMA channels.",
33357
- CacheSlotIndices: "Pre-initialized 4-entry cache slot index array (values: 0, 1, 2, 3). Used by the graphics tile cache system to track VRAM cache slot assignments.",
33358
- PpuRegisterInitTable: "Hardware register initialization table for system boot.\n\nEach 3-byte entry contains: [register_address:u16, value:u8]. Covers:\n- PPU registers $2100-$2133: display mode, BG configuration, window masks, color math, mosaic, scroll initial values\n- CPU I/O registers $4200-$420D: interrupt enables, H/V count targets, DMA channel defaults\n\nTerminated by a negative address sentinel. Total: 76 entries."
33359
- };
33360
-
33361
32407
  //#endregion
33362
32408
  //#region db-us/types.json
33363
32409
  var types_default = {
@@ -33378,24 +32424,44 @@ var types_default = {
33378
32424
  "171653": "wram-init",
33379
32425
  "171854": "Binary",
33380
32426
  "171866": "register-init",
33381
- "172393": "WideString",
32427
+ "172393": "DialogString",
33382
32428
  "177532": "&Code",
33383
32429
  "181319": "&Code",
33384
32430
  "190395": "screen-pos",
33385
32431
  "191029": "Byte",
33386
32432
  "191152": "screen-pos",
33387
32433
  "191366": "screen-pos",
32434
+ "230358": "Word",
32435
+ "230463": "&Code",
32436
+ "231133": "Code",
32437
+ "231411": "Code",
32438
+ "231935": "DialogString",
32439
+ "231958": "Code",
33388
32440
  "238851": "&Binary",
32441
+ "239922": "Binary",
32442
+ "239929": "Binary",
32443
+ "247873": "Binary",
32444
+ "250149": "Byte",
32445
+ "251053": "&Code",
32446
+ "251484": "&Code",
32447
+ "253706": "Word",
32448
+ "254659": "&Code",
32449
+ "255023": "Binary",
32450
+ "255182": "Word",
32451
+ "256652": "&Code",
32452
+ "258335": "Binary",
32453
+ "258423": "&Binary",
33389
32454
  "391099": "spawn-trigger",
33390
32455
  "446125": "actor-def",
33391
32456
  "492088": "camera-keyframe",
33392
32457
  "505333": "Byte",
33393
- "505338": "WideString",
32458
+ "505338": "DialogString",
33394
32459
  "563368": "spawn-trigger",
33395
32460
  "575164": "zone-trigger",
33396
32461
  "588266": "Binary",
33397
32462
  "626558": "Code",
33398
32463
  "688812": "Code",
32464
+ "693843": "actor-def",
33399
32465
  "698159": "Byte",
33400
32466
  "698192": "Code",
33401
32467
  "700776": "Code",
@@ -33555,7 +32621,7 @@ var blocks_default = {
33555
32621
  "string_templates": { "parts": { "string_templates": {
33556
32622
  "start": 117373,
33557
32623
  "end": 117655,
33558
- "type": "&WideString"
32624
+ "type": "&DialogString"
33559
32625
  } } },
33560
32626
  "music_array": { "parts": { "music_array": {
33561
32627
  "start": 117655,
@@ -33637,10 +32703,10 @@ var blocks_default = {
33637
32703
  "end": 231755,
33638
32704
  "type": "Code"
33639
32705
  },
33640
- "widestring_03894B": {
32706
+ "dialogstring_03894B": {
33641
32707
  "start": 231755,
33642
32708
  "end": 231777,
33643
- "type": "WideString"
32709
+ "type": "DialogString"
33644
32710
  },
33645
32711
  "code_038961": {
33646
32712
  "start": 231777,
@@ -33674,10 +32740,10 @@ var blocks_default = {
33674
32740
  "end": 634433,
33675
32741
  "type": "actor_def"
33676
32742
  },
33677
- "widestring_09AE41": {
32743
+ "dialogstring_09AE41": {
33678
32744
  "start": 634433,
33679
32745
  "end": 645328,
33680
- "type": "WideString"
32746
+ "type": "DialogString"
33681
32747
  }
33682
32748
  } },
33683
32749
  "chunk_0A8000": { "parts": { "actor_def_0A8000": {
@@ -55524,7 +54590,7 @@ var rewrites_default = {};
55524
54590
  //#endregion
55525
54591
  //#region db-jp/stringTypes.json
55526
54592
  var stringTypes_default = {
55527
- ASCIIString: {
54593
+ ConsoleString: {
55528
54594
  "delimiter": "|",
55529
54595
  "terminator": 0,
55530
54596
  "layers": [{ "map": [
@@ -55861,7 +54927,7 @@ var stringTypes_default = {
55861
54927
  }
55862
54928
  }
55863
54929
  },
55864
- WideString: {
54930
+ DialogString: {
55865
54931
  "delimiter": "`",
55866
54932
  "terminator": 204,
55867
54933
  "layers": [{
@@ -56934,7 +56000,7 @@ var stringTypes_default = {
56934
56000
  //#region db-jp/structs.json
56935
56001
  var structs_default = { map_name: {
56936
56002
  "delimiter": 0,
56937
- "types": ["Byte", "&WideString"]
56003
+ "types": ["Byte", "&DialogString"]
56938
56004
  } };
56939
56005
 
56940
56006
  //#endregion
@@ -56945,21 +56011,33 @@ var transforms_default = {};
56945
56011
  //#region db-jp/names.json
56946
56012
  var names_default = {};
56947
56013
 
56948
- //#endregion
56949
- //#region db-jp/comments.json
56950
- var comments_default = {};
56951
-
56952
- //#endregion
56953
- //#region db-jp/blockNotes.json
56954
- var blockNotes_default = {};
56955
-
56956
- //#endregion
56957
- //#region db-jp/partNotes.json
56958
- var partNotes_default = {};
56959
-
56960
56014
  //#endregion
56961
56015
  //#region src/index.ts
56962
56016
  const __pkgRoot = join(dirname(fileURLToPath(import.meta.url)), "..");
56017
+ function loadNotesDir(subdir) {
56018
+ const dir = join(__pkgRoot, "notes", subdir);
56019
+ if (!existsSync(dir)) return {};
56020
+ const merged = {};
56021
+ for (const file of readdirSync(dir)) {
56022
+ if (!file.endsWith(".json")) continue;
56023
+ const data = JSON.parse(readFileSync(join(dir, file), "utf-8"));
56024
+ Object.assign(merged, data);
56025
+ }
56026
+ return merged;
56027
+ }
56028
+ function loadLocalNotes() {
56029
+ if (!existsSync(join(__pkgRoot, "notes"))) return {
56030
+ comments: {},
56031
+ blockNotes: {},
56032
+ partNotes: {}
56033
+ };
56034
+ return {
56035
+ comments: loadNotesDir("comments"),
56036
+ blockNotes: loadNotesDir("blockNotes"),
56037
+ partNotes: loadNotesDir("partNotes")
56038
+ };
56039
+ }
56040
+ const localNotes = loadLocalNotes();
56963
56041
  const db = {
56964
56042
  mnemonics: {
56965
56043
  ...snes.vectors,
@@ -56981,9 +56059,9 @@ const db = {
56981
56059
  headers: snes.headers,
56982
56060
  names: names_default$1,
56983
56061
  types: types_default,
56984
- comments: comments_default$1,
56985
- blockNotes: blockNotes_default$1,
56986
- partNotes: partNotes_default$1
56062
+ comments: localNotes.comments,
56063
+ blockNotes: localNotes.blockNotes,
56064
+ partNotes: localNotes.partNotes
56987
56065
  };
56988
56066
  const jp = {
56989
56067
  mnemonics: {
@@ -57007,15 +56085,13 @@ const jp = {
57007
56085
  fileTypes: fileTypes_default,
57008
56086
  addrModes: snes.addressingModes,
57009
56087
  headers: snes.headers,
57010
- names: names_default,
57011
- comments: comments_default,
57012
- blockNotes: blockNotes_default,
57013
- partNotes: partNotes_default
56088
+ names: names_default
57014
56089
  };
57015
- async function extract(romPath, outPath) {
56090
+ async function extract(romPath, outPath, options) {
57016
56091
  if (!romPath) romPath = process.env.ROM_PATH;
57017
56092
  if (!outPath) outPath = "./extracted";
57018
56093
  var dbRoot = DbRootUtils.fromGameModule(db);
56094
+ if (options?.includes("linetracking")) dbRoot.config.emitLineTracking = true;
57019
56095
  await DbRootUtils.extractAllContent(dbRoot, romPath, outPath);
57020
56096
  }
57021
56097
  async function extractJP(romPath, outPath) {
@@ -57024,7 +56100,7 @@ async function extractJP(romPath, outPath) {
57024
56100
  var dbRoot = DbRootUtils.fromGameModule(jp);
57025
56101
  await DbRootUtils.extractAllContent(dbRoot, romPath, outPath);
57026
56102
  }
57027
- async function rebuild(inPath, outPath, baseRomPath, modulePaths) {
56103
+ async function rebuild(inPath, outPath, baseRomPath, modulePaths, options) {
57028
56104
  if (!inPath) inPath = "./extracted";
57029
56105
  if (!outPath) outPath = `./rebuilt/${process.env.ROM_NAME ?? "Illusion of Gaia - Rebuilt"}.smc`;
57030
56106
  if (!baseRomPath) baseRomPath = join(__pkgRoot, "baserom");
@@ -57034,20 +56110,29 @@ async function rebuild(inPath, outPath, baseRomPath, modulePaths) {
57034
56110
  baseRomPath,
57035
56111
  ...modulePaths || []
57036
56112
  ], outPath);
57037
- const artifactPath = "./artifacts";
57038
- const fileLayoutArtifact = outData.files.filter((file) => file.size > 0).sort((a, b) => a.location - b.location).map((file) => {
57039
- return ` "${file.location.toString(16).toUpperCase().padStart(6, "0")}" : "${file.name}"`;
57040
- });
57041
- const fileLayoutArtifactText = `{${RomProcessingConstants.NEWLINE}${fileLayoutArtifact.join("," + RomProcessingConstants.NEWLINE)}${RomProcessingConstants.NEWLINE}}`;
57042
- await saveFileAsText(join(artifactPath, "file-layout.json"), fileLayoutArtifactText);
57043
- const masterArtifact = Object.entries(outData.masterLookup).filter((entry) => !entry[0].match(/[!+-]$/)).sort((a, b) => a[1].location - b[1].location).map((entry) => {
57044
- return ` "${entry[0]}": "${entry[1].location.toString(16).toUpperCase().padStart(6, "0")}"`;
57045
- });
57046
- const masterArtifactText = `{${RomProcessingConstants.NEWLINE}${masterArtifact.join("," + RomProcessingConstants.NEWLINE)}${RomProcessingConstants.NEWLINE}}`;
57047
- await saveFileAsText(join(artifactPath, "master-lookup.json"), masterArtifactText);
57048
- const crc = crc32_buffer(outData.romData);
57049
- const crcText = (crc < 0 ? crc >>> 0 : crc).toString(16).toUpperCase().padStart(8, "0");
57050
- await saveFileAsText(join(artifactPath, "crc.txt"), crcText);
56113
+ if (options?.includes("artifacts")) {
56114
+ console.log("Generating artifacts...");
56115
+ const artifactPath = "./artifacts";
56116
+ let totalSize = 0;
56117
+ const fileLayoutArtifact = outData.files.filter((file) => file.size > 0).sort((a, b) => a.location - b.location).map((file) => {
56118
+ totalSize += file.size;
56119
+ return ` "${file.location.toString(16).toUpperCase().padStart(6, "0")}" : "${file.name}"`;
56120
+ });
56121
+ const fileLayoutArtifactText = `{${RomProcessingConstants.NEWLINE}${fileLayoutArtifact.join("," + RomProcessingConstants.NEWLINE)}${RomProcessingConstants.NEWLINE}}`;
56122
+ await saveFileAsText(join(artifactPath, "file-layout.json"), fileLayoutArtifactText);
56123
+ const masterArtifact = Object.entries(outData.masterLookup).filter((entry) => !entry[0].match(/[!+-]$/)).sort((a, b) => a[1].location - b[1].location).map((entry) => {
56124
+ return ` "${entry[0]}": "${entry[1].location.toString(16).toUpperCase().padStart(6, "0")}"`;
56125
+ });
56126
+ const masterArtifactText = `{${RomProcessingConstants.NEWLINE}${masterArtifact.join("," + RomProcessingConstants.NEWLINE)}${RomProcessingConstants.NEWLINE}}`;
56127
+ await saveFileAsText(join(artifactPath, "master-lookup.json"), masterArtifactText);
56128
+ const crc = crc32_buffer(outData.romData);
56129
+ const crcText = JSON.stringify({
56130
+ checksum: outData.header.checksum,
56131
+ crc,
56132
+ totalSize
56133
+ }, null, 2);
56134
+ await saveFileAsText(join(artifactPath, "crc.json"), crcText);
56135
+ }
57051
56136
  }
57052
56137
  async function rebuildJp(inPath, outPath, baseRomPath, modulePaths) {
57053
56138
  if (!inPath) inPath = "./extracted-jp";
@@ -57063,6 +56148,15 @@ async function rebuildJp(inPath, outPath, baseRomPath, modulePaths) {
57063
56148
  if (resolve(process.argv[1] || "") === fileURLToPath(import.meta.url)) {
57064
56149
  const command = process.argv[2];
57065
56150
  const args = process.argv.slice(3);
56151
+ const flags = [];
56152
+ for (let index = 0; index < args.length; index++) {
56153
+ const arg = args[index];
56154
+ if (arg.startsWith("--")) {
56155
+ flags.push(arg.slice(2).toLowerCase());
56156
+ args.splice(index, 1);
56157
+ index--;
56158
+ }
56159
+ }
57066
56160
  (async () => {
57067
56161
  try {
57068
56162
  switch (command) {
@@ -57070,7 +56164,7 @@ if (resolve(process.argv[1] || "") === fileURLToPath(import.meta.url)) {
57070
56164
  console.log("Starting ROM extraction...");
57071
56165
  console.log("ROM Path:", args[0]);
57072
56166
  console.log("Output Path:", args[1] || "../extracted");
57073
- await extract(args[0], args[1]);
56167
+ await extract(args[0], args[1], flags);
57074
56168
  console.log("ROM extraction completed successfully!");
57075
56169
  break;
57076
56170
  case "extract-jp":
@@ -57082,7 +56176,7 @@ if (resolve(process.argv[1] || "") === fileURLToPath(import.meta.url)) {
57082
56176
  break;
57083
56177
  case "rebuild":
57084
56178
  console.log("Starting ROM rebuild...");
57085
- await rebuild(args[0], args[1], args[2]);
56179
+ await rebuild(args[0], args[1], args[2], void 0, flags);
57086
56180
  console.log("ROM rebuild completed successfully!");
57087
56181
  break;
57088
56182
  case "rebuild-jp":