Skip to content

Commit

Permalink
Officially remove Windows support
Browse files Browse the repository at this point in the history
  • Loading branch information
Popax21 committed Jun 26, 2023
1 parent 48e2cf5 commit 7ba31f6
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,14 @@ generic patches, without the need for any map-specific support scripts, as well
as by only making the minimum number of changes required for the maps to be
playable.

Currently, the plugin only works on Linux, however Windows support is planned to
be added eventually.
Currently, the plugin only works on Linux. Windows support is theoretically
possible (the plugin foundation code does contain initial untested Windows
support code), however as the Windows release of Portal 2 was compiled with an
entirely different compiler (MSVC vs GCC), all patches would have to be adjusted
to work on Windows. If you want to help out by doing this yourself, please let
me know - I will gladly assist you throughout the process, and merge your work
once you finish. To get started, see `plugin/src/anchors.cpp` and the offsets /
orig-sequences in the actual patches.

Patches include:
- removing the player cap from all multiplayer game session
Expand Down
4 changes: 1 addition & 3 deletions plugin/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@ SDKSTATLIB := tier1.a mathlib.a tier2.a
SDKSTATLIB := $(addprefix $(SDK)/mp/src/lib/public/linux32/, $(SDKSTATLIB))

ifeq ($(OS), Windows_NT)
# Don't tell it that this is GCC on Windows, otherwise the platform will complain
# Fake being MSVC instead
OSFLAGS := -DWIN32 -D_WIN32 -D_MSC_VER -D_MSC_FULL_VER=180030723 -Isystem compat_inc
$(error Windows is not yet supported - you can use this Makefile as a baseline for creating an MSVC .vcxproj (please PR it if you do!))
else
OSFLAGS := -DPOSIX -D_POSIX -DLINUX -D_LINUX -DGNUC -DCOMPILER_GCC
endif
Expand Down
1 change: 0 additions & 1 deletion plugin/compat_inc/intrin.h

This file was deleted.

0 comments on commit 7ba31f6

Please sign in to comment.