Open codemann8 opened 4 years ago
Does the the file transfert block when using it normally?
@Skarsnik No, the transfer works when the code is back to its original form.
But also I should be clear, overwriting a file that already exists has never worked with this program, in fact it has always caused the program to inifinitely "try" to transfer, and the only remedy it to force close Qusb2Snes AND power down my SNES console and turn back on.
@Skarsnik
Interesting, I need to look more into this, I don't remember if the firmware allows to just overwrite x)
@Skarsnik Any ideas on what I could change in my code to make this work? I don't seem to know why the first IO operation (the check if file exists) is successful and everything after freezes.
I've managed to figure out the necessary steps to get SendToSd2snes to compile to .exe, which is good. However, I'm running into an issue where file IO operations are infinitely freezing. If I had to guess, it might be due to file IO operations happening back to back, but I have no clue.
So far, I've only modified transfertFile() method, here is what I modified it to:
Essentially what I'm trying to do is if the file getting transferred is a ROM file AND a specific pre-determined ROM filename already exists. I want it to delete this old ROM file and replace it with another new ROM. This is particularly a desirable feature when running randomizer games with MSU-1 where the ROM file must have the same prefix. I'm hoping you might be able to quickly see any problems with the above code, as I'm no expert in Qt dev nor these usb2snes libraries. Also, this might even be made simpler if overwriting files worked in SendToSd2snes, but as it currently is, it does not.