scottrice / Ice

Application to automatically add ROMs to Steam
http://scottrice.github.io/Ice/
MIT License
834 stars 96 forks source link

Support ROMs with periods in the filename #365

Closed drglove closed 8 years ago

drglove commented 8 years ago

I've added the ability to support filenames with a period in the name, such as Dr. Mario 64.z64 -> Dr. Mario 64 as the shortcut name in Steam as in issue #364. The current behaviour was to stop processing at the first instance of a period, or parens, yielding Dr.

We just use os.path.splitext on the base filename to remove the extension if it exists, and then process the result as usual with the exception of keeping the periods. Two test cases are added.