From c781ca27b725b0dddb76650ba39794f90df105eb Mon Sep 17 00:00:00 2001 From: Chris Young Date: Sat, 9 Nov 2013 16:38:24 +0000 Subject: Add an implied PROGDIR: to the ARexx dir name for scanning, as executing the script with PROGDIR: in it doesn't work. --- amiga/menu.c | 8 ++++++-- amiga/options.h | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) (limited to 'amiga') diff --git a/amiga/menu.c b/amiga/menu.c index 0b93ade65..b1f4ff90c 100644 --- a/amiga/menu.c +++ b/amiga/menu.c @@ -496,8 +496,12 @@ void ami_menu_arexx_scan(struct gui_window_2 *gwin) LONG cont; struct ExAllData *ead; char *menu_lab; - - if(lock = Lock(nsoption_charp(arexx_dir), SHARED_LOCK)) + char lock_dir[1024]; + + strlcpy(lock_dir, "PROGDIR:", 1024); + AddPart(lock_dir, nsoption_charp(arexx_dir), 1024); + + if(lock = Lock(lock_dir, SHARED_LOCK)) { if(buffer = AllocVecTagList(1024, NULL)) { diff --git a/amiga/options.h b/amiga/options.h index f595cd240..b95ddf12d 100644 --- a/amiga/options.h +++ b/amiga/options.h @@ -44,7 +44,7 @@ NSOPTION_BOOL(tab_close_warn, true) NSOPTION_BOOL(tab_always_show, false) NSOPTION_BOOL(kiosk_mode, false) NSOPTION_STRING(search_engines_file, "PROGDIR:Resources/SearchEngines") -NSOPTION_STRING(arexx_dir, "PROGDIR:Rexx") +NSOPTION_STRING(arexx_dir, "Rexx") NSOPTION_STRING(arexx_startup, "Startup.nsrx") NSOPTION_STRING(arexx_shutdown, "Shutdown.nsrx") NSOPTION_STRING(download_dir, NULL) -- cgit v1.2.3