Skip to content

Commit

Permalink
xrEngine: enable some checking on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
eagleivg committed Nov 6, 2018
1 parent 9cbcdb2 commit 6b75817
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/xrEngine/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@ set_target_properties(${PROJECT_NAME} PROPERTIES COTIRE_CXX_PREFIX_HEADER_INIT "
cotire(${PROJECT_NAME})

set_target_properties(${PROJECT_NAME} PROPERTIES PREFIX "")
target_link_libraries(${PROJECT_NAME} xrCore xrMiscMath luabind xrAPI xrSound xrScriptEngine ${LUA_LIBRARIES} ${THEORA_LIBRARY} ${OGG_LIBRARIES} xrCDB xrPhysics ${FREEIMAGE_LIBRARY} openal ${LOCKFILE_LIBRARIES} ${SDL_LIBRARIES})
target_link_libraries(${PROJECT_NAME} xrCore xrMiscMath luabind xrAPI xrSound xrScriptEngine xrNetServer ${LUA_LIBRARIES} ${THEORA_LIBRARY} ${OGG_LIBRARIES} xrCDB xrPhysics ${FREEIMAGE_LIBRARY} openal ${LOCKFILE_LIBRARIES} ${SDL_LIBRARIES})
xr_install(${PROJECT_NAME})

9 changes: 2 additions & 7 deletions src/xrEngine/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,8 @@ struct PathIncludePred
{
if (!ignored)
return true;
#if !defined(LINUX)
return allow_to_include_path(*ignored, path); //TODO port xrNetServer to Linux
#else
return false; // Noidea what happenning
#endif

return allow_to_include_path(*ignored, path);
}
};
}
Expand All @@ -85,14 +82,12 @@ ENGINE_API void InitSettings()
pSettings = new CInifile(fname, TRUE);
CHECK_OR_EXIT(pSettings->section_count(),
make_string("Cannot find file %s.\nReinstalling application may fix this problem.", fname));
#if !defined(LINUX)
xr_auth_strings_t ignoredPaths, checkedPaths;
fill_auth_check_params(ignoredPaths, checkedPaths); //TODO port xrNetServer to Linux
PathIncludePred includePred(&ignoredPaths);
CInifile::allow_include_func_t includeFilter;
includeFilter.bind(&includePred, &PathIncludePred::IsIncluded);
pSettingsAuth = new CInifile(fname, TRUE, TRUE, FALSE, 0, includeFilter);
#endif
FS.update_path(fname, "$game_config$", "game.ltx");
pGameIni = new CInifile(fname, TRUE);
CHECK_OR_EXIT(pGameIni->section_count(),
Expand Down
2 changes: 1 addition & 1 deletion src/xrNetServer/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ list(REMOVE_ITEM ${PROJECT_NAME}__SOURCES "${CMAKE_CURRENT_SOURCE_DIR}/./NET_Ser
list(REMOVE_ITEM ${PROJECT_NAME}__INCLUDES "${CMAKE_CURRENT_SOURCE_DIR}/./NET_Client.h")
list(REMOVE_ITEM ${PROJECT_NAME}__INCLUDES "${CMAKE_CURRENT_SOURCE_DIR}/./NET_Server.h")

add_definitions(-DXRGAME_EXPORTS -D_USRDLL)
add_definitions(-DXR_NETSERVER_EXPORTS -D_USRDLL)
add_library(${PROJECT_NAME} SHARED ${${PROJECT_NAME}__SOURCES} ${${PROJECT_NAME}__INCLUDES})

set_target_properties(${PROJECT_NAME} PROPERTIES COTIRE_CXX_PREFIX_HEADER_INIT "stdafx.h")
Expand Down

0 comments on commit 6b75817

Please sign in to comment.