Glide64: Add version number in to name, also fix some warnings.
This commit is contained in:
parent
11966425c5
commit
5aedb4c5d6
|
@ -67,3 +67,4 @@
|
||||||
/Plugin/GFX/map/PJ64Glide64_d.map
|
/Plugin/GFX/map/PJ64Glide64_d.map
|
||||||
/Plugin/GFX/pdb/PJ64Glide64.pdb
|
/Plugin/GFX/pdb/PJ64Glide64.pdb
|
||||||
/Plugin/GFX/pdb/PJ64Glide64_d.pdb
|
/Plugin/GFX/pdb/PJ64Glide64_d.pdb
|
||||||
|
/Source/Glide64/Glide64.aps
|
||||||
|
|
|
@ -35,6 +35,7 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Glide64", "Source\Glide64\G
|
||||||
{05B9CB11-12D1-47CD-8E4A-88E12162119B} = {05B9CB11-12D1-47CD-8E4A-88E12162119B}
|
{05B9CB11-12D1-47CD-8E4A-88E12162119B} = {05B9CB11-12D1-47CD-8E4A-88E12162119B}
|
||||||
{93447136-FACD-4740-8F35-FC46FB4A9E82} = {93447136-FACD-4740-8F35-FC46FB4A9E82}
|
{93447136-FACD-4740-8F35-FC46FB4A9E82} = {93447136-FACD-4740-8F35-FC46FB4A9E82}
|
||||||
{25A25249-C284-4C5A-8DC2-26FC3EB13703} = {25A25249-C284-4C5A-8DC2-26FC3EB13703}
|
{25A25249-C284-4C5A-8DC2-26FC3EB13703} = {25A25249-C284-4C5A-8DC2-26FC3EB13703}
|
||||||
|
{B4A4B994-9111-42B1-93C2-6F1CA8BC4421} = {B4A4B994-9111-42B1-93C2-6F1CA8BC4421}
|
||||||
{2DADDAA5-0F57-46ED-A974-747908DDC7F3} = {2DADDAA5-0F57-46ED-A974-747908DDC7F3}
|
{2DADDAA5-0F57-46ED-A974-747908DDC7F3} = {2DADDAA5-0F57-46ED-A974-747908DDC7F3}
|
||||||
{427F1DCD-3BED-4010-9322-077A4C06D871} = {427F1DCD-3BED-4010-9322-077A4C06D871}
|
{427F1DCD-3BED-4010-9322-077A4C06D871} = {427F1DCD-3BED-4010-9322-077A4C06D871}
|
||||||
{93CFEDF3-9A75-4484-B169-D9D8074F5AC2} = {93CFEDF3-9A75-4484-B169-D9D8074F5AC2}
|
{93CFEDF3-9A75-4484-B169-D9D8074F5AC2} = {93CFEDF3-9A75-4484-B169-D9D8074F5AC2}
|
||||||
|
|
|
@ -1,16 +1,16 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#define VERSION_COMPANY_NAME TEXT("CompanyName")
|
#define VERSION_COMPANY_NAME "CompanyName"
|
||||||
#define VERSION_FILE_DESCRIPTION TEXT("FileDescription")
|
#define VERSION_FILE_DESCRIPTION "FileDescription"
|
||||||
#define VERSION_FILE_VERSION TEXT("FileVersion")
|
#define VERSION_FILE_VERSION "FileVersion"
|
||||||
#define VERSION_INTERNAL_NAME TEXT("InternalName")
|
#define VERSION_INTERNAL_NAME "InternalName"
|
||||||
#define VERSION_LEGAL_COPYRIGHT TEXT("LegalCopyright")
|
#define VERSION_LEGAL_COPYRIGHT "LegalCopyright"
|
||||||
#define VERSION_ORIGINAL_FILE_NAME TEXT("OriginalFileName")
|
#define VERSION_ORIGINAL_FILE_NAME "OriginalFileName"
|
||||||
#define VERSION_PRODUCT_NAME TEXT("ProductName")
|
#define VERSION_PRODUCT_NAME "ProductName"
|
||||||
#define VERSION_PRODUCT_VERSION TEXT("ProductVersion")
|
#define VERSION_PRODUCT_VERSION "ProductVersion"
|
||||||
|
|
||||||
#include "std string.h"
|
#include "std string.h"
|
||||||
|
|
||||||
bool HasFileVersionInfo ( LPCTSTR Info, LPCTSTR FileName );
|
bool HasFileVersionInfo ( LPCSTR Info, LPCSTR FileName );
|
||||||
stdstr FileVersionInfo ( LPCTSTR Info, LPCTSTR FileName );
|
stdstr FileVersionInfo ( LPCSTR Info, LPCSTR FileName );
|
||||||
stdstr VersionInfo ( LPCTSTR Info, HMODULE hModule = NULL);
|
stdstr VersionInfo ( LPCSTR Info, HMODULE hModule = NULL);
|
||||||
|
|
|
@ -38,6 +38,7 @@
|
||||||
//****************************************************************
|
//****************************************************************
|
||||||
|
|
||||||
#include "Gfx #1.3.h"
|
#include "Gfx #1.3.h"
|
||||||
|
#include <Common/Version.h>
|
||||||
#include <wx/fileconf.h>
|
#include <wx/fileconf.h>
|
||||||
#include <wx/wfstream.h>
|
#include <wx/wfstream.h>
|
||||||
#include "Util.h"
|
#include "Util.h"
|
||||||
|
@ -54,14 +55,6 @@
|
||||||
int ghq_dmptex_toggle_key = 0;
|
int ghq_dmptex_toggle_key = 0;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef _DEBUG
|
|
||||||
#define G64_VERSION "For PJ64 (Debug) "
|
|
||||||
#else
|
|
||||||
#define G64_VERSION "For PJ64 "
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#define RELTIME "Date: " __DATE__// " Time: " __TIME__
|
|
||||||
|
|
||||||
#ifdef EXT_LOGGING
|
#ifdef EXT_LOGGING
|
||||||
std::ofstream extlog;
|
std::ofstream extlog;
|
||||||
#endif
|
#endif
|
||||||
|
@ -95,6 +88,7 @@ int ev_fullscreen = 0;
|
||||||
|
|
||||||
#ifdef __WINDOWS__
|
#ifdef __WINDOWS__
|
||||||
#define WINPROC_OVERRIDE
|
#define WINPROC_OVERRIDE
|
||||||
|
HINSTANCE hinstDLL = NULL;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef WINPROC_OVERRIDE
|
#ifdef WINPROC_OVERRIDE
|
||||||
|
@ -713,7 +707,7 @@ GRSTIPPLE grStippleModeExt = NULL;
|
||||||
GRSTIPPLE grStipplePatternExt = NULL;
|
GRSTIPPLE grStipplePatternExt = NULL;
|
||||||
FxBool (FX_CALL *grKeyPressed)(FxU32) = NULL;
|
FxBool (FX_CALL *grKeyPressed)(FxU32) = NULL;
|
||||||
|
|
||||||
int GetTexAddrUMA(int tmu, int texsize)
|
int GetTexAddrUMA(int /*tmu*/, int texsize)
|
||||||
{
|
{
|
||||||
int addr = voodoo.tex_min_addr[0] + voodoo.tmem_ptr[0];
|
int addr = voodoo.tex_min_addr[0] + voodoo.tmem_ptr[0];
|
||||||
voodoo.tmem_ptr[0] += texsize;
|
voodoo.tmem_ptr[0] += texsize;
|
||||||
|
@ -1284,16 +1278,17 @@ int DllUnload(void)
|
||||||
#ifdef __WINDOWS__
|
#ifdef __WINDOWS__
|
||||||
void wxSetInstance(HINSTANCE hInstance);
|
void wxSetInstance(HINSTANCE hInstance);
|
||||||
|
|
||||||
extern "C" int WINAPI DllMain (HINSTANCE hinstDLL,
|
extern "C" int WINAPI DllMain (HINSTANCE hinst,
|
||||||
wxUint32 fdwReason,
|
wxUint32 fdwReason,
|
||||||
LPVOID lpReserved)
|
LPVOID /*lpReserved*/)
|
||||||
{
|
{
|
||||||
sprintf (out_buf, "DllMain (%08lx - %d)\n", hinstDLL, fdwReason);
|
sprintf (out_buf, "DllMain (%08lx - %d)\n", hinst, fdwReason);
|
||||||
LOG (out_buf);
|
LOG (out_buf);
|
||||||
|
|
||||||
if (fdwReason == DLL_PROCESS_ATTACH)
|
if (fdwReason == DLL_PROCESS_ATTACH)
|
||||||
{
|
{
|
||||||
wxSetInstance(hinstDLL);
|
hinstDLL = hinst;
|
||||||
|
wxSetInstance(hinstDLL);
|
||||||
return DllLoad();
|
return DllLoad();
|
||||||
}
|
}
|
||||||
else if (fdwReason == DLL_PROCESS_DETACH)
|
else if (fdwReason == DLL_PROCESS_DETACH)
|
||||||
|
@ -1518,7 +1513,7 @@ to allow the user to test the dll
|
||||||
input: a handle to the window that calls this function
|
input: a handle to the window that calls this function
|
||||||
output: none
|
output: none
|
||||||
*******************************************************************/
|
*******************************************************************/
|
||||||
void CALL DllTest ( HWND hParent )
|
void CALL DllTest ( HWND /*hParent*/ )
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1548,11 +1543,15 @@ void CALL GetDllInfo ( PLUGIN_INFO * PluginInfo )
|
||||||
LOG ("GetDllInfo ()\n");
|
LOG ("GetDllInfo ()\n");
|
||||||
PluginInfo->Version = 0x0103; // Set to 0x0103
|
PluginInfo->Version = 0x0103; // Set to 0x0103
|
||||||
PluginInfo->Type = PLUGIN_TYPE_GFX; // Set to PLUGIN_TYPE_GFX
|
PluginInfo->Type = PLUGIN_TYPE_GFX; // Set to PLUGIN_TYPE_GFX
|
||||||
sprintf (PluginInfo->Name, "Glide64 "G64_VERSION RELTIME); // Name of the DLL
|
#ifdef _DEBUG
|
||||||
|
sprintf(PluginInfo->Name,"Glide64 For PJ64 (Debug): %s",VersionInfo(VERSION_PRODUCT_VERSION,hinstDLL).c_str());
|
||||||
|
#else
|
||||||
|
sprintf(PluginInfo->Name,"Glide64 For PJ64: %s",VersionInfo(VERSION_PRODUCT_VERSION,hinstDLL).c_str());
|
||||||
|
#endif
|
||||||
|
|
||||||
// If DLL supports memory these memory options then set them to TRUE or FALSE
|
// If DLL supports memory these memory options then set them to TRUE or FALSE
|
||||||
// if it does not support it
|
// if it does not support it
|
||||||
PluginInfo->NormalMemory = TRUE; // a normal wxUint8 array
|
PluginInfo->NormalMemory = FALSE; // a normal wxUint8 array
|
||||||
PluginInfo->MemoryBswaped = TRUE; // a normal wxUint8 array where the memory has been pre
|
PluginInfo->MemoryBswaped = TRUE; // a normal wxUint8 array where the memory has been pre
|
||||||
// bswap on a dword (32 bits) boundry
|
// bswap on a dword (32 bits) boundry
|
||||||
}
|
}
|
||||||
|
@ -2371,8 +2370,8 @@ static Glide64Keys g64Keys;
|
||||||
#else
|
#else
|
||||||
if (grKeyPressed)
|
if (grKeyPressed)
|
||||||
return grKeyPressed(g64Keys[key]);
|
return grKeyPressed(g64Keys[key]);
|
||||||
#endif
|
|
||||||
return 0;
|
return 0;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -958,7 +958,7 @@ inline wxUint32 Txl2Words(wxUint32 width, wxUint32 size)
|
||||||
return max(1, width*sizeBytes[size]/8);
|
return max(1, width*sizeBytes[size]/8);
|
||||||
}
|
}
|
||||||
|
|
||||||
inline wxUint32 ReverseDXT(wxUint32 val, wxUint32 lrs, wxUint32 width, wxUint32 size)
|
inline wxUint32 ReverseDXT(wxUint32 val, wxUint32 /*lrs*/, wxUint32 width, wxUint32 size)
|
||||||
{
|
{
|
||||||
if( val == 0x800 ) return 1;
|
if( val == 0x800 ) return 1;
|
||||||
|
|
||||||
|
|
|
@ -42,7 +42,7 @@
|
||||||
#include "TexLoad16b.h"
|
#include "TexLoad16b.h"
|
||||||
#include "TexLoad32b.h"
|
#include "TexLoad32b.h"
|
||||||
|
|
||||||
wxUint32 LoadNone (wxUIntPtr dst, wxUIntPtr src, int wid_64, int height, int line, int real_width, int tile)
|
wxUint32 LoadNone (wxUIntPtr dst, wxUIntPtr src, int wid_64, int height, int line, int /*real_width*/, int tile)
|
||||||
{
|
{
|
||||||
memset (texture, 0, 4096*4);
|
memset (texture, 0, 4096*4);
|
||||||
return (1 << 16) | GR_TEXFMT_ARGB_1555;
|
return (1 << 16) | GR_TEXFMT_ARGB_1555;
|
||||||
|
|
|
@ -115,7 +115,7 @@ wxUint16 yuv_to_rgb565(wxUint8 y, wxUint8 u, wxUint8 v)
|
||||||
// Size: 2, Format: 1
|
// Size: 2, Format: 1
|
||||||
//
|
//
|
||||||
|
|
||||||
wxUint32 Load16bYUV (wxUIntPtr dst, wxUIntPtr src, int wid_64, int /*height*/, int /*line*/, int /*real_width*/, int tile)
|
wxUint32 Load16bYUV (wxUIntPtr dst, wxUIntPtr /*src*/, int /*wid_64*/, int /*height*/, int /*line*/, int /*real_width*/, int tile)
|
||||||
{
|
{
|
||||||
wxUint32 * mb = (wxUint32*)(gfx.RDRAM+rdp.addr[rdp.tiles[tile].t_mem]); //pointer to the macro block
|
wxUint32 * mb = (wxUint32*)(gfx.RDRAM+rdp.addr[rdp.tiles[tile].t_mem]); //pointer to the macro block
|
||||||
wxUint16 * tex = (wxUint16*)dst;
|
wxUint16 * tex = (wxUint16*)dst;
|
||||||
|
|
|
@ -83,11 +83,6 @@ TxFilter::TxFilter(int maxwidth, int maxheight, int maxbpp, int options,
|
||||||
/* shamelessness :P this first call to the debug output message creates
|
/* shamelessness :P this first call to the debug output message creates
|
||||||
* a file in the executable directory. */
|
* a file in the executable directory. */
|
||||||
INFO(0, L"------------------------------------------------------------------\n");
|
INFO(0, L"------------------------------------------------------------------\n");
|
||||||
#ifdef GHQCHK
|
|
||||||
INFO(0, L" GlideHQ Hires Texture Checker 1.02.00.%d\n", BUILD_NUMBER);
|
|
||||||
#else
|
|
||||||
// INFO(0, L" GlideHQ version 1.02.00.%d\n", BUILD_NUMBER);
|
|
||||||
#endif
|
|
||||||
INFO(0, L" Copyright (C) 2010 Hiroshi Morii All Rights Reserved\n");
|
INFO(0, L" Copyright (C) 2010 Hiroshi Morii All Rights Reserved\n");
|
||||||
INFO(0, L" email : koolsmoky(at)users.sourceforge.net\n");
|
INFO(0, L" email : koolsmoky(at)users.sourceforge.net\n");
|
||||||
INFO(0, L" website : http://www.3dfxzone.it/koolsmoky\n");
|
INFO(0, L" website : http://www.3dfxzone.it/koolsmoky\n");
|
||||||
|
|
Loading…
Reference in New Issue