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:
parent
603d358e5f
commit
040a7dd7e2
@ -12,7 +12,7 @@ option(ENABLE_MYSQL "Enable the MySQL library." OFF)
|
||||
# Default to c++14 standard
|
||||
if(CMAKE_VERSION VERSION_LESS "3.1")
|
||||
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()
|
||||
else()
|
||||
# Apparently the above does not work with cmake from on debian 8
|
||||
|
@ -359,7 +359,7 @@ void Register_Core(HSQUIRRELVM vm)
|
||||
.Func(_SC("OnPostLoad"), &SqGetPostLoadEvent)
|
||||
.Func(_SC("OnUnload"), &SqGetUnloadEvent)
|
||||
.SquirrelFunc(_SC("ForceEnableNullEntities"), &SqForceEnableNullEntities)
|
||||
.SquirrelFunc(_SC("LoadScript"), &SqLoadScript)
|
||||
.SquirrelFunc(_SC("LoadScript"), &SqLoadScript, -3, ".b.")
|
||||
.SquirrelFunc(_SC("On"), &SqGetEvents);
|
||||
|
||||
RootTable(vm).Bind(_SC("SqCore"), corens);
|
||||
|
@ -129,8 +129,8 @@ void Register_Misc(HSQUIRRELVM vm)
|
||||
RootTable(vm).Bind(_SC("SqServer"), srvns);
|
||||
|
||||
RootTable(vm)
|
||||
.SquirrelFunc(_SC("FindPlayer"), &Player_FindAuto)
|
||||
.SquirrelFunc(_SC("PlayerExists"), &Player_ExistsAuto)
|
||||
.SquirrelFunc(_SC("FindPlayer"), &Player_FindAuto, -2, ".i|f|s")
|
||||
.SquirrelFunc(_SC("PlayerExists"), &Player_ExistsAuto, -2, ".i|f|s")
|
||||
.Func(_SC("GetKeyCodeName"), &GetKeyCodeName)
|
||||
.FmtFunc(_SC("SetKeyCodeName"), &SetKeyCodeName)
|
||||
.Func(_SC("GetModelName"), &GetModelName)
|
||||
|
Loading…
Reference in New Issue
Block a user