mirror of
https://github.com/jfdelnero/HxCFloppyEmulator.git
synced 2026-07-28 04:06:36 +00:00
Windows : Turn the process in high priority when the USB HxC Floppy Emulator is detected. Fix most of the Sync lost events.
git-svn-id: svn://svn.code.sf.net/p/hxcfloppyemu/code/HxCFloppyEmulator/libusbhxcfe/trunk@2446 63fa2f70-6a9b-4bc4-b855-9c6a949b1d69
This commit is contained in:
@@ -49,6 +49,10 @@
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#ifdef WIN32
|
||||
#include <windows.h>
|
||||
#endif
|
||||
|
||||
//#define DEBUGVB 1
|
||||
|
||||
#include "internal_libhxcfe.h"
|
||||
@@ -521,6 +525,10 @@ int32_t ftdichiplistener(HXCFE* floppycontext,USBHXCFE * hw_context)
|
||||
|
||||
}while(init_failed);
|
||||
|
||||
#ifdef WIN32
|
||||
SetPriorityClass(GetCurrentProcess(), HIGH_PRIORITY_CLASS);
|
||||
#endif
|
||||
|
||||
// detection terminee
|
||||
// on rentre dans la boucle de fonctionnement
|
||||
// normal
|
||||
|
||||
Reference in New Issue
Block a user