diff --git a/lib/utils/CMakeLists.txt b/lib/utils/CMakeLists.txt index 26dbdabd..29f336d6 100644 --- a/lib/utils/CMakeLists.txt +++ b/lib/utils/CMakeLists.txt @@ -7,6 +7,7 @@ ADD_EXECUTABLE(zip_convert xzip/inzip.cpp xzip/outzip.cpp xzip/treezip.cpp + ${PROJECT_SOURCE_DIR}/src/vss/sys-noop.cpp ) #ADD_DEFINITIONS(-e SDL_main ) diff --git a/server/CMakeLists.txt b/server/CMakeLists.txt index f3f974b3..e9ea975d 100644 --- a/server/CMakeLists.txt +++ b/server/CMakeLists.txt @@ -12,7 +12,10 @@ SET(server_SRCS #win32f.cpp -- candidat to remove ) -ADD_EXECUTABLE(vangers_server ${server_SRCS}) +ADD_EXECUTABLE(vangers_server + ${server_SRCS} + ${PROJECT_SOURCE_DIR}/src/vss/sys-noop.cpp +) IF(WIN32) SET(WIN_LIB diff --git a/src/vss/sys-noop.cpp b/src/vss/sys-noop.cpp new file mode 100644 index 00000000..10ee66de --- /dev/null +++ b/src/vss/sys-noop.cpp @@ -0,0 +1,20 @@ +// +// Created by caiiiycuk on 02.12.24. +// + +void sys_initScripts(const char*) { +} + +bool sys_readyQuant() { + return true; +} + +void sys_runtimeObjectQuant(int) { +} + +void sys_tickQuant() { +} + +extern "C" const char* sys_fileOpenQuant(const char* file, unsigned) { + return file; +} diff --git a/surmap/CMakeLists.txt b/surmap/CMakeLists.txt index f392f1e9..d3e46ea9 100644 --- a/surmap/CMakeLists.txt +++ b/surmap/CMakeLists.txt @@ -2,6 +2,7 @@ INCLUDE_DIRECTORIES(AFTER "${PROJECT_SOURCE_DIR}/lib/xtool" "${PROJECT_SOURCE_DIR}/lib/xgraph" "${PROJECT_SOURCE_DIR}" + "${PROJECT_SOURCE_DIR}/src/vss/duktape-2.7.0" ) SET(surmap_SRCS @@ -26,6 +27,15 @@ SET_SOURCE_FILES_PROPERTIES(${surmap_SRCS} "-Wno-parentheses -Wno-unused-variable -Wno-unused-parameter -Wno-register -Wno-dangling-else \ -Werror=missing-field-initializers -Werror=uninitialized") +SET(vss_SRCS + ${PROJECT_SOURCE_DIR}/src/vss/sys.cpp + ${PROJECT_SOURCE_DIR}/src/vss/sys-modules.cpp + ${PROJECT_SOURCE_DIR}/src/vss/sys-bridge.cpp + ${PROJECT_SOURCE_DIR}/src/vss/sys-quant.cpp + ${PROJECT_SOURCE_DIR}/src/vss/duktape-2.7.0/duktape.c + ${PROJECT_SOURCE_DIR}/src/vss/duktape-2.7.0/extras/console/duk_console.c + ${PROJECT_SOURCE_DIR}/src/vss/duktape-2.7.0/extras/module-node/duk_module_node.c) + SET(vangers_surmap_SRCS "${PROJECT_SOURCE_DIR}/src/3d/3dobject.cpp" "${PROJECT_SOURCE_DIR}/src/3d/3d_math.cpp" @@ -45,7 +55,7 @@ SET(vangers_surmap_SRCS "${PROJECT_SOURCE_DIR}/src/rle.cpp" ) -ADD_EXECUTABLE(surmap ${surmap_SRCS} ${vangers_surmap_SRCS}) +ADD_EXECUTABLE(surmap ${surmap_SRCS} ${vangers_surmap_SRCS} ${vss_SRCS}) SET_SOURCE_FILES_PROPERTIES(${vangers_surmap_SRCS} PROPERTIES COMPILE_FLAGS "-Wno-parentheses -Wno-unused-variable -Wno-unused-parameter -Wno-dangling-else")