1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2024-11-08 00:37:15 +01:00

Miscellaneous changes.

This commit is contained in:
Sandu Liviu Catalin 2020-04-17 15:25:58 +03:00
parent 603d358e5f
commit 040a7dd7e2
3 changed files with 4 additions and 4 deletions

View File

@ -12,7 +12,7 @@ option(ENABLE_MYSQL "Enable the MySQL library." OFF)
# Default to c++14 standard # Default to c++14 standard
if(CMAKE_VERSION VERSION_LESS "3.1") if(CMAKE_VERSION VERSION_LESS "3.1")
if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU") if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14") set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14")
endif() endif()
else() else()
# Apparently the above does not work with cmake from on debian 8 # Apparently the above does not work with cmake from on debian 8

View File

@ -359,7 +359,7 @@ void Register_Core(HSQUIRRELVM vm)
.Func(_SC("OnPostLoad"), &SqGetPostLoadEvent) .Func(_SC("OnPostLoad"), &SqGetPostLoadEvent)
.Func(_SC("OnUnload"), &SqGetUnloadEvent) .Func(_SC("OnUnload"), &SqGetUnloadEvent)
.SquirrelFunc(_SC("ForceEnableNullEntities"), &SqForceEnableNullEntities) .SquirrelFunc(_SC("ForceEnableNullEntities"), &SqForceEnableNullEntities)
.SquirrelFunc(_SC("LoadScript"), &SqLoadScript) .SquirrelFunc(_SC("LoadScript"), &SqLoadScript, -3, ".b.")
.SquirrelFunc(_SC("On"), &SqGetEvents); .SquirrelFunc(_SC("On"), &SqGetEvents);
RootTable(vm).Bind(_SC("SqCore"), corens); RootTable(vm).Bind(_SC("SqCore"), corens);

View File

@ -129,8 +129,8 @@ void Register_Misc(HSQUIRRELVM vm)
RootTable(vm).Bind(_SC("SqServer"), srvns); RootTable(vm).Bind(_SC("SqServer"), srvns);
RootTable(vm) RootTable(vm)
.SquirrelFunc(_SC("FindPlayer"), &Player_FindAuto) .SquirrelFunc(_SC("FindPlayer"), &Player_FindAuto, -2, ".i|f|s")
.SquirrelFunc(_SC("PlayerExists"), &Player_ExistsAuto) .SquirrelFunc(_SC("PlayerExists"), &Player_ExistsAuto, -2, ".i|f|s")
.Func(_SC("GetKeyCodeName"), &GetKeyCodeName) .Func(_SC("GetKeyCodeName"), &GetKeyCodeName)
.FmtFunc(_SC("SetKeyCodeName"), &SetKeyCodeName) .FmtFunc(_SC("SetKeyCodeName"), &SetKeyCodeName)
.Func(_SC("GetModelName"), &GetModelName) .Func(_SC("GetModelName"), &GetModelName)