add Novidia (non-Nvidia chara skinning)
This commit is contained in:
@@ -0,0 +1,49 @@
|
||||
#pragma once
|
||||
|
||||
#include "glStuff.h"
|
||||
|
||||
// use this as a hook to perform initialisation
|
||||
void(__cdecl* glutSetCursor)(int cursor) = *(void(__cdecl**)(int))0x140966068;
|
||||
void(__cdecl* uploadModelTransformBuf)(DWORD* a1, int a2) = (void(__cdecl*)(DWORD * a1, int a2))0x140444fa0;
|
||||
PROC(*wGlGetProcAddress_forhook)(LPCSTR) = (PROC(*)(LPCSTR))(GetProcAddress(GetModuleHandle(L"opengl32.dll"), "wglGetProcAddress"));;
|
||||
|
||||
bool& performTransform = *(bool*)0x14cc57bb0;
|
||||
|
||||
// vars that will contain the requiered info about GL buffers to perform the transform
|
||||
GLuint buf_tex;
|
||||
|
||||
|
||||
// check if a buffer target is okay to allow on non-Nvidia platforms
|
||||
// (used to prevent crashes in glBindBuffer and glBufferData)
|
||||
// only parameter buffer NV targets cause issues
|
||||
bool checkBufferTargetOk(GLenum target)
|
||||
{
|
||||
return !(target == GL_VERTEX_PROGRAM_PARAMETER_BUFFER_NV || target == GL_FRAGMENT_PROGRAM_PARAMETER_BUFFER_NV);
|
||||
}
|
||||
|
||||
|
||||
int __stdcall stub() { return 1; }
|
||||
|
||||
|
||||
/*
|
||||
std::wstring ExePath() {
|
||||
WCHAR buffer[MAX_PATH];
|
||||
GetModuleFileNameW(NULL, buffer, MAX_PATH);
|
||||
return std::wstring(buffer);
|
||||
}
|
||||
|
||||
std::wstring DirPath() {
|
||||
std::wstring exepath = ExePath();
|
||||
std::wstring::size_type pos = exepath.find_last_of(L"\\/");
|
||||
return exepath.substr(0, pos);
|
||||
}
|
||||
|
||||
std::wstring CONFIG_FILE_STRING = DirPath() + L"\\plugins\\Novidia.ini";
|
||||
LPCWSTR CONFIG_FILE = CONFIG_FILE_STRING.c_str();
|
||||
|
||||
|
||||
void loadConfig()
|
||||
{
|
||||
|
||||
}
|
||||
*/
|
||||
Reference in New Issue
Block a user