mirror of
https://github.com/sanni/cartreader.git
synced 2024-12-25 04:21:53 +01:00
Add progress bar
This commit is contained in:
parent
978fc80287
commit
ae55f07b2f
@ -434,6 +434,8 @@ void readROM_VB() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
word d = 0;
|
word d = 0;
|
||||||
|
uint32_t progress = 0;
|
||||||
|
draw_progressbar(0, cartSize);
|
||||||
// HYPER FIGHTING FIX
|
// HYPER FIGHTING FIX
|
||||||
// VIRTUAL BOY ADDRESSING IS TOP DOWN
|
// VIRTUAL BOY ADDRESSING IS TOP DOWN
|
||||||
// ONLY FOR HYPER FIGHTING PLUGIN WITH ALL ADDRESS LINES CONNECTED
|
// ONLY FOR HYPER FIGHTING PLUGIN WITH ALL ADDRESS LINES CONNECTED
|
||||||
@ -450,6 +452,8 @@ void readROM_VB() {
|
|||||||
}
|
}
|
||||||
myFile.write(sdBuffer, 512);
|
myFile.write(sdBuffer, 512);
|
||||||
d = 0;
|
d = 0;
|
||||||
|
progress += 512;
|
||||||
|
draw_progressbar(progress, cartSize);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
for (unsigned long currBuffer = 0; currBuffer < cartSize / 2; currBuffer += 256) {
|
for (unsigned long currBuffer = 0; currBuffer < cartSize / 2; currBuffer += 256) {
|
||||||
@ -462,6 +466,8 @@ void readROM_VB() {
|
|||||||
}
|
}
|
||||||
myFile.write(sdBuffer, 512);
|
myFile.write(sdBuffer, 512);
|
||||||
d = 0;
|
d = 0;
|
||||||
|
progress += 512;
|
||||||
|
draw_progressbar(progress, cartSize);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
myFile.close();
|
myFile.close();
|
||||||
|
Loading…
Reference in New Issue
Block a user