aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorPsyK0p4T <[email protected]>2023-01-16 01:12:30 +0100
committerGitHub <[email protected]>2023-01-16 01:12:30 +0100
commitae55f07b2fb32e9e0c359c80ec85c2c7991155d4 (patch)
tree3af92983fd53c545c83d85beb7f530f358551176
parent978fc80287975ac10bf4901aba91284499348b55 (diff)
downloadcartreader-ae55f07b2fb32e9e0c359c80ec85c2c7991155d4.tar.gz
cartreader-ae55f07b2fb32e9e0c359c80ec85c2c7991155d4.zip
Add progress bar
-rw-r--r--Cart_Reader/VBOY.ino8
1 files changed, 7 insertions, 1 deletions
diff --git a/Cart_Reader/VBOY.ino b/Cart_Reader/VBOY.ino
index 44d9926..b56a636 100644
--- a/Cart_Reader/VBOY.ino
+++ b/Cart_Reader/VBOY.ino
@@ -434,6 +434,8 @@ void readROM_VB() {
}
word d = 0;
+ uint32_t progress = 0;
+ draw_progressbar(0, cartSize);
// HYPER FIGHTING FIX
// VIRTUAL BOY ADDRESSING IS TOP DOWN
// ONLY FOR HYPER FIGHTING PLUGIN WITH ALL ADDRESS LINES CONNECTED
@@ -450,6 +452,8 @@ void readROM_VB() {
}
myFile.write(sdBuffer, 512);
d = 0;
+ progress += 512;
+ draw_progressbar(progress, cartSize);
}
} else {
for (unsigned long currBuffer = 0; currBuffer < cartSize / 2; currBuffer += 256) {
@@ -462,6 +466,8 @@ void readROM_VB() {
}
myFile.write(sdBuffer, 512);
d = 0;
+ progress += 512;
+ draw_progressbar(progress, cartSize);
}
}
myFile.close();
@@ -563,4 +569,4 @@ unsigned long verifySRAM_VB() {
#endif
//******************************************
// End of File
-//****************************************** \ No newline at end of file
+//******************************************