Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 | 1x 1x 1x 1x 23x 1x 1x 131x 1x 1x | import flatten from "lodash/flatten"; import uniq from "lodash/uniq"; import l10n from "shared/lib/lang/l10n"; type EngineChange = { version: string; description: string; modifiedFiles: string[]; }; const createDescription = (shortDesc: string, features: string[]): string => `${shortDesc}:\n` + features.map((feature) => ` * ${feature}`).join("\n"); const changes: EngineChange[] = [ { version: "3.0.0-e0", description: "Complete engine rewrite based around GBVM:\n" + " * Support for metasprites\n" + " * Parallax backgrounds\n" + " * hUGEDriver music engine\n" + " * Variable width fonts\n" + " * Super GB borders\n" + " * GBVM scripting language\n" + " * Much more!", modifiedFiles: ["All of them (sorry)"], }, { version: "3.0.1-e0", description: "Bug fixes and preperation for GBDK-2020 v4.0.6:\n" + " * Fixed issue where input scripts could be trigger while VM is locked\n" + " * Allowed input scripts to optionally prevent default button actions\n" + " * Moved engine field defines into a single state_defines.h file\n" + " * Switched SDCC features to use macros in preparation for new GBDK", modifiedFiles: ["All..."], }, { version: "3.0.2-e0", description: "Bug fixes and crash handler:\n" + " * Added crash handler screen\n" + " * Text control code 0x09 added to skip characters without waiting\n" + " * Allow tilesets with zero length\n" + " * Fix issue where VM_LOCK was not affecting context switching\n" + " * Optimised input script checks", modifiedFiles: [ "src/core/crash_handler.s", "src/core/data_manager.c", "src/core/events.c", "src/core/ui.c", "src/core/vm.c", ], }, { version: "3.0.2-e1", description: "Bug fixes:\n" + " * Hide sprites when overlay is fullscreen\n" + ' * Make sequences of control codes in strings "instant"', modifiedFiles: [ "src/core/actor.s", "src/core/interrupts.c", "src/core/ui.c", ], }, { version: "3.0.2-e2", description: "Bug fixes:\n" + " * Don't prevent jumping when overlapping actor in platform scenes", modifiedFiles: ["src/states/platform.c"], }, { version: "3.0.3-e0", description: "Updates:\n" + " * Update to latest hUGEDriver\n" + " * Add engine support for text sounds\n" + " * Save executing ctxs when saving game data\n" + " * Improve GBA detection\n" + " * Fix scroll jitter seen in top-down scenes", modifiedFiles: [ "include/input.h", "include/ui.h", "include/vm.h", "include/vm.i", "include/vm_ui.h", "lib/hUGEDriver.lib", "src/core/core.c", "src/core/input.c", "src/core/interrupts.c", "src/core/load_save.c", "src/core/ui.c", "src/core/vm.c", "src/core/vm_instructions.c", "src/core/vm_ui.c", ], }, { version: "3.0.3-e1", description: "Updates:\n" + " * Avoid rendering garbage when no scene has loaded yet\n" + " * use GBDK-2020 hardware sprite hiding function\n" + " * Move save blob signature to game data", modifiedFiles: [ "include/actor.h", "include/oam_utils.h", "include/shadow.h", "src/core/actor.c", "src/core/data_manager.c", "src/core/interrupts.c", "src/core/load_save.c", "src/core/oam_utils.s", ], }, { version: "3.0.3-e2", description: "Updates:\n" + " * Fix logic hiding actors behind overlay\n" + " * Fix VM_OVERLAY_HIDE\n" + " * Remove optional macro args from sound instructions", modifiedFiles: ["include/vm.i", "src/core/interrupts.c"], }, { version: "3.0.3-e3", description: "Updates:\n" + " * Fix issue where vertical parallax could write over tiles\n" + " * Merged sprites hide/show into single instruction\n" + " * Merged fade in/out into single instruction", modifiedFiles: [ "include/vm.i", "include/vm_gameboy.h", "src/core/scroll.c", "src/core/vm_gameboy.c", "src/core/vm_instructions.c", ], }, { version: "3.0.3-e4", description: "Updates:\n" + " * Allow reserving sprite tiles per scene for player\n" + " * Renamed exclusive_sprite to reserve_tiles", modifiedFiles: ["include/gbs_types.i", "src/core/data_manager.c"], }, { version: "3.1.0-e0", description: "Updates:\n" + " * Store RNG seed in saved data\n" + " * Add support for VM_SWITCH instruction", modifiedFiles: [ "include/vm.h", "include/vm.i", "src/core/load_save.c", "src/core/vm.c", "src/core/vm_instructions.c", ], }, { version: "3.1.0-e1", description: "Updates:\n" + " * Fix vertical shoot em up scene type\n" + " * Improved randomize\n" + " * Add VM_LOAD_TILESET and VM_OVERLAY_SET_MAP", modifiedFiles: [ "include/vm.i", "include/vm_gameboy.h", "include/vm_ui.h", "src/core/vm_gameboy.c", "src/core/vm_instructions.c", "src/core/vm_ui.c", "src/states/shmup.c", ], }, { version: "3.1.0-e2", description: "Updates:\n" + " * Add VM_ACTOR_MOVE_CANCEL\n" + " * Update hUGEDriver\n" + " * Fix issue where activating an actor wouldn't trigger update script", modifiedFiles: [ "include/gbs_types.h", "include/hUGEDriver.h", "include/hUGEDriverRoutines.h", "include/vm.i", "include/vm_actor.h", "lib/hUGEDriver.lib", "src/core/music_manager.c", "src/core/vm.c", "src/core/vm_actor.c", "src/core/vm_instructions.c", ], }, { version: "3.1.0-e3", description: "Updates:\n" + " * Add disabled flag to actors\n" + " * Manually deactivating an actor will disable it preventing it from activating when coming back onscreen\n" + " * Manually activating an actor will enable it again", modifiedFiles: [ "include/gbs_types.h", "src/core/actor.c", "src/core/data_manager.c", "src/core/vm_actor.c", ], }, { version: "3.1.0-e4", description: "Updates:\n" + " * Fix bug where disabling the player would trigger rendering garbage\n" + " * Remove unused spritesheet_0 header include in projectiles", modifiedFiles: [ "src/core/actor.c", "src/core/projectiles.c", "src/core/vm_actor.c", ], }, { version: "3.1.0-e5", description: "Updates:\n" + " * Update hUGEDriver.lib\n" + " * unify types in far_ptr_t and TO_FAR_PTR_T\n" + " * add .R_REF_SET macro for VM_RPN instruction to set by reference\n" + " * VM_OVERLAY_SET_SUBMAP and VM_OVERLAY_SET_MAP now accept X and Y coordinates from variables\n" + " * remove useless VM_GET_SYSTIME, use VM_GET_INT16 instead\n" + " * move ___sdcc_bcall_ehl trampoline to 0x0008, add ph rule that replace CALL with RST which save 2 bytes and 2 cycles each call\n" + " * new overlay_priority field that allow set priority CGB attributes bit for the UI by default and thus partially hide actors behind the partially visible window layer\n" + " * replace VM_LOAD_FRAME and VM_LOAD_CURSOR with universal VM_LOAD_TILES", modifiedFiles: [ "include/bankdata.h", "include/hUGEDriver.h", "include/music_manager.h", "include/sample_player.h", "include/sfx_player.h", "include/ui.h", "include/vm.h", "include/vm.i", "include/vm_gameboy.h", "include/vm_music.h", "include/vm_ui.h", "lib/hUGEDriver.lib", "src/core/___sdcc_bcall_ehl.s", "src/core/actor.c", "src/core/core.c", "src/core/data_manager.c", "src/core/interrupt_timer.s", "src/core/music_manager.c", "src/core/sample_player.c", "src/core/sfx_player.c", "src/core/ui.c", "src/core/vm.c", "src/core/vm_gameboy.c", "src/core/vm_instructions.c", "src/core/vm_music.c", "src/core/vm_ui.c", ], }, { version: "3.1.0-e6", description: "Updates:\n" + [ " * Add support for sound effects priority", " * Fix issue where soft reset could lead to UI tiles over scene tiles", ].join("\n"), modifiedFiles: [ "include/music_manager.h", "include/sfx_player.h", "include/vm.i", "include/vm_music.h", "src/core/data_manager.c", "src/core/music_manager.c", "src/core/sfx_player.c", "src/core/ui.c", "src/core/vm_instructions.c", "src/core/vm_music.c", ], }, { version: "3.1.0-e7", description: "Updates:\n" + [ " * Update hUGEDriver.lib", " * Fix issue where projectiles launched at >224 degrees would be facing in wrong direction", " * Allow overflowing of background tiles into UI", " * Free space used in bank 2", " * Remove 255 variable limit in VM_SAVE_PEEK", " * Save rumble state while switching SRAM banks", " * Update flasher for compatibility with GBDK-2020 v4.1", " * Add .UI_MENU_SET_START flag for VM_CHOICE to set starting menu item", " * Fix VM_OVERLAY_SET_SUBMAP on CGB", " * Add boolean show_actors_on_overlay to draw actors over overlay layer", " * Restore previously playing music when loading game data", ].join("\n"), modifiedFiles: [ "include/interrupts.h", "include/load_save.h", "include/music_manager.h", "include/rtc.h", "include/system.h", "include/trigger.h", "include/ui.h", "include/vm.h", "include/vm.i", "include/vm_load_save.h", "include/vm_ui.h", "lib/hUGEDriver.lib", "src/core/actor.c", "src/core/bankdata.c", "src/core/data_manager.c", "src/core/flasher.c", "src/core/flasher_s.s", "src/core/interrupts.c", "src/core/load_save.c", "src/core/music_manager.c", "src/core/projectiles.c", "src/core/set_tile_submap.s", "src/core/states_caller.s", "src/core/system.c", "src/core/trigger.c", "src/core/ui.c", "src/core/ui_a.s", "src/core/vm.c", "src/core/vm_gameboy.c", "src/core/vm_instructions.c", "src/core/vm_load_save.c", "src/core/vm_music.c", "src/core/vm_ui.c", ], }, { version: "3.1.0-e8", description: "Updates:\n" + [ " * Add GB Printer support", " * Add instruction VM_CALL_NATIVE to call native C functions from script", " * Fix issue where actors would play idle animation during scripted movement", " * Remove unnecessary additional re-triggering of ch3 in the SFX engine", ].join("\n"), modifiedFiles: [ "include/gbprinter.h", "include/ui.h", "include/vm.h", "include/vm.i", "include/vm_gbprinter.h", "include/vm_ui.h", "src/core/gbprinter.c", "src/core/sfx_player.c", "src/core/ui.c", "src/core/vm.c", "src/core/vm_actor.c", "src/core/vm_gbprinter.c", "src/core/vm_instructions.c", "src/core/vm_ui.c", ], }, { version: "3.1.0-e9", description: "Updates:\n" + [ " * Fix an issue where fading out mid-scene would cause game to hang", ].join("\n"), modifiedFiles: [ "src/core/fade_manager.c", "src/core/interrupts.c", "src/core/scroll.c", "src/core/vm.c", "src/states/topdown.c", ], }, { version: "3.1.0-e10", description: "Updates:\n" + [ " * Add support for persistent actors that won't unload when offscreen", " * Add support for projectiles that survive multiple collisions", " * Add support for projectiles that only play animation once", ' * Disable margin after printing, that allows to printing "endless" pictures', " * Optimise actors_update() function", " * Optimise vm_actor_move_to() function", ].join("\n"), modifiedFiles: [ "include/gbs_types.h", "include/projectiles.h", "include/vm.h", "include/vm.i", "src/core/actor.c", "src/core/gbprinter.c", "src/core/projectiles.c", "src/core/vm.c", "src/core/vm_actor.c", "src/core/vm_camera.c", "src/core/vm_projectiles.c", ], }, { version: "3.1.0-e11", description: "Updates:\n" + [ " * Fix issue where actors would switch direction at last frame of vm_actor_move_to", " * Moved all actor flags instructions into single VM_ACTOR_SET_FLAGS with macros for compatibility with old instructions", " * Tidied actor and camera manipulation structs", ].join("\n"), modifiedFiles: [ "include/actor.h", "include/vm.i", "include/vm_actor.h", "src/core/vm_actor.c", "src/core/vm_camera.c", "src/core/vm_instructions.c", ], }, { version: "3.1.0-e12", description: "Updates:\n" + [ " * Allow VM instructions to be stored outside of bank 2 as we were running out of space", " * Add VM_PROJECTILE_LOAD_TYPE instruction to replace projectile def in current scene", " * Fix issue with VM_SET_FONT not correctly updating vwf_current_font_idx value", ].join("\n"), modifiedFiles: [ "include/bankdata.h", "include/data_manager.h", "include/load_save.h", "include/ui.h", "include/vm.h", "include/vm.i", "include/vm_actor.h", "include/vm_camera.h", "include/vm_gameboy.h", "include/vm_gbprinter.h", "include/vm_load_save.h", "include/vm_math.h", "include/vm_music.h", "include/vm_palette.h", "include/vm_projectiles.h", "include/vm_rtc.h", "include/vm_scene.h", "include/vm_sgb.h", "include/vm_sio.h", "include/vm_ui.h", "src/core/bankdata.c", "src/core/data_manager.c", "src/core/vm.c", "src/core/vm_actor.c", "src/core/vm_camera.c", "src/core/vm_gameboy.c", "src/core/vm_gbprinter.c", "src/core/vm_instructions.c", "src/core/vm_load_save.c", "src/core/vm_math.c", "src/core/vm_music.c", "src/core/vm_palette.c", "src/core/vm_projectiles.c", "src/core/vm_rtc.c", "src/core/vm_scene.c", "src/core/vm_sgb.c", "src/core/vm_sio.c", "src/core/vm_ui.c", ], }, { version: "3.1.0-e13", description: "Updates\n" + [ " * Update most files to be autobanked allowing tighter packed and smaller ROMs", ].join("\n"), modifiedFiles: [ "include/actor.h", "src/core/actor.c", "src/core/camera.c", "src/core/core.c", "src/core/crash_handler.s", "src/core/data_manager.c", "src/core/events.c", "src/core/fade_manager.c", "src/core/flasher.c", "src/core/flasher_s.s", "src/core/gbprinter.c", "src/core/input.c", "src/core/interrupts.c", "src/core/load_save.c", "src/core/music_manager.c", "src/core/palette.c", "src/core/parallax.c", "src/core/projectiles.c", "src/core/scroll.c", "src/core/scroll_a.s", "src/core/sfx_player.c", "src/core/sgb_border.c", "src/core/sio.c", "src/core/trigger.c", "src/core/ui.c", "src/core/ui_a.s", "src/core/vm.c", "src/core/vm_actor.c", "src/core/vm_camera.c", "src/core/vm_gameboy.c", "src/core/vm_gbprinter.c", "src/core/vm_load_save.c", "src/core/vm_math.c", "src/core/vm_music.c", "src/core/vm_palette.c", "src/core/vm_projectiles.c", "src/core/vm_rtc.c", "src/core/vm_scene.c", "src/core/vm_sgb.c", "src/core/vm_sio.c", "src/core/vm_ui.c", "src/core/vm_ui_a.s", "src/states/adventure.c", "src/states/logo.c", "src/states/platform.c", "src/states/pointnclick.c", "src/states/shmup.c", "src/states/topdown.c", ], }, { version: "3.1.0-e14", description: "Updates\n" + [ " * VM_PRINT_OVERLAY now accept MARGIN paremeter: feed N lines after printing, use 0x03 for the last print in the batch", " * Add ability to start text rendering from the arbitrary tile != 0 (in the VRAM bank 0 only if CGB)", " * Fix back resolving of base tile when loading projectile default", ].join("\n"), modifiedFiles: [ "include/gbprinter.h", "include/ui.h", "include/vm.i", "include/vm_gbprinter.h", "include/vm_ui.h", "src/core/actor.c", "src/core/gbprinter.c", "src/core/ui.c", "src/core/vm_gbprinter.c", "src/core/vm_instructions.c", "src/core/vm_projectiles.c", "src/core/vm_ui.c", ], }, { version: "3.1.0-e15", description: "Updates\n" + [ " * Improved documentation within vm.i", " * Fix text rolling buffer for DMG", " * Fix wraparound bug in check_collision_in_direction", ].join("\n"), modifiedFiles: ["include/vm.i", "src/core/actor.c", "src/core/vm_ui.c"], }, { version: "3.2.0-e0", description: "Updates\n" + [ " * Fix issue where loading a scene containing projectiles or dynamically modified sprites could cause graphical corruption", ].join("\n"), modifiedFiles: ["include/projectiles.h", "src/core/data_manager.c"], }, { version: "3.2.0-e1", description: "Updates\n" + [ " * Update to use latest GBDK-2020", " * Update to latest hUGEDriver", ].join("\n"), modifiedFiles: ["All of them (sorry)"], }, { version: "3.2.0-e2", description: "Updates\n" + [ " * Dyanamically allocate emote tiles", " * Fix GBT_player crash with new GBDK-2020", ].join("\n"), modifiedFiles: [ "include/actor.h", "include/gbt_player.h", "src/core/actor.c", "src/core/data_manager.c", "src/core/vm.c", ], }, { version: "3.2.0-e3", description: "Updates\n" + [ " * Add support for slopes to platform scenes", " * Fix issue where falling on to ladder while holding dpad down could sometimes cause player to get stuck", " * Fix bounds check for right screen edge when player isn't 16px wide", " * Fix VM_REPLACE_TILE_XY to allow tiles larger than 255 for logo scene type", ].join("\n"), modifiedFiles: [ "src/states/adventure.c", "src/states/platform.c", "src/states/shmup.c", "src/core/vm_gameboy.c", ], }, { version: "3.2.0-e4", description: "Updates\n" + [ " * Fix issue where transferring data over linkcable would cause game to hang", ].join("\n"), modifiedFiles: ["include/sio.h", "src/core/sio.c"], }, { version: "3.3.0-e0", description: "Updates\n" + [" * Added scene types to engine.json"].join("\n"), modifiedFiles: [ "engine.json", "src/gb/include/data/scene_types.h", "src/gb/include/gbs_types.h", ], }, { version: "3.3.0-e1", description: createDescription("Updates", [ "Add support for random numbers in RPN", "Add macro VM_GLOBAL() to acess globals from GBVM scripts", "Camera lock on scene change updated to be handled by GBVM script", ]), modifiedFiles: [ "include/camera.h", "include/vm.h", "include/vm.i", "include/vm_gameboy.h", "src/core/camera.c", "src/core/vm.c", "src/core/vm_gameboy.c", "src/core/vm_instructions.c", ], }, { version: "3.3.0-e2", description: createDescription("Updates", [ "Camera updated to use fixed point coordinates", ]), modifiedFiles: [ "src/core/camera.c", "src/core/scroll.c", "src/core/vm_camera.c", ], }, { version: "3.3.0-e3", description: createDescription("Fixes", [ "Fix issue where new scene's palettes wouldn't load when switching between scenes without fade out", ]), modifiedFiles: ["src/core/fade_manager.c"], }, { version: "4.0.0-e0", description: createDescription("Updates", ["Optimize atan2()"]), modifiedFiles: ["src/core/math_atan2.c"], }, { version: "4.0.0-e1", description: createDescription("Fixes", [ "Fix typo with white tile reference in UI", ]), modifiedFiles: ["include/ui.h", "src/core/ui.c", "src/core/vm_ui.c"], }, { version: "4.0.0-e2", description: createDescription("Fixes", [ "Add support for onLoad callback when loading saved data", ]), modifiedFiles: ["src/core/core.c"], }, { version: "4.0.1-e0", description: createDescription("Fixes", [ "Improve VRAM write timing in the submap and frame drawing functions", ]), modifiedFiles: ["src/core/set_tile_submap.s", "src/core/ui_a.s"], }, { version: "4.0.2-e0", description: createDescription("Fixes", [ "Improve 'wait for input' text code responsiveness when using slower text speeds", ]), modifiedFiles: ["src/core/ui.c"], }, { version: "4.0.3-e0", description: createDescription("Fixes", [ "Remove unused text_wait variable from ui", "Minor performance improvement of itoa_fmt()", ]), modifiedFiles: [ "include/ui.h", "src/core/ui.c", "src/core/vm_ui.c", "src/core/vm_ui_a.s", ], }, { version: "4.1.0-e0", description: createDescription("Fixes", [ "Fix issue where modified player flags were not being reset when changing scenes", ]), modifiedFiles: ["src/core/actor.c"], }, { version: "4.1.0-e1", description: createDescription("Fixes", [ "Fix issue where timers were not suspending when executing modal dialogues and menus", ]), modifiedFiles: ["src/core/vm.c"], }, { version: "4.2.0-e1", description: createDescription("Fixes", [ "Store actor coordinates as signed values preventing overflow when attempting to move an actor offscreen to the top or left", ]), modifiedFiles: [ "include/actor.h", "include/collision.h", "include/gbs_types.h", "include/math.h", "include/projectiles.h", "include/trigger.h", "src/core/actor.c", "src/core/projectiles.c", "src/core/trigger.c", "src/core/vm_projectiles.c", "src/states/adventure.c", "src/states/shmup.c", ], }, { version: "4.2.0-e2", description: createDescription("Updates", [ "Update VM_PROJECTILE_LOAD_TYPE to allow setting both source and destination index", "Flags for 'anim_once' and 'strong' moved into projectile_def_t rather than being defined at launch time", "Improved collision handling for ladders and one-way platforms in the Platformer scene type. Ladders now use the player's bottom edge for anchoring, and one-way platforms no longer snap the player to the platform when colliding from below", ]), modifiedFiles: [ "include/gbs_types.h", "include/projectiles.h", "include/vm.i", "include/vm_projectiles.h", "src/core/projectiles.c", "src/core/vm_instructions.c", "src/core/vm_projectiles.c", "src/states/platform.c", ], }, { version: "4.2.0-e3", description: createDescription("Fixes", [ "Fix bottom margins on GB Printer", ]), modifiedFiles: ["src/core/gbprinter.c"], }, { version: "4.2.0-e4", description: createDescription("Fixes", [ "Fix text draw position when using VM_DISPLAY_TEXT_EX with .DISPLAY_PRESERVE_POS flag", "Fix vm_music_setpos() being interrupted by the music ISR", "Remove unused members of projectile_t struct", ]), modifiedFiles: [ "include/gbs_types.h", "src/core/ui.c", "src/core/vm_music.c", ], }, { version: "4.2.0-e5", description: createDescription("Fixes", [ "Fix UI palette text control code. Palette indices now go from 1 to 8, because zero byte is a string terminator", ]), modifiedFiles: ["src/core/ui.c"], }, ]; export const isKnownEngineVersion = (currentVersion: string): boolean => { return changes.some((change) => change.version === currentVersion); }; const ejectEngineChangelog = (currentVersion: string) => { const startIndex = changes.findIndex( (change) => change.version === currentVersion ); let changelog = l10n("WARNING_MISSING_UPDATES") + ":\n\n"; const modifiedFiles = []; for (let i = startIndex + 1; i < changes.length; i++) { const change = changes[i]; changelog += ` [${change.version}]\n ${change.description}\n\n`; modifiedFiles.push(change.modifiedFiles); } changelog += "\n" + l10n("WARNING_MODIFIED_FILES") + ":\n\n "; changelog += uniq(flatten(modifiedFiles)).join("\n "); return changelog; }; export default ejectEngineChangelog; |