11 Commits
Author SHA1 Message Date
Ryan C. Gordon 23e344a212 lib2ine_shutdown(): Don't zero out GLoaderState.
Otherwise, lxTerminate() can't finalize loaded modules, etc.
2022-01-31 11:39:04 -05:00
Ryan C. Gordon b8f67643dc Make DosBeep volume configurable. 2018-07-10 02:00:31 -04:00
Ryan C. Gordon 490702cc45 Implemented DosBeep in doscalls and a simple audio mixer in lib2ine. 2018-07-10 01:33:11 -04:00
Ryan C. Gordon 1ce68d5bcf GLoaderState.running shouldn't be set here. 2018-07-10 01:20:08 -04:00
Ryan C. Gordon 0894e3d69d More work on mapping OS/2 drive letters to the Unix filesystem. 2018-07-10 01:19:37 -04:00
Ryan C. Gordon 14073f3361 Added a basic config file parser to lib2ine.
This will let the app set up some state about the OS/2 "system", like what
Unix paths are mapped to which OS/2 drive letters, system vars, etc.

This reads from /etc/2ine.cfg, and then tries a copy in the user's local
config dir to add/override settings.

This mostly doesn't do anything yet, but the framework is there for adding
stuff, and the drive letter mapping is done, even if nothing is using it.
2018-06-24 02:40:36 -04:00
cracyc 5ae85f2426 Use OS2PATH instead of Ryan's hardcoded hack. 2018-06-18 15:29:36 -04:00
cracyc a13726b2b7 Allocate the full 64k segment for the environment.
This is read/write memory owned by the process, which can reallocate it,
which CMD.EXE does.

(FIXME comment by ryan, rest of the patch was from cracyc.)
2018-06-16 23:45:07 -04:00
Ryan C. Gordon 37c3cc5a0a Bunch more work on 16-bit entry points.
Can run testargv16.exe now. This means Watcom C startup code, and Watcom's
printf(), both work.
2018-06-07 23:48:39 -04:00
Ryan C. Gordon 0148811a0c lx_loader: Load 16-bit NE binaries!
This currently only works with a simple Hello World program, but this is the
bulk of the work to 16-bit program support.

Still need some minor effort to get 16-bit DLLs working, and of course we
need to implement a ton of missing 16-bit API calls.
2018-06-06 17:25:22 -04:00
Ryan C. Gordon c4ba0aaa12 Forgot to add lib2ine.c to revision control. :/ 2018-02-28 00:28:59 -05:00