mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-16 17:59:56 +00:00
Get build working on Apple Silicon
Will validate issues with Intel OSX later
This commit is contained in:
parent
856fcb7742
commit
1d7d3d5765
2 changed files with 5 additions and 2 deletions
|
@ -223,7 +223,10 @@ if(APPLE)
|
|||
if (FFmpeg_FOUND)
|
||||
find_library(COREVIDEO_FRAMEWORK CoreVideo)
|
||||
find_library(VDA_FRAMEWORK VideoDecodeAcceleration)
|
||||
target_link_libraries(openmw z ${COREVIDEO_FRAMEWORK} ${VDA_FRAMEWORK})
|
||||
target_link_libraries(openmw z ${COREVIDEO_FRAMEWORK} ${VDA_FRAMEWORK}
|
||||
"-framework VideoToolbox"
|
||||
"-framework AudioToolbox"
|
||||
"-framework CoreMedia")
|
||||
endif()
|
||||
endif(APPLE)
|
||||
|
||||
|
|
|
@ -104,7 +104,7 @@ void ESM::LuaScriptsCfg::adjustRefNums(const ESMReader& esm)
|
|||
throw std::runtime_error("Incorrect contentFile index");
|
||||
};
|
||||
|
||||
lua_State* L = lua_open();
|
||||
lua_State* L = luaL_newstate();
|
||||
LuaUtil::BasicSerializer serializer(adjustRefNumFn);
|
||||
|
||||
auto adjustLuaData = [&](std::string& data)
|
||||
|
|
Loading…
Reference in a new issue