mirror of
https://github.com/alliedmodders/hl2sdk.git
synced 2024-12-23 01:59:43 +08:00
一些起源游戏的 SDK 镜像,来自alliedmodders
4235f23520
* fix conflicting return type
Example bad compile:
```c
[ 6%] Building CXX object CMakeFiles/TFTrue.dir/AutoUpdater.cpp.o
In file included from /home/steph/TFTrue/SDK.h:38,
from /home/steph/TFTrue/AutoUpdater.h:27,
from /home/steph/TFTrue/AutoUpdater.cpp:19:
/home/steph/TFTrue/hl2sdk-tf2/game/shared/gamemovement.h:45:24: error: conflicting return type specified for ‘virtual const Vector& CGameMovement::GetPlayerMins(bool) const’
45 | virtual const Vector& GetPlayerMins( bool ducked ) const;
| ^~~~~~~~~~~~~
In file included from /home/steph/TFTrue/hl2sdk-tf2/game/shared/gamemovement.h:15,
from /home/steph/TFTrue/SDK.h:38,
from /home/steph/TFTrue/AutoUpdater.h:27,
from /home/steph/TFTrue/AutoUpdater.cpp:19:
/home/steph/TFTrue/hl2sdk-tf2/game/shared/igamemovement.h:122:17: note: overridden function is ‘virtual Vector IGameMovement::GetPlayerMins(bool) const’
122 | virtual Vector GetPlayerMins( bool ducked ) const = 0;
| ^~~~~~~~~~~~~
In file included from /home/steph/TFTrue/SDK.h:38,
from /home/steph/TFTrue/AutoUpdater.h:27,
from /home/steph/TFTrue/AutoUpdater.cpp:19:
/home/steph/TFTrue/hl2sdk-tf2/game/shared/gamemovement.h:46:24: error: conflicting return type specified for ‘virtual const Vector& CGameMovement::GetPlayerMaxs(bool) const’
46 | virtual const Vector& GetPlayerMaxs( bool ducked ) const;
| ^~~~~~~~~~~~~
In file included from /home/steph/TFTrue/hl2sdk-tf2/game/shared/gamemovement.h:15,
from /home/steph/TFTrue/SDK.h:38,
from /home/steph/TFTrue/AutoUpdater.h:27,
from /home/steph/TFTrue/AutoUpdater.cpp:19:
/home/steph/TFTrue/hl2sdk-tf2/game/shared/igamemovement.h:123:17: note: overridden function is ‘virtual Vector IGameMovement::GetPlayerMaxs(bool) const’
123 | virtual Vector GetPlayerMaxs( bool ducked ) const = 0;
| ^~~~~~~~~~~~~
In file included from /home/steph/TFTrue/SDK.h:38,
from /home/steph/TFTrue/AutoUpdater.h:27,
from /home/steph/TFTrue/AutoUpdater.cpp:19:
/home/steph/TFTrue/hl2sdk-tf2/game/shared/gamemovement.h:47:24: error: conflicting return type specified for ‘virtual const Vector& CGameMovement::GetPlayerViewOffset(bool) const’
47 | virtual const Vector& GetPlayerViewOffset( bool ducked ) const;
| ^~~~~~~~~~~~~~~~~~~
In file included from /home/steph/TFTrue/hl2sdk-tf2/game/shared/gamemovement.h:15,
from /home/steph/TFTrue/SDK.h:38,
from /home/steph/TFTrue/AutoUpdater.h:27,
from /home/steph/TFTrue/AutoUpdater.cpp:19:
/home/steph/TFTrue/hl2sdk-tf2/game/shared/igamemovement.h:124:18: note: overridden function is ‘virtual Vector IGameMovement::GetPlayerViewOffset(bool) const’
124 | virtual Vector GetPlayerViewOffset( bool ducked ) const = 0;
| ^~~~~~~~~~~~~~~~~~~
gmake[2]: *** [CMakeFiles/TFTrue.dir/build.make:82: CMakeFiles/TFTrue.dir/AutoUpdater.cpp.o] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:95: CMakeFiles/TFTrue.dir/all] Error 2
gmake: *** [Makefile:103: all] Error 2
```
This should've been updated when this was updated:
|
||
---|---|---|
choreoobjects | ||
common | ||
devtools/bin | ||
game | ||
lib | ||
linux_sdk | ||
mathlib | ||
public | ||
tier1 | ||
utils | ||
vgui2/vgui_controls | ||
.hgignore | ||
Everything_SDK-2005.sln | ||
Game_Episodic-2005.sln | ||
Game_HL2-2005.sln | ||
Game_HL2MP-2005.sln | ||
Game_Scratch-2005.sln | ||
notes.txt |