Skip to content

Commit

Permalink
Merge pull request #2 from zyamoji/avoid-forbidden-characters
Browse files Browse the repository at this point in the history
Avoid forbidden characters
  • Loading branch information
RGBA-CRT committed Aug 23, 2021
2 parents 4f12f2c + fbc07c0 commit 4a58642
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion GBADumper.abp
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ Sub main()
Print

'Print Header
Dim title[16] AS Byte
Dim title[16] AS Byte, i AS Long
memcpy(title,header.Title,12)
printf(ex"GBA ROM INFO:\n Title: %s\n GameCode : %s\n MakerCode : %c%c\n Version : 1.%d\n UnitCode : %02X (dev:%02X)\n",
title,
Expand Down Expand Up @@ -85,6 +85,12 @@ Sub main()
Select Case cmd
Case 1
'DumpRom
For i = 0 To Len(title)
if title[i] = GetByte("/") Then _
title[i] = GetByte("_")
if title[i] = GetByte(":") Then _
title[i] = GetByte("_")
Next i
DumpRom(fe, MakeStr(title)+".gba",romSize)
Case 2
RomViewer(fe)
Expand Down

0 comments on commit 4a58642

Please sign in to comment.