Where has IDOS->CurrentDir() gone?

A forum for general AmigaOS 4.x support questions that are not platform-specific
Post Reply
User avatar
OldFart
Posts: 55
Joined: Tue Jul 12, 2011 2:56 pm
Location: Groningen, Netherlands

Where has IDOS->CurrentDir() gone?

Post by OldFart »

Hi,

As the title indicates said function seems not to be part of the dos library anylonger. What has it been replaced with?
Also there is no mentioning ot this in dos-obsolete.

OldFart
Sleeping X5000, eagerly awaiting awakening
Dead MicroA1
A1200 in ElBox, c/w Blizzard '040 @ 50MHz + SCSI module, ZIV-board c/w (o.a.) cv64/3d + flickerdoubler + FastATA-ZIV + Lots of SCSI gear (for sale, willing to split)
RaspBerry Pi 2B, 3B & 4B (4Gb)
User avatar
salass00
AmigaOS Core Developer
AmigaOS Core Developer
Posts: 521
Joined: Sat Jun 18, 2011 3:12 pm
Location: Finland
Contact:

Re: Where has IDOS->CurrentDir() gone?

Post by salass00 »

It's called SetCurrentDir() now.

$ grep CurrentDir dos/obsolete.h
#define cli_SetName cli_CurrentDirName
#define SetCurrentDirName(x) SetCliCurrentDirName(x)
#define GetCurrentDirName(x,y) GetCliCurrentDirName(x,y)
#define CurrentDir(x) SetCurrentDir(x)
User avatar
OldFart
Posts: 55
Joined: Tue Jul 12, 2011 2:56 pm
Location: Groningen, Netherlands

Re: Where has IDOS->CurrentDir() gone?

Post by OldFart »

Thank you!

OldFart
Sleeping X5000, eagerly awaiting awakening
Dead MicroA1
A1200 in ElBox, c/w Blizzard '040 @ 50MHz + SCSI module, ZIV-board c/w (o.a.) cv64/3d + flickerdoubler + FastATA-ZIV + Lots of SCSI gear (for sale, willing to split)
RaspBerry Pi 2B, 3B & 4B (4Gb)
User avatar
eliyahu
Beta Tester
Beta Tester
Posts: 63
Joined: Fri Jun 17, 2011 11:13 pm

Re: Where has IDOS->CurrentDir() gone?

Post by eliyahu »

OldFart wrote:As the title indicates said function seems not to be part of the dos library anylonger. What has it been replaced with?
Also there is no mentioning ot this in dos-obsolete.
it's probably a good idea to look through the following, too:

http://wiki.amigaos.net/wiki/SDK_Release_Notes
http://wiki.amigaos.net/wiki/Deprecated_Functions

-- eliyahu
Post Reply