Apparently, some games may not use any saves at all (for example, Blazblue/Blayzbloo).
The script will create a 0KB public.sav for those, but it shouldn't be a problem if the game won't be looking for a save anyway.
If still you don't want for that public.sav and data folder to be created at all for such games, this should work:
By the way, for those who haven't installed Windows 10 yet, I tried to make a "true" Windows pack.
Extract attached zip somewhere, place the .nds files into the same folder you extracted the zip to, and run "convert_to_dsiware.bat".
Tested on Windows 7 64bit, and also on Windows XP 32bit, just in case.
I hope this works fine for others, too.
EDIT: Check this post for an updated version: https://gbatemp.net/threads/tool-nds-no-intro-roms-to-dsiware.514089/page-3#post-8261498
The script will create a 0KB public.sav for those, but it shouldn't be a problem if the game won't be looking for a save anyway.
If still you don't want for that public.sav and data folder to be created at all for such games, this should work:
Code:
root_folder=$(basename "${1}" ".nds")
title_id=$(python print_rom_data.py "${1}" title_id)
save_size=$(python print_rom_data.py "${1}" save_size)
content_folder="${root_folder}/${title_id}/content"
data_folder="${root_folder}/${title_id}/data"
fat_size=save_size
mkdir -p "${content_folder}"
./maketmd "${1}"
mv title.tmd "${content_folder}/."
if [[ fat_size -ne 0 ]] && [[ fat_size -lt 65536 ]]
then
mkdir "${data_folder}"
fat_size=65536
dd if=/dev/zero of=public.sav bs=1 count=$fat_size
mkfs.msdos -v -F 12 -s 1 -D 0 -r 224 public.sav
truncate -s ${save_size} public.sav
mv public.sav "${data_folder}/."
fi
cp "${1}" "${content_folder}/00000000.app"
Extract attached zip somewhere, place the .nds files into the same folder you extracted the zip to, and run "convert_to_dsiware.bat".
Tested on Windows 7 64bit, and also on Windows XP 32bit, just in case.
EDIT: Check this post for an updated version: https://gbatemp.net/threads/tool-nds-no-intro-roms-to-dsiware.514089/page-3#post-8261498
Last edited by redunka,