What's new

gltest Source Code

mudlord

Banned
Hey,

I decided to release the code to this little app I made for the Glide64 project. Its released under a BSD-style licence, and I don't care how the source is used. I really don't.

For the people that dunno, its a app that probes your video card to see how compatible it is with current builds of Hacktarux's Glide3x-based wrapper for Glide64.

For the people who care, its written in plain Win32 C, and can be compiled with MSVC (though it is possible to compile with gcc). It currentky links against the OpenGL library and BASSMOD.

BASSMOD is a proprietary audio player library, based on its parent, BASS. This library is used for S3M playback in this application. However the method used to contain the music is akin to the way it is done with illegitimate keygens, patches and demoscene demos. The music is converted to a C style include file, and the music is read from memory. However, due to licensing restrictions on BASSMOD, the player DLL is kept in the EXE as a resource, due to the DLL being encrypted with Petite, which further restricts possible use. Thus, BASSMOD.DLL needs to be in the same compile directory, to be used for linkage into the program.

As shown in the source, BASSMOD is extracted to the Windows temp folder on execution, and deleted on exit. The BASSMOD exports are loaded by the app through pointers, as it uses GetProcAddress to load.

Other stuff should be easy to follow.
 

Top