Skip to content

Commit f97dfb4

Browse files
committed
apparently cart save still use 512 block inside
1 parent f7dbd2e commit f97dfb4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ The parameters supported by `--format` are
9393
- `max_dir`/`max_file`: the maximum number of directories/files. The default is `100`
9494
- `dir_buckets`/`file_buckets`: the bucket count of the hash table for directories/files. The default value is calculated from `max_dir`/`max_file` using the common algorithm games use.
9595
- `len`: only for save data archive. Limits the physical size in bytes of the save data file. The defualt is `524288` (512 KiB). For Card1 cartridge save, only `131072` (128 KiB), `524288` (512 KiB), and `1048576` (1 MiB) are allowed, are must match the cartidge chip type.
96-
- `block_len`: only for save data archive. The value can only be `512` or `4096`. The default is `512` for `--sdsave` and `--bare`, and `4096` for `--nandsave` and `--cart`.
96+
- `block_len`: only for save data archive. The value can only be `512` or `4096`. The default is `512` for `--sdsave`, `--bare` and, `--cart`, and `4096` for `--nandsave`.
9797
- `duplicate_data`: only for save data archive. The value can only be `true` or `false`. The default is `true`
9898

9999
If you want leave all parameters in default values, you can specify an empty option, e.g. `--format ""`

save3ds_fuse/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1459,7 +1459,7 @@ fn main_inner() -> Result<(), Box<dyn std::error::Error>> {
14591459
} else if let Some(cart) = cart_path {
14601460
if let Some(format_param) = format_param {
14611461
println!("Formatting...");
1462-
let (param, len) = to_save_data_format_param(format_param, 4096)?;
1462+
let (param, len) = to_save_data_format_param(format_param, 512)?;
14631463
resource.format_cart_save(&cart, &param, len)?;
14641464
println!("Formatting done");
14651465
}

0 commit comments

Comments
 (0)