revert between 56095 -> 55830 in arch
[AROS.git] / rom / usb / poseidon / PsdStackLoader.c
blob60996d15ef7d02c5229587c09b4fc96fa2ea33ed
1 /*
2 ** PsdStackloader loads the ENVARC:Sys/poseidon.prefs file and starts the stack.
3 ** This is AROS specific, as under AmigaOS, the PsdStackloader is the config itself
4 ** and under MorphOS, IPrefs loads the prefs.
5 */
7 #include <proto/poseidon.h>
8 #include <proto/exec.h>
9 #include <proto/dos.h>
11 const char *psd_version = "$VER: PsdStackloader 4.0 (03.06.09) by Chris Hodges <chrisly@platon42.de>";
13 int main(void)
15 struct Library *ps;
16 int ret = RETURN_FAIL;
17 if((ps = OpenLibrary("poseidon.library", 4)))
19 if(psdLoadCfgFromDisk(NULL))
21 ret = RETURN_OK;
22 psdParseCfg();
23 } else {
24 ret = RETURN_ERROR;
25 PutStr("Error loading poseidon.prefs!\n");
27 CloseLibrary(ps);
28 } else {
29 PutStr("Unable to open poseidon.library\n");
31 return(ret);