I think the USBGecko Emulator doesn't work properly.
If I loop reading from the port after sending a readMemory command to the gecko handler, I get 1 byte back every time. If I wait 1 second between reads, I get ~512 bytes. I believe that the system sends a packet for each byte, due to the following code
After this bit of code there is a SLEEP(1);
I am not sure if that is affecting things as well, but because of the way its sending things, I can only dump about 512 bytes a second....
I am pretty sure the problem isn't my code.
If I loop reading from the port after sending a readMemory command to the gecko handler, I get 1 byte back every time. If I wait 1 second between reads, I get ~512 bytes. I believe that the system sends a packet for each byte, due to the following code
Code:
if (client.Send((char*)&send_fifo.front(), sizeof(u8))
== sf::Socket::Disconnected)
client_running = false; send_fifo.pop();
After this bit of code there is a SLEEP(1);
I am not sure if that is affecting things as well, but because of the way its sending things, I can only dump about 512 bytes a second....
I am pretty sure the problem isn't my code.