#1 fpse version number hack


Here is a little hack to the fpse wrapper to allow the
plugin to retrieve the version number from the psemu
function PSEGetVersion instead of doing it manually
(this was forgotten in the release 1.4 ;) )
Probably there's a nicer way to do it (e. g. move the
version number in a header file) but in this way I
only changed fpsewp.c and fpsewp.h without touching
the psemu version.
This was tested in windows (it gives 2 warnings, but
they should be safe)

in fpsewp.h I added

long CALLBACK PSEgetLibVersion(void);

in fpsewp.c

1) I removed

#define VERSION 0x0103 // Version must be in
BCD format

2) I initialized the fields VerHi e VerLo of struct
info to 0

3) I modified GPU_About() in this way

void GPU_About(UINT32 *par)
unsigned long vers = PSEgetLibVersion();
info.VerLo = vers & 0xFF;
info.VerHi = (vers & 0xFFFF) >> 8;
#ifndef _WINDOWS
#ifdef __BEOS__
memcpy( par, &info, sizeof(FPSEbeosAbout) );
memcpy( par, &info, sizeof(FPSElinuxAbout) );
memcpy( par, &info, sizeof(FPSEWin32About) );


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks