Fernap / UberASMTool

This tool lets you insert level, overworld, game mode, status bar, sprite and global ASM without using a patch.
GNU General Public License v3.0
4 stars 1 forks source link

Crash when asar expands the ROM #7

Closed Fernap closed 3 weeks ago

Fernap commented 1 month ago

Reported by Anas. Happens when the patching process causes asar to expand the ROM size. Example stack trace:

Unhandled exception. System.ArgumentException: Destination array was not long enough. Check the destination index, length, and the array's lower bounds. (Parameter 'destinationArray')
   at System.Array.Copy(Array , Int32 , Array , Int32 , Int32 , Boolean )
   at System.Array.Copy(Array , Int32 , Array , Int32 , Int32 )
   at System.Array.CopyTo(Array , Int32 )
   at UberASMTool.ROM.Save() in C:\projects\UberASMTool\UberASMTool\ROM.cs:line 120
   at UberASMTool.Program.Main(String[] args) in C:\projects\UberASMTool\UberASMTool\Program.cs:line 95