marco-sacchi / RLoader

DOS programs launcher with customizable lists, search and thumbnails display.
MIT License
24 stars 1 forks source link

Allow rloader to run from other directory #32

Closed marco-sacchi closed 2 years ago

marco-sacchi commented 2 years ago

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:

Set the current working directory to path.

marco-sacchi commented 2 years ago

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.