-
Notifications
You must be signed in to change notification settings - Fork 3
Platform defaults
libDarnit has a few paths where it looks for files. Apart from just trying a relative path and looking in mounted LDI files, it also has a data directory and a write directory. The data directory is where all resources etc. are to be stored, it's a read only location. The write directory is where all files the program creates ends up. This directory is supposed to be guaranteed to be writeable across all platforms. It is automatically selected when you open a file for writing. On windows, it is also used to locate the registery key that tells libdarnit where the data directory is located.
If a file cannot be found in any of the directories, the file open operation will attempt to open it relative to cwd.
-
Data directory can not be determined from the datadir variable. Instead, libdarnit looks up the registery key
HKEY_LOCAL_MACHINE\SOFTWARE\libdarnit\<datadir>\pathand uses the contents of that key as the path for data dir. If the key is not found, libdarnit will look for data in cwd. -
Write directory is located in
%APPDATA%\<datadir>, and is created automatically.
- Data directory is located in
/usr/share/games/<datadir> - Write directory is located in
~/.darnit/<datadir>
Since all data is packaged into a PND anyway, both write dir and data dir are set to "."
- up - cursor key "up"
- down - cursor key "down"
- left - cursor key "left"
- right - cursor key "right"
- X - keyboard key S
- Y - keyboard key W
- A - keyboard key Left Control
- B - keyboard key Left Alt
- START - keyboard key Enter
- SELECT - keyboard key Escape
- L - keyboard key A
- R - keyboard key D
Mapped to the action buttons with the same name, no need to list them
- up - cursor key "up"
- down - cursor key "down"
- left - cursor key "left"
- right - cursor key "right"
- X - keyboard key S
- Y - keyboard key W
- A - keyboard key A
- B - keyboard key D
- START - keyboard key Enter
- SELECT - keyboard key Backspace
- L - keyboard key Q
- R - keyboard key E