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
Reported by Anas. Happens when the patching process causes asar to expand the ROM size. Example stack trace: