File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ namespace RE::BSScript
9696 }
9797
9898 bVar3 = _InterlockedCompareExchange (reinterpret_cast <volatile long *>(&(this ->refCountAndHandleLock )),
99- uVar1 | 0x80000000 , uVar1) == uVar1;
99+ uVar1 | 0x80000000 , uVar1) == ( long ) uVar1;
100100
101101 } while (!bVar3);
102102 _mm_mfence ();
@@ -107,13 +107,12 @@ namespace RE::BSScript
107107
108108 void Object::IncRef ()
109109 {
110- std::uint32_t uVar1;
110+ std::uint32_t uVar1 = 0 ;
111111 std::uint32_t uVar2;
112- std::uint64_t uVar3;
113- std::uint32_t uVar4;
112+ // std::uint64_t uVar3;
113+ std::uint32_t uVar4 = 0 ;
114114 bool bVar5;
115115
116- uVar4 = 0 ;
117116 do {
118117 while (true ) {
119118 _mm_mfence ();
@@ -144,7 +143,7 @@ namespace RE::BSScript
144143 }
145144
146145 bVar5 = _InterlockedCompareExchange (reinterpret_cast <volatile long *>(&(this ->refCountAndHandleLock )),
147- uVar2 + 1 , uVar2) == uVar2;
146+ uVar2 + 1 , uVar2) == ( long ) uVar2;
148147 if (bVar5) {
149148 uVar1 = uVar2;
150149 return ;
Original file line number Diff line number Diff line change @@ -72,6 +72,8 @@ rule("commonlibsf.plugin")
7272 target :set (" arch" , " x64" )
7373 target :set (" kind" , " shared" )
7474
75+ target :add (" deps" , " commonlibsf" )
76+
7577 target :add (" installfiles" , target :targetfile (), { prefixdir = " SFSE/Plugins" })
7678 target :add (" installfiles" , target :symbolfile (), { prefixdir = " SFSE/Plugins" })
7779
Original file line number Diff line number Diff line change 11-- set minimum xmake version
2- set_xmakever (" 2.8.2 " )
2+ set_xmakever (" 3.0.0 " )
33
4- -- set project
4+ -- set project constants
55set_project (" commonlibsf" )
66set_arch (" x64" )
77set_languages (" c++23" )
88set_warnings (" allextra" )
99set_encodings (" utf-8" )
1010
11- -- add rules
11+ -- add common rules
1212add_rules (" mode.debug" , " mode.releasedbg" )
1313
14- -- add includes
14+ -- include subprojects
1515includes (" lib/commonlib-shared" )
1616includes (" xmake-rules.lua" )
1717
You can’t perform that action at this time.
0 commit comments