blawar / nut

GNU General Public License v3.0
1.08k stars 189 forks source link

[HELP!] List of possible placeholders for Paths? #462

Open Neipas09 opened 1 year ago

Neipas09 commented 1 year ago

I'm trying to figure out how to set the Save Paths so it keeps the Parent Folder that the .nsp files are in, and then add a DLC and UPDATES folder into that parent folder, and then sort as needed.

Other than what's already shown in the default config file..

{name}
{id}
{version}

I have no clue what else i could use in the paths. Is there a possible {current_dir} already available to use?

Example: All my .nsp files are in the "Mario Bros" folder C:\NS\Games\Mario Bros

I want to set the Base, DLC, and Update paths something like this.. Base = {current_dir}/{name}[{id}][v{version}].nsp DLC = {current_dir}/DLC/{name}[{id}][v{version}].nsp Updates = {current_dir}/updates/{name}[{id}][v{version}].nsp

BurkhalterY commented 1 year ago

Hello, I had the same question.

So I checked the source code and the possible placeholders are the followings:

{id}, {region}, {name}, {version}, {baseId}, {baseName}, {cr}, {icr}

baseId and baseName are the id and the name of the base for DLC.

I don't know what is {cr} and {icr}, but I know there are equivalent. I recommend to don't use it because it doesn't work for me.

However I'm sorry but I didn't find a way to use something like {current_dir}...

blawar commented 1 year ago

use a relative path if you want to reference the current directory: games/nsp/base/ instead of c:/files/games/nsp/base/

cr and icr are for NSZ only, and they represent the compression ratio.