1
0
mirror of https://github.com/alliedmodders/hl2sdk.git synced 2024-12-23 01:59:43 +08:00
一些起源游戏的 SDK 镜像,来自alliedmodders
Go to file
sappho 4235f23520
fix conflicting return type (#99)
* 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:

5ad032f350

* part 2
2022-05-23 04:56:52 +00:00
choreoobjects Modified SDK for GCC 4.2 2008-09-15 02:50:57 -05:00
common Fixed conflict between min/max macros and std::min/max when using GCC >= 4.2. 2011-04-28 01:30:09 -05:00
devtools/bin Added most recent version of unmodified HL2 SDK for Orange Box engine 2008-09-15 01:07:45 -05:00
game fix conflicting return type (#99) 2022-05-23 04:56:52 +00:00
lib Recompile tier1. 2018-05-05 10:53:32 -04:00
linux_sdk Imported more changes from sdk2013. 2017-05-30 15:22:52 -05:00
mathlib Fix cases where V_swap didn't need the global scope resolution operator 2016-01-24 17:23:29 -08:00
public Get rid of warnings (#88) 2021-11-04 21:14:31 +00:00
tier1 Further ConVar ABI fixes. 2018-05-05 10:26:01 -04:00
utils Fix cases where V_swap didn't need the global scope resolution operator 2016-01-24 17:23:29 -08:00
vgui2/vgui_controls Fixed conflict between min/max macros and std::min/max when using GCC >= 4.2. 2011-04-28 01:30:09 -05:00
.hgignore Added .hgignore file. 2011-04-10 01:41:48 -05:00
Everything_SDK-2005.sln Modified SDK for GCC 4.2 2008-09-15 02:50:57 -05:00
Game_Episodic-2005.sln Added most recent version of unmodified HL2 SDK for Orange Box engine 2008-09-15 01:07:45 -05:00
Game_HL2-2005.sln Added most recent version of unmodified HL2 SDK for Orange Box engine 2008-09-15 01:07:45 -05:00
Game_HL2MP-2005.sln Added most recent version of unmodified HL2 SDK for Orange Box engine 2008-09-15 01:07:45 -05:00
Game_Scratch-2005.sln Added most recent version of unmodified HL2 SDK for Orange Box engine 2008-09-15 01:07:45 -05:00
notes.txt Modified SDK for GCC 4.2 2008-09-15 02:50:57 -05:00