mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-01-12 13:59:20 +03:00
Use PROGDIR: instead of current dir when setting the path to the executable for
AmiUpdate svn path=/trunk/netsurf/; revision=12223
This commit is contained in:
parent
c64bd92922
commit
c737dbd5f8
@ -409,8 +409,10 @@ void ami_set_options(void)
|
|||||||
|
|
||||||
void ami_amiupdate(void)
|
void ami_amiupdate(void)
|
||||||
{
|
{
|
||||||
|
/* Create AppPath location for AmiUpdate use */
|
||||||
|
|
||||||
BPTR lock = 0, amiupdatefh = 0;
|
BPTR lock = 0, amiupdatefh = 0;
|
||||||
/* AmiUpdate */
|
|
||||||
if(((lock = Lock("ENVARC:AppPaths",SHARED_LOCK)) == 0))
|
if(((lock = Lock("ENVARC:AppPaths",SHARED_LOCK)) == 0))
|
||||||
{
|
{
|
||||||
lock = CreateDir("ENVARC:AppPaths");
|
lock = CreateDir("ENVARC:AppPaths");
|
||||||
@ -418,7 +420,7 @@ void ami_amiupdate(void)
|
|||||||
|
|
||||||
UnLock(lock);
|
UnLock(lock);
|
||||||
|
|
||||||
if(lock=GetCurrentDir())
|
if(lock = Lock("PROGDIR:", ACCESS_READ))
|
||||||
{
|
{
|
||||||
char filename[1024];
|
char filename[1024];
|
||||||
|
|
||||||
@ -427,8 +429,8 @@ void ami_amiupdate(void)
|
|||||||
amiupdatefh = FOpen("ENVARC:AppPaths/NetSurf",MODE_NEWFILE,0);
|
amiupdatefh = FOpen("ENVARC:AppPaths/NetSurf",MODE_NEWFILE,0);
|
||||||
FPuts(amiupdatefh,(CONST_STRPTR)&filename);
|
FPuts(amiupdatefh,(CONST_STRPTR)&filename);
|
||||||
FClose(amiupdatefh);
|
FClose(amiupdatefh);
|
||||||
|
UnLock(lock);
|
||||||
}
|
}
|
||||||
/* end Amiupdate */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
char* gui_get_resource_url(const char *filename)
|
char* gui_get_resource_url(const char *filename)
|
||||||
|
Loading…
Reference in New Issue
Block a user