aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--android/main.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/android/main.c b/android/main.c
index 37bf34a..3629c83 100644
--- a/android/main.c
+++ b/android/main.c
@@ -648,7 +648,10 @@ int main(int argc, char **argv)
hw->disk_dataPartition_initPath = NULL;
}
- uint64_t defaultBytes = defaultPartitionSize;
+ uint64_t defaultBytes =
+ hw->disk_dataPartition_size == 0 ?
+ defaultPartitionSize :
+ convertMBToBytes(hw->disk_dataPartition_size);
uint64_t dataBytes;
const char* dataPath = hw->disk_dataPartition_initPath;