From 074d764560194a361c335000bc377697df652340 Mon Sep 17 00:00:00 2001 From: Zeex Date: Wed, 15 Oct 2014 15:39:51 +0700 Subject: [PATCH 1/2] Enable /O2 in Release configuration --- YSF.vcxproj | 330 ++++++++++++++++++++++++++-------------------------- 1 file changed, 165 insertions(+), 165 deletions(-) diff --git a/YSF.vcxproj b/YSF.vcxproj index e6e6293..cb5e509 100644 --- a/YSF.vcxproj +++ b/YSF.vcxproj @@ -1,166 +1,166 @@ - - - - - Release - Win32 - - - Debug - Win32 - - - - {0843F08F-F40F-4B9B-1D29-394309558029} - Win32Proj - YSF - YSF - - - - DynamicLibrary - false - MultiByte - v120 - false - - - DynamicLibrary - true - MultiByte - v120 - - - - - - - - - - - - - false - bin\win32\Release\ - obj\win32\Release\ - YSF - .dll - - - true - bin\win32\Debug\ - obj\win32\Debug\ - YSF - .dll - - - - NotUsing - Level3 - true - _CRT_SECURE_NO_WARNINGS;NDEBUG;SAMPGDK_AMALGAMATION;%(PreprocessorDefinitions) - include;lib;%(AdditionalIncludeDirectories) - Disabled - false - false - false - /MP %(AdditionalOptions) - Neither - false - false - false - Default - false - - - BOOST_ALL_NO_LIB;BOOST_CHRONO_HEADER_ONLY;_CRT_SECURE_NO_WARNINGS;NDEBUG;SAMPGDK_AMALGAMATION;%(PreprocessorDefinitions) - include;lib;%(AdditionalIncludeDirectories) - - - Windows - true - true - true - bin\win32\Release\YSF.lib - YSF.def - C:\Users\Ati\Desktop\SERVER\plugins\YSF.dll - kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;psapi.lib;winmm.lib;%(AdditionalDependencies) - false - false - - - - - NotUsing - Level3 - true - BOOST_ALL_NO_LIB;BOOST_CHRONO_HEADER_ONLY;_CRT_SECURE_NO_WARNINGS;SAMPGDK_AMALGAMATION;%(PreprocessorDefinitions) - include;lib;%(AdditionalIncludeDirectories) - EditAndContinue - $(OutDir)YSF.pdb - Disabled - - - BOOST_ALL_NO_LIB;BOOST_CHRONO_HEADER_ONLY;_CRT_SECURE_NO_WARNINGS;SAMPGDK_AMALGAMATION;%(PreprocessorDefinitions) - include;lib;%(AdditionalIncludeDirectories) - - - Windows - true - bin\win32\Debug\YSF.lib - YSF.def - true - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + Release + Win32 + + + Debug + Win32 + + + + {0843F08F-F40F-4B9B-1D29-394309558029} + Win32Proj + YSF + YSF + + + + DynamicLibrary + false + MultiByte + v120 + false + + + DynamicLibrary + true + MultiByte + v120 + + + + + + + + + + + + + false + bin\win32\Release\ + obj\win32\Release\ + YSF + .dll + + + true + bin\win32\Debug\ + obj\win32\Debug\ + YSF + .dll + + + + NotUsing + Level3 + true + _CRT_SECURE_NO_WARNINGS;NDEBUG;SAMPGDK_AMALGAMATION;%(PreprocessorDefinitions) + include;lib;%(AdditionalIncludeDirectories) + MaxSpeed + false + false + false + /MP %(AdditionalOptions) + Neither + false + false + false + Default + false + + + BOOST_ALL_NO_LIB;BOOST_CHRONO_HEADER_ONLY;_CRT_SECURE_NO_WARNINGS;NDEBUG;SAMPGDK_AMALGAMATION;%(PreprocessorDefinitions) + include;lib;%(AdditionalIncludeDirectories) + + + Windows + true + true + true + bin\win32\Release\YSF.lib + YSF.def + C:\Users\Ati\Desktop\SERVER\plugins\YSF.dll + kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;psapi.lib;winmm.lib;%(AdditionalDependencies) + false + false + + + + + NotUsing + Level3 + true + BOOST_ALL_NO_LIB;BOOST_CHRONO_HEADER_ONLY;_CRT_SECURE_NO_WARNINGS;SAMPGDK_AMALGAMATION;%(PreprocessorDefinitions) + include;lib;%(AdditionalIncludeDirectories) + EditAndContinue + $(OutDir)YSF.pdb + Disabled + + + BOOST_ALL_NO_LIB;BOOST_CHRONO_HEADER_ONLY;_CRT_SECURE_NO_WARNINGS;SAMPGDK_AMALGAMATION;%(PreprocessorDefinitions) + include;lib;%(AdditionalIncludeDirectories) + + + Windows + true + bin\win32\Debug\YSF.lib + YSF.def + true + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file From acaef8248730584683ed2f2a7389370d53a3655d Mon Sep 17 00:00:00 2001 From: Zeex Date: Wed, 15 Oct 2014 15:19:35 +0700 Subject: [PATCH 2/2] Fix missing terminator in RedirectedNatives https://github.com/Zeex/subhook/issues/3 --- src/Scripting.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Scripting.cpp b/src/Scripting.cpp index c2436ec..c28f2fe 100644 --- a/src/Scripting.cpp +++ b/src/Scripting.cpp @@ -5339,7 +5339,9 @@ AMX_NATIVE_INFO RedirecedtNatives[] = { "AddStaticPickup", Natives::CreatePickup }, { "DestroyPickup", Natives::DestroyPickup }, - { "GetWeaponName", Natives::FIXED_GetWeaponName } + { "GetWeaponName", Natives::FIXED_GetWeaponName }, + + { 0, 0 } }; int InitScripting(AMX *amx)