Changeset 361 in Main for trunk/Server/main.c


Ignore:
Timestamp:
Oct 17, 2024, 9:37:10 AM (4 weeks ago)
Author:
Nishi
Message:

works on netware

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Server/main.c

    r359 r361  
    4242#include <windows.h>
    4343#elif defined(__NETWARE__)
     44#include <nwnamspc.h>
     45#include <nwthread.h>
     46#include <nwconio.h>
    4447#endif
    4548
     
    549552#ifdef __NETWARE__
    550553        struct arg_struct* parg = malloc(sizeof(*parg));
     554        SetCurrentNameSpace(NW_NS_LONG);
    551555        parg->argc = argc;
    552556        parg->argv = argv;
    553         thread_stuff(parg);
     557        DestroyScreen(GetCurrentScreen());
     558        SetCurrentScreen(CreateScreen("Tewi Console", 0));
     559        BeginThread(thread_stuff, NULL, 0, parg);
     560        ThreadSwitch();
    554561        return 0;
    555562}
Note: See TracChangeset for help on using the changeset viewer.