rloader is designed to be run from the directory it is in, otherwise ui.exe will not be found. To make it easier to use it should be allowed to run from any directory.
To do this, simply modify the main.asm launcher in one of the following ways:
verify that argv[0] always contains the entire path to the executable, obtaining the path that contains the executable
check that there is an environment variable RLOADER_PATH which will be set by the user with the path where rloader.exe is.
Assuming argv[0] as containing the full path to the executable is not part of the DOS specification. To maintain maximum compatibility, the environment variable RLOADER_PATH was used.
rloader is designed to be run from the directory it is in, otherwise
ui.exe
will not be found. To make it easier to use it should be allowed to run from any directory.To do this, simply modify the
main.asm
launcher in one of the following ways:argv[0]
always contains the entire path to the executable, obtaining the path that contains the executableRLOADER_PATH
which will be set by the user with the path where rloader.exe is.Set the current working directory to path.