mirror of
https://github.com/SDL-Hercules-390/hyperion.git
synced 2026-04-19 18:26:51 +02:00
dyngui shutdown tweak
git-svn-id: file:///home/jj/hercules.svn/trunk@1551 956126f8-22a0-4046-8f4a-272fa8102e63
This commit is contained in:
11
dyngui.c
11
dyngui.c
@@ -64,11 +64,11 @@ int nInputStreamFileNum = -1; // (file descriptor for stdin stream)
|
||||
|
||||
void Initialize ();
|
||||
void ProcessingLoop ();
|
||||
void Cleanup ();
|
||||
void UpdateTargetCPU ();
|
||||
void ReadInputData (size_t nTimeoutMillsecs);
|
||||
void ProcessInputData ();
|
||||
void* gui_panel_command (char* pszCommand);
|
||||
void gui_panel_cleanup ();
|
||||
void UpdateStatus ();
|
||||
void UpdateCPUStatus ();
|
||||
void UpdateRegisters ();
|
||||
@@ -827,11 +827,12 @@ void Initialize ()
|
||||
|
||||
memset(pszCommandBuff,0,nCommandBuffSize);
|
||||
nCommandLen = 0;
|
||||
|
||||
atexit( gui_panel_cleanup );
|
||||
}
|
||||
|
||||
void gui_panel_cleanup()
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
// (called by 'gui_panel_display' when main loop terminates...)
|
||||
|
||||
void Cleanup()
|
||||
{
|
||||
if (pszInputBuff)
|
||||
free(pszInputBuff);
|
||||
@@ -885,6 +886,8 @@ void gui_panel_display ()
|
||||
logmsg(_("HHCHGnnnI dyngui.dll initiated\n"));
|
||||
Initialize(); // (allocate buffers, etc)
|
||||
ProcessingLoop(); // (primary processing loop)
|
||||
logmsg(_("HHCHGnnnI dyngui.dll terminated\n"));
|
||||
Cleanup(); // (de-allocate resources)
|
||||
}
|
||||
|
||||
/*****************************************************************************\
|
||||
|
||||
6
hdl.c
6
hdl.c
@@ -328,12 +328,6 @@ HDLPRE *preload;
|
||||
|
||||
hdl_cdll->name = strdup("*Hercules");
|
||||
|
||||
// ZZ FIXME: Win32-specific file name handling: If no file name
|
||||
// extension is specified in the file name parameter, the default
|
||||
// library extension ".dll" is appended. However, the file name
|
||||
// string can include a trailing point character (.) to indicate
|
||||
// that the module name has no extension.
|
||||
|
||||
if(!(hdl_cdll->dll = dlopen(NULL, RTLD_NOW )))
|
||||
{
|
||||
fprintf(stderr, "HHCHD003E unable to open hercules as DLL: %s\n",
|
||||
|
||||
Reference in New Issue
Block a user