Skip to content

Commit

Permalink
JP added Character blink fix address
Browse files Browse the repository at this point in the history
  • Loading branch information
MaKiPL committed Aug 22, 2024
1 parent 290c69a commit 16d4c8e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
12 changes: 7 additions & 5 deletions ff8_demaster/dllmain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,13 @@ void* HookGlfwSetWindowHint(int hint, int value)

if(WINDOW_OVERWRITE)
{
static_cast<void* (*)(GLenum, GLuint)>(oGlfwSetWindowHint)(GLFW_CONTEXT_VERSION_MAJOR, 3);
static_cast<void* (*)(GLenum, GLuint)>(oGlfwSetWindowHint)(GLFW_CONTEXT_VERSION_MINOR, 3);
static_cast<void* (*)(GLenum, GLuint)>(oGlfwSetWindowHint)(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE);
static_cast<void* (*)(GLenum, GLuint)>(oGlfwSetWindowHint)(GLFW_OPENGL_FORWARD_COMPAT, GLFW_TRUE);
static_cast<void* (*)(GLenum, GLuint)>(oGlfwSetWindowHint)(GLFW_CONTEXT_NO_ERROR, GLFW_TRUE);
if(hint == GLFW_DECORATED)
newValue = GLFW_TRUE;
//static_cast<void* (*)(GLenum, GLuint)>(oGlfwSetWindowHint)(GLFW_CONTEXT_VERSION_MAJOR, 3);
//static_cast<void* (*)(GLenum, GLuint)>(oGlfwSetWindowHint)(GLFW_CONTEXT_VERSION_MINOR, 3);
//static_cast<void* (*)(GLenum, GLuint)>(oGlfwSetWindowHint)(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE);
//static_cast<void* (*)(GLenum, GLuint)>(oGlfwSetWindowHint)(GLFW_OPENGL_FORWARD_COMPAT, GLFW_TRUE);
//static_cast<void* (*)(GLenum, GLuint)>(oGlfwSetWindowHint)(GLFW_CONTEXT_NO_ERROR, GLFW_TRUE);


// ModPage(0x1156E0E5, 1);
Expand Down
4 changes: 2 additions & 2 deletions ff8_demaster/ff8_demaster.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@
<WarningLevel>Level3</WarningLevel>
<Optimization>Disabled</Optimization>
<SDLCheck>true</SDLCheck>
<PreprocessorDefinitions>NOMINMAX;GLEW_STATIC;WIN32;_WIN32;_DEBUG;FF8DEMASTER_EXPORTS;_WINDOWS;_USRDLL;_CRT_SECURE_NO_WARNINGS;USE_SERVER=1;_WIN32_WINNT=0x0601;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions>NOMINMAX;GLEW_STATIC;WIN32;_WIN32;_DEBUG;FF8DEMASTER_EXPORTS;_WINDOWS;_USRDLL;_CRT_SECURE_NO_WARNINGS;USE_SERVER=0;_WIN32_WINNT=0x0601;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ConformanceMode>Default</ConformanceMode>
<PrecompiledHeaderFile>
</PrecompiledHeaderFile>
Expand Down Expand Up @@ -170,7 +170,7 @@ del $(SolutionDir).dist\$(Configuration)\$(AssemblyName).lib</Command>
<WarningLevel>Level3</WarningLevel>
<Optimization>Disabled</Optimization>
<SDLCheck>true</SDLCheck>
<PreprocessorDefinitions>NOMINMAX;GLEW_STATIC;WIN32;_DEBUG;FF8DEMASTER_EXPORTS;_WINDOWS;_USRDLL;_CRT_SECURE_NO_WARNINGS;JAPANESE_PATCH=1;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions>NOMINMAX;GLEW_STATIC;WIN32;_DEBUG;FF8DEMASTER_EXPORTS;_WINDOWS;_USRDLL;_CRT_SECURE_NO_WARNINGS;JAPANESE_PATCH=1;USE_SERVER=0;_WIN32_WINNT=0x0601;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ConformanceMode>true</ConformanceMode>
<PrecompiledHeaderFile>
</PrecompiledHeaderFile>
Expand Down
2 changes: 1 addition & 1 deletion ff8_demaster/mymemory.h
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ const std::map<ADDRESS_NAME, std::vector<unsigned int>> PATCHADDRESS =
{BGFILENAME2 , std::vector<unsigned int>{ 0x0 , 0x0 , 0x18A85A4 , 0x18A8418 }},
{ CHANGEMODE , std::vector<unsigned int>{ 0x0 , 0x0 , 0x0 ,0x16327C0,} }, //+1FC for JP and EFIGS
{ STEAMADDR , std::vector<unsigned int>{ 0x0 , 0x0 , 0x0 ,0x16FED48,} }, //+1FC for JP and EFIGS
{ FIELD_CHAR_BLINK , std::vector<unsigned int>{ 0x0 , 0x0 , 0x0 ,0x0,} }, //TODO
{ FIELD_CHAR_BLINK , std::vector<unsigned int>{ 0x0 , 0x0 , 0x0 ,0x1637192,} }, //TODO
#endif
};

Expand Down

0 comments on commit 16d4c8e

Please sign in to comment.