Skip to content

Commit

Permalink
Backport #1174
Browse files Browse the repository at this point in the history
  • Loading branch information
emmercm committed Jul 12, 2024
1 parent 3dc952b commit e722db2
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/types/dats/rom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,16 @@ export default class ROM implements ROMProps {
return this.bios;
}

/**
* Return a new copy of this {@link ROM} with a different name.
*/
withName(name: string): ROM {
if (name === this.name) {
return this;
}
return new ROM({ ...this, name });
}

/**
* Turn this {@link ROM} into a non-existent {@link File}.
*/
Expand Down

0 comments on commit e722db2

Please sign in to comment.