djh0ffman / PT1210

PT-1210 Amiga DJ Software
40 stars 3 forks source link

Program stuck on load when only one module in folder #12

Closed kikendo closed 5 years ago

kikendo commented 5 years ago

This was driving me nuts. When the number of modules in the folder is 1, the program gets stuck on load. 0 or more than 1 work fine. The release version does this.

I played around with the directory-crawling code and made it not to crash but I have no idea exactly what was happening.

I have to send Hoffman my code so he can compare.

dwhinham commented 5 years ago

I hit this last night and thought it might have been some of my replacement code, but then I downloaded the released version and also hit it - I thought my emulator setup was broken :)

Currently rewriting file I/O so I'll look for this and get it fixed 👍

kikendo commented 5 years ago

Cool, yeah, I was embarassed to find out this was there for 4 years and I don't think anyone noticed until I started to tinker with the code haha.

dwhinham commented 5 years ago

This problem no longer occurs in the c-filesystem branch so it looks like the rewritten file functions have fixed this issue as a side-effect! 😄