#140535 - gamix - Mon Sep 17, 2007 7:48 am
Simple questions. How can I retrieve the path of the current executable from libfat? Essentially I would like my program to save files in the current folder instead of the root, but I haven't found a way without changing directory to a named directory with "chdir". I also tried querying argv[ 0 ], but with no luck.
I observed the behavior of many homebrew applications and they all seem to dump files on the root folder unless I specify a path explicitly ( e.g. ScummVM DS ). I actually wonder if it is possible to do something like that, conssidering that this information should come from the device itself ( MK5-GIGA in my case ).
I observed the behavior of many homebrew applications and they all seem to dump files on the root folder unless I specify a path explicitly ( e.g. ScummVM DS ). I actually wonder if it is possible to do something like that, conssidering that this information should come from the device itself ( MK5-GIGA in my case ).