Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug #8

Open
wants to merge 992 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
992 commits
Select commit Hold shift + click to select a range
126d614
Merge pull request #263 from Dramacydal/packet_limit
RElesgoe Nov 22, 2016
cdf08d3
try appveyour artifacts
HarpyWar Nov 23, 2016
37447f0
Update appveyor.yml
HarpyWar Nov 23, 2016
a8b7114
Update appveyor.yml
HarpyWar Nov 23, 2016
126bfb3
Update appveyor.yml
HarpyWar Nov 23, 2016
1963732
Update appveyor.yml
HarpyWar Nov 23, 2016
83b996b
Update appveyor.yml
HarpyWar Nov 23, 2016
8b8425b
Update appveyor.yml
HarpyWar Nov 23, 2016
3d04757
Update appveyor.yml
HarpyWar Nov 23, 2016
2f5da22
Update appveyor.yml
HarpyWar Nov 24, 2016
13e7031
build instructions for more operating systems
cen1 Dec 26, 2016
34d4e02
use libc++ with clang by default
cen1 Dec 26, 2016
5d3b663
Merge pull request #273 from cen1/extendbuildreadme
RElesgoe Dec 26, 2016
2d7e3ad
Merge pull request #274 from cen1/libc++bydefault
RElesgoe Dec 27, 2016
dbf4ad5
Update ports.md
RElesgoe Dec 27, 2016
217d55c
versioncheck entry for w3 1.27b
cen1 Dec 28, 2016
ffdbd53
move old entries to the bottom
cen1 Dec 30, 2016
edb67aa
centos7 gcc fix
cen1 Dec 30, 2016
af3d0b5
Update ports.md
RElesgoe Dec 30, 2016
4578376
Merge pull request #279 from cen1/w3127b
RElesgoe Dec 30, 2016
a4c4b03
Merge pull request #280 from cen1/extendbuildreadme
RElesgoe Dec 30, 2016
ecb27e7
Fixes pvpgn/pvpgn-server#260
Aloki Jan 4, 2017
b0ca992
Merge remote-tracking branch 'refs/remotes/origin/master' into pvpgn/…
Aloki Jan 4, 2017
cd17f6a
Merge pull request #282 from Aloki/master
RElesgoe Jan 4, 2017
fe075e8
EPEL repo already have CMake 3.6
Aloki Jan 4, 2017
860eb4c
Two commands can be used
Aloki Jan 4, 2017
fa61eba
Fix pvpgn/pvpgn-server#265
Aloki Jan 5, 2017
30f085c
Merge pull request #283 from Aloki/master
RElesgoe Jan 17, 2017
e2fb797
Update fmt to 3.0.1
RElesgoe Jan 17, 2017
026751e
Fix issue when displaying online users in the Windows GUI
RElesgoe Jan 17, 2017
61be2e6
Add VersionCheck entries for Diablo 2 and Diablo 2: Lord of Destructi…
RElesgoe Jan 17, 2017
d55cb60
Remove reduntant word "public" from whois, to return compatibility wi…
HarpyWar Jan 18, 2017
b78af39
Fix format mistakes from commit https://github.com/pvpgn/pvpgn-server…
HarpyWar Jan 19, 2017
50c481d
move language codes and countries in common.xml to allow manage langu…
HarpyWar Jan 25, 2017
577ccf7
Fix logic in sending custom and user selected icons
Zakamurite Mar 7, 2017
bb0202c
Merge pull request #292 from Dramacydal/icons
RElesgoe Mar 9, 2017
a1a4d48
Ignore /.vs folder in git
RElesgoe Mar 21, 2017
9606689
Use correct case of ver-IX86-1.mpq in versioncheck.conf
RElesgoe Mar 21, 2017
38c78a5
Fix handling of WC3 MOTD file
RElesgoe Mar 21, 2017
3b46205
- Improved code safety
RElesgoe Mar 21, 2017
69da5ab
Change version from 1.99.7.1-PRO to 1.99.7.1.1-PRO
RElesgoe Mar 21, 2017
2bbeaba
Update appveyor.yml
HarpyWar Mar 30, 2017
9b621b4
Update appveyor.yml
HarpyWar Mar 30, 2017
b5771e7
Update appveyor.yml
HarpyWar Mar 30, 2017
d5ea411
fix magic builder link
cen1 Mar 29, 2017
8da1718
zlib names typo
cen1 Mar 29, 2017
9ee4009
Update appveyor.yml
HarpyWar Apr 3, 2017
0ae55c1
versioncheck for w3 1.28
cen1 Apr 22, 2017
1824ce6
versioncheck for w3 1.28.1, works with w3l 1.28 with no changes
cen1 Apr 28, 2017
424ab7c
fix entry ordering
cen1 May 20, 2017
ccad33b
support for w3 1.28.2
cen1 May 20, 2017
d5b7a51
Merge pull request #304 from cen1/versioncheckw31281
RElesgoe May 20, 2017
7a5741d
Update appveyor.yml
HarpyWar May 22, 2017
c057e4b
Update appveyor.yml
HarpyWar May 22, 2017
71f1d2c
Update appveyor.yml
HarpyWar May 22, 2017
b331c9f
Update appveyor.yml
HarpyWar May 22, 2017
7c6be2e
Update appveyor.yml
HarpyWar May 22, 2017
c1529fc
Update appveyor.yml
HarpyWar May 22, 2017
9ae0fce
Update appveyor.yml
HarpyWar May 22, 2017
5b033ff
Update appveyor.yml
HarpyWar May 22, 2017
a0b67d1
Update appveyor.yml
HarpyWar May 22, 2017
77570d0
(bug fix) increase sizes of database columns https://github.com/pvpgn…
HarpyWar May 23, 2017
601798c
(bug fix) symbol ` is unacceptable in syntax of pgsql and odbc https:…
HarpyWar May 23, 2017
5608370
(bug fix) make sqlite3 working again https://github.com/pvpgn/pvpgn-s…
HarpyWar May 23, 2017
1454cdd
switch log line from error to debug https://github.com/pvpgn/pvpgn-se…
HarpyWar May 24, 2017
f37309e
add missing diablo 2 gametypes for open battle.net https://github.com…
HarpyWar May 24, 2017
5c59124
fix mistake from the previous commit
HarpyWar May 24, 2017
77ea946
* fix icons.conf variables for compatibility with a plain mode https:…
HarpyWar May 25, 2017
dcd4ffb
forgot that first variable always corresponds to icon_key
HarpyWar May 25, 2017
9e0a014
- Fix pre-filled username input in Windows GUI
RElesgoe May 29, 2017
8b333d0
Check for null friends list before attempting to unload an account's …
RElesgoe May 29, 2017
95ab5fa
fix https://github.com/pvpgn/pvpgn-server/commit/1454cdd2565cb2e056bb…
HarpyWar Jul 4, 2017
3edbffb
Fixes for banners:
HarpyWar Jul 14, 2017
408c3ce
fix mistake
HarpyWar Jul 14, 2017
2f60147
fix banners https://github.com/pvpgn/pvpgn-server/commit/3edbffb955d…
HarpyWar Jul 15, 2017
3a09bec
1.28 versioncheck series
cen1 Jul 15, 2017
d232c31
Merge pull request #318 from cen1/128updates
RElesgoe Aug 8, 2017
4c6f55d
List supported clients in readme
RElesgoe Aug 8, 2017
39a391c
Rename COPYING to LICENSE
RElesgoe Aug 8, 2017
c142e00
Updated supported clients in readme
RElesgoe Aug 8, 2017
517bc3a
Delete IGNOREME
RElesgoe Aug 8, 2017
dc3d64e
fixes issue 314
cen1 Sep 5, 2017
7f90cc2
Fix compiler detection and flag passing
RElesgoe Dec 15, 2017
abe0cf8
Added -O3 -march=native -mtune=native flags for G++ and Clang
RElesgoe Dec 15, 2017
a4afc10
Re-add UNICODE and _UNICODE defines for MSVC
RElesgoe Dec 17, 2017
94fb684
Update .gitignore
RElesgoe Jan 4, 2018
c2ee0a3
Update JSON for Modern C++ from 2.0.2 to 3.0.1
RElesgoe Jan 4, 2018
a78355e
Replace use of deprecated function that serializes a stream to a json…
RElesgoe Jan 4, 2018
b75ac5e
Overhaul versioncheck system
RElesgoe Feb 10, 2018
10b63de
Fix build
RElesgoe Feb 11, 2018
05ae34e
I don't know how this happened
RElesgoe Feb 11, 2018
b5e55b4
Update appveyour.yml
HarpyWar Feb 11, 2018
85f26eb
Update appveyor.yml
HarpyWar Mar 2, 2018
9c326d3
Forbid reading of BNET\acct\verifier with /set
HarpyWar Mar 28, 2018
f8dd2b8
Update JSON for Modern C++ from 3.0.1 to 3.1.2
RElesgoe Apr 8, 2018
497e7a9
- Removed version_exeinfo_match and skip_versioncheck from bnetd.conf
RElesgoe Apr 23, 2018
bc0590f
Use uniform initialization instead of initializer list
RElesgoe Apr 23, 2018
4e7163f
Reordered code
RElesgoe Apr 23, 2018
2c10c89
Fix multi-character constant warning
RElesgoe Apr 23, 2018
05d00d1
Clear cr_entries on unload
RElesgoe Apr 25, 2018
e5ec516
Remove VERSIONCHECK_INTERNAL_ACCESS macro
RElesgoe Apr 25, 2018
5cc3771
Change vc_entries to use std::unordered_map instead of std::forward_list
RElesgoe Apr 26, 2018
47ba463
Add versioncheck.md to docs/
RElesgoe Apr 26, 2018
74b06d0
Overhaul versioncheck system (#340)
RElesgoe Apr 29, 2018
5699020
Remove /src/autoconf directory
RElesgoe Apr 29, 2018
0923f6a
Remove cdb support
RElesgoe Apr 29, 2018
ee9d844
Revert accidental change
RElesgoe May 3, 2018
1de80bf
Change version number from 1.99.7.1.1 to 1.99.7.2.0
RElesgoe May 3, 2018
0695ed0
Merge branch 'master' into develop
RElesgoe May 3, 2018
966751b
Fix crash when a client connects with no corresponding versioncheck e…
RElesgoe May 6, 2018
6c2b35c
Pass const char pointer instead of char to packet_append_string() in …
RElesgoe May 6, 2018
7d0b2e7
Merge branch 'develop' of https://github.com/pvpgn/pvpgn-server into …
RElesgoe May 6, 2018
b53e0b1
Add Coverity Scan to Travis CI
RElesgoe May 6, 2018
007dc8a
Merge pull request #347 from pvpgn/develop
RElesgoe May 6, 2018
2e2232c
Move crash dump generation into a separate file winmain.cpp
HarpyWar May 7, 2018
4d1025d
* Add debug information for crash dumps. `/Zi` flag was missing and d…
HarpyWar May 7, 2018
b186b23
add `pdb` generation for d2cs and d2dbs
HarpyWar May 7, 2018
c1c0c77
* fix cmake linker flags
HarpyWar May 8, 2018
9796253
fix artifact file name
HarpyWar May 8, 2018
70c6549
set compiler and linker flags only for msvc
HarpyWar May 8, 2018
33a70d1
Move crash dump generation into a separate file winmain.cpp
HarpyWar May 7, 2018
90fa311
* Add debug information for crash dumps. `/Zi` flag was missing and d…
HarpyWar May 7, 2018
0d1c09e
add `pdb` generation for d2cs and d2dbs
HarpyWar May 7, 2018
4235aa8
* fix cmake linker flags
HarpyWar May 8, 2018
f7ba9ec
fix artifact file name
HarpyWar May 8, 2018
36f9925
set compiler and linker flags only for msvc
HarpyWar May 8, 2018
4d87132
Fixed memory leak when _client_logonproofreq() returns without callin…
RElesgoe May 16, 2018
222f4cd
Fixed memory leak in _client_passchangeproofreq() when returning with…
RElesgoe May 16, 2018
488f067
Fixed memory leak in _client_authreq109() when returning without call…
RElesgoe May 16, 2018
09caba4
Remove deprecated options from bnetd.conf for Windows
RElesgoe May 17, 2018
64386a8
Merge branch 'develop' of https://github.com/pvpgn/pvpgn-server into …
RElesgoe May 17, 2018
69b4b7e
- Added additional logging
RElesgoe May 18, 2018
c29b950
Added versioncheck entries for StarCraft 1.17.0 and StarCraft: Brood …
RElesgoe May 18, 2018
2bb5613
Fixed typo
RElesgoe May 18, 2018
1212e04
Added ad000002.smk to installation
RElesgoe May 18, 2018
8464f2b
Fixed /games command to hide private games when hide_pass_games is tr…
RElesgoe May 18, 2018
682abe3
Update icon and supported StarCraft versions in README.md
RElesgoe May 28, 2018
08b42c5
Fixed memory leak in game_report() when returning without freeing lad…
RElesgoe May 28, 2018
df837c6
Fixed memory leak in ipbanlist_check() when returning without freeing…
RElesgoe May 28, 2018
7a1816b
Renamed COUNTRYINFO_109 packet to AUTH_INFO
RElesgoe May 31, 2018
6ab1b48
Removed eventlog calls from conn_set_archtag() and conn_set_clienttag()
RElesgoe May 31, 2018
9aa884e
Modernized timing in accountlist_load_all()
RElesgoe Jun 12, 2018
ddc84e8
Create versioncheck entries for StarCraft and StarCraft: Brood War 1.…
RElesgoe Jun 26, 2018
e5d0aab
Update downloads badge in readme
RElesgoe Jul 9, 2018
9a1a830
Update PvPGN verion to 1.99.7.2.1
RElesgoe Jul 9, 2018
6698e03
Add StarCraft and StarCraft: Brood War 1.18.0 versioncheck entry
RElesgoe Jul 9, 2018
2b503e0
Merge branch 'master' into develop
RElesgoe Jul 9, 2018
9e7c471
Merge pull request #362 from pvpgn/develop
RElesgoe Jul 10, 2018
2b22068
Conditionally check result when WITH_LUA is defined
RElesgoe Jul 15, 2018
d2708b5
Revert "Conditionally check result when WITH_LUA is defined"
RElesgoe Jul 15, 2018
c9be8ce
Conditionally check result when WITH_LUA is defined
RElesgoe Jul 15, 2018
e4df12b
Remove unnecessary c_str() call
RElesgoe Jul 15, 2018
3284ab3
Change type of len from unsigned int to std:size_t
RElesgoe Jul 15, 2018
d7e0392
Change type of i from unsigned int to std::size_t
RElesgoe Jul 15, 2018
523a87c
Remove unnecessary length check
RElesgoe Jul 15, 2018
beeb0c3
Remove unnecessary length check
RElesgoe Jul 15, 2018
e16e185
Upgrade fmt from 3.0.1 to 5.1.0
RElesgoe Jul 21, 2018
e4e8579
Merge branch 'develop' of https://github.com/pvpgn/pvpgn-server into …
RElesgoe Jul 21, 2018
9ebaef6
Remove Coverity Scan from Travis config
RElesgoe Jul 27, 2018
d1d9876
Build commits from `develop` branch in Travis
RElesgoe Jul 27, 2018
29b5f2f
Remove unnecessary ppa in Travis config
RElesgoe Jul 27, 2018
a9b2a48
Specify C++ standard requirement in CMake
RElesgoe Jul 27, 2018
0a20cf4
Replace subdirs() with multiple add_subdirectory() calls
RElesgoe Jul 27, 2018
0c64028
Fix compilation
RElesgoe Jul 27, 2018
4a4208a
Remove unused code
RElesgoe Jul 27, 2018
1226f0f
Remove code related to `HAVE_CONFIG_H`
RElesgoe Jul 27, 2018
ae25d2d
Improve CMake files
RElesgoe Jul 27, 2018
672e81e
Fixed file existence check in CMake
RElesgoe Jul 29, 2018
e1ff375
Add additional includes
RElesgoe Jul 29, 2018
6ca46ac
Re-added make command to Travis config file
RElesgoe Jul 29, 2018
9378a8d
Fixed include placement
RElesgoe Jul 29, 2018
5160756
Changed binary names from `bnetd` to `PvPGN`/`PvPGNConsole`, `d2cs` t…
RElesgoe Jul 29, 2018
b684ef9
Revert "Changed binary names from `bnetd` to `PvPGN`/`PvPGNConsole`, …
RElesgoe Jul 29, 2018
5225b5a
Re-add FindZLIB.cmake
RElesgoe Aug 1, 2018
a633c1e
Revert "Re-add FindZLIB.cmake"
RElesgoe Aug 1, 2018
44ae82c
Remove dependency on afxres.h when compiling without gui
RElesgoe Aug 1, 2018
06f967c
Install PDB files along with their binaries for bnetd, d2cs, and d2dbs
RElesgoe Aug 10, 2018
ce38172
Update AppVeyor to configure and build PvPGN with CMake and MSBuild d…
RElesgoe Aug 10, 2018
ae3bac9
Fixed syntax error
RElesgoe Aug 10, 2018
a83510f
Install PDB files only when using Visual Studio and Windows
RElesgoe Aug 10, 2018
8ec8122
Fixed typo
RElesgoe Aug 11, 2018
cdb41e2
Fixed error
RElesgoe Aug 11, 2018
a9f7fea
Add `vcpkg update` before installing packages
RElesgoe Aug 11, 2018
26a7835
Add vcpkg packages to cache
RElesgoe Aug 11, 2018
57b93c6
Update vcpkg through git
RElesgoe Aug 14, 2018
7ba9dfd
Install libmariadb instead of libmysql
RElesgoe Aug 15, 2018
92787f2
Fix error
RElesgoe Aug 15, 2018
3f0bd8b
Fixed error
RElesgoe Aug 15, 2018
697e62b
Fixed error
RElesgoe Aug 15, 2018
91fb4ee
add track.pvpgn.pro to trackaddrs
HarpyWar Jan 16, 2019
7f6caa7
add route info to readme
cen1 Mar 6, 2019
d874f59
add route info to readme
cen1 Mar 6, 2019
8961644
add ubuntu 18.04 and clarify debian compiler
cen1 Jul 11, 2019
9374dd3
Merge pull request #385 from pvpgn/feature/docs
cen1 Jul 11, 2019
852cf02
Install lua from Chocolatey instead of vcpkg
RElesgoe Dec 16, 2019
1b6278f
Removed local FindLua.cmake, CMake will now use its built-in FindLua.…
RElesgoe Dec 16, 2019
241e038
Set LUA_DIR environment variable in AppVeyor
RElesgoe Dec 16, 2019
4f9f84f
Don't pull vcpkg's upstream anymore
RElesgoe Dec 16, 2019
ce4cf6d
Change image from Visual Studio 2017 to Visual Studio 2019
RElesgoe Dec 16, 2019
d124142
Continuation of previous commit
RElesgoe Dec 16, 2019
3f18c75
Invoke CMake with CMAKE_SYSTEM_VERSION = 10.0 in AppVeyor
RElesgoe Dec 16, 2019
45f5cb0
Change guiWndProc() and AnnDlgProc() declarations to match the corres…
RElesgoe Dec 16, 2019
b9bfc08
Change AboutDlgProc() and KickDlgProc() declarations to match the cor…
RElesgoe Dec 16, 2019
88a7219
Update .travis.yml to use Ubuntu Bionic, remove redundant packages
RElesgoe Dec 16, 2019
04ce9f6
Fixed path to projectory directory
RElesgoe Dec 16, 2019
7fedbaf
Remove hard-coded lua5.1.lib linker include
RElesgoe Dec 16, 2019
5c8a50e
Change platform from x86 to Win32
RElesgoe Dec 16, 2019
e28f44e
Pass -A Win32 to CMake calls
RElesgoe Dec 16, 2019
9724f3f
Fix renaming binaries
RElesgoe Dec 16, 2019
3c34254
Update appveyor.yml
RElesgoe Dec 16, 2019
9182a89
Update appveyor.yml
RElesgoe Dec 16, 2019
0e2e05b
Update appveyor.yml
RElesgoe Dec 18, 2019
043dd8a
Update appveyor.yml
RElesgoe Dec 18, 2019
1af4a3e
Update appveyor.yml
RElesgoe Dec 18, 2019
5188f4e
Change bnftp to exit success when successful
carlbennett Mar 7, 2019
d4a4c2d
Merge pull request #394 from BNETDocs/develop
cen1 Jan 4, 2020
305ccfb
Temporarily delete build cache
RElesgoe Jan 7, 2020
2876017
Update appveyor.yml
RElesgoe Jan 7, 2020
1f74690
Update appveyor.yml
RElesgoe Jan 7, 2020
5092fe0
Use FindMySQL.cmake from github.com/facebook/hhvm
RElesgoe Jan 7, 2020
98621a3
Use environment variable `ProgramW6432` when searching for MySQL file…
RElesgoe Jan 7, 2020
cc37194
Update CMakeLists.txt
RElesgoe Jan 7, 2020
32d6705
Update FindMySQL.cmake
RElesgoe Jan 7, 2020
82ba84a
Update CMakeLists.txt
RElesgoe Jan 7, 2020
f062693
Update FindMySQL.cmake
RElesgoe Jan 8, 2020
7e05344
Compile to 64-bit binaries
RElesgoe Jan 8, 2020
42ad086
Update appveyor.yml
RElesgoe Jan 8, 2020
7c78536
Update appveyor.yml
RElesgoe Jan 8, 2020
f615004
Fixes #397 As well as add support for Other PMac Versions
acolchagoff Apr 4, 2020
040ff6a
Update appveyor.yml
HarpyWar Apr 6, 2020
ca51708
Merge pull request #398 from denodster/master
RElesgoe Apr 7, 2020
79b2ab6
Update appveyor.yml
RElesgoe May 18, 2020
dba5e6d
Revert Winapi wide changes
RElesgoe May 18, 2020
14c5c0f
Try to read account's charinfo directory after creating it when the d…
RElesgoe May 18, 2020
1136333
Comment pre-existing alias commands. bnalias.conf will have no aliase…
RElesgoe May 18, 2020
eb32a73
Merge branch 'develop' into master
RElesgoe May 18, 2020
ab22f8d
Update CMakeLists.txt
RElesgoe Jun 4, 2020
aa81c94
Update CMakeLists.txt
RElesgoe Jun 4, 2020
fdb3592
Update CMakeLists.txt
RElesgoe Jun 4, 2020
8ea4061
Revert FindMySQL.cmake to old version
RElesgoe Jun 5, 2020
77c2b4e
Update CMakeLists.txt
RElesgoe Jun 5, 2020
7a3f413
Change distribution to focal
RElesgoe Sep 19, 2020
42bf0f1
Build with both clang and gcc
RElesgoe Sep 19, 2020
3f83bd0
Remote -O3, -march, and , -mtune flags for Clang and GCC
RElesgoe Sep 19, 2020
4437f3b
Add -Wno-idiomatic-parentheses flag for Clang
RElesgoe Sep 19, 2020
0f37dd2
Let Clang use default standard library
RElesgoe Sep 22, 2020
c4b62e3
Create codeql-analysis.yml
RElesgoe Oct 1, 2020
d05a714
Remove Clang
RElesgoe Oct 16, 2020
7491f56
Update README.md
RElesgoe Feb 27, 2021
fcdf00f
Revert previous commit
RElesgoe Feb 27, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
69 changes: 69 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
name: "CodeQL"

on:
push:
branches: [ "master", "develop" ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ "master", "develop" ]

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
# Override automatic language detection by changing the below list
# Supported options are ['csharp', 'cpp', 'go', 'java', 'javascript', 'python']
language: ['cpp']
# Learn more...
# https://docs.github.com/en/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#overriding-automatic-language-detection

steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
# We must fetch at least the immediate parents so that if this is
# a pull request then we can checkout the head.
fetch-depth: 2

# If this run was triggered by a pull request event, then checkout
# the head of the pull request instead of the merge commit.
- run: git checkout HEAD^2
if: ${{ github.event_name == 'pull_request' }}

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
# queries: ./path/to/local/query, your-org/your-repo/queries@main

# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v1

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl

# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
# and modify them (or add more) to build your code if your project
# uses a compiled language

#- run: |
# make bootstrap
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
10 changes: 10 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
################################################################################
# This .gitignore file was automatically created by Microsoft(R) Visual Studio.
################################################################################

/zlib
/cmake/Modules
/build
/lua5.1
/.vs
/CMakeSettings.json
32 changes: 32 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
os: linux
dist: focal
arch: amd64

language: cpp
compiler:
- gcc

branches:
only:
- master
- develop

addons:
apt:
packages:
- zlib1g-dev
- build-essential
- libmysqlclient-dev
- liblua5.1-0-dev

before_script:
- mkdir build
- cd build
- cmake -D WITH_MYSQL=true -D WITH_LUA=true ../

script:
- make

after_script:
- sudo make install
- sudo make uninstall
106 changes: 106 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
# Required cmake version
cmake_minimum_required(VERSION 3.1.0)

# Put the include dirs which are in the source or build tree
# before all other include dirs, so the headers in the sources
# are prefered over the already installed ones
# since cmake 2.4.1
set(CMAKE_INCLUDE_DIRECTORIES_PROJECT_BEFORE ON)

project(pvpgn CXX)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)

option(WITH_BNETD "compile the bnetd target" ON)
option(WITH_D2CS "compile the d2cs target" ON)
option(WITH_D2DBS "compile the d2dbs target" ON)
option(WITH_LUA "enable Lua support" OFF)
if(WIN32)
option(WITH_WIN32_GUI "enable GUI building (default on)" ON)
endif(WIN32)

#storage backends flags
option(WITH_MYSQL "include MySQL user accounts support" OFF)
option(WITH_SQLITE3 "include SQLite3 user accounts support" OFF)
option(WITH_PGSQL "include PostgreSQL user accounts support" OFF)
option(WITH_ODBC "include ODBC user accounts support" OFF)


include(ConfigureChecks.cmake)


if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
# using Clang

set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-idiomatic-parentheses -pedantic")

elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
# using G++

if (CMAKE_CXX_COMPILER_VERSION VERSION_LESS 5.1)
message(FATAL_ERROR "G++ 5.1 or higher required")
endif()

set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pedantic -Wno-variadic-macros" )

elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC")
# using Visual Studio

if (CMAKE_CXX_COMPILER_VERSION VERSION_LESS 19.0)
message(FATAL_ERROR "Visual Studio 2015 or higher required")
endif()

add_definitions(
-D_CRT_SECURE_NO_DEPRECATE
-D_CRT_NONSTDC_NO_DEPRECATE
-DUNICODE
-D_UNICODE
)

# DEBUG compiler flags:
# /Zi create debugging information PDB file
# /Od disable optimizations
# /Oy- do not suppress frame pointers (recommended for debugging)
# /MTd use statically linked, thread-safe, debug CRT libs (Magic Builder set this flag when build)
#
# RELEASE compiler flags:
# /MT use statically linked, thread-safe CRT libs (Magic Builder set this flag when build)
# /GS- no Buffer Security Check
#
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} /Zi /Od /Oy-")
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} /Zi")

# Explaining of linker flags and why enable pdb with debug info for Release build is on:
# https://www.wintellect.com/correctly-creating-native-c-release-build-pdbs
set(CMAKE_EXE_LINKER_FLAGS_RELEASE "${CMAKE_EXE_LINKER_FLAGS_RELEASE} /DEBUG /OPT:REF /OPT:ICF")
endif()

add_subdirectory(conf)
add_subdirectory(files)
add_subdirectory(lib/fmt)
add_subdirectory(man)
add_subdirectory(src)
if(WITH_LUA)
add_subdirectory(lua)
endif(WITH_LUA)

enable_testing()

# uninstall target
configure_file(
"${CMAKE_MODULE_PATH}/cmake_uninstall.cmake.in"
"${CMAKE_MODULE_PATH}/cmake_uninstall.cmake"
IMMEDIATE @ONLY)

add_custom_target(uninstall
COMMAND ${CMAKE_COMMAND} -P ${CMAKE_MODULE_PATH}/cmake_uninstall.cmake)

# purge target
configure_file(
"${CMAKE_MODULE_PATH}/cmake_purge.cmake.in"
"${CMAKE_MODULE_PATH}/cmake_purge.cmake"
IMMEDIATE @ONLY)

add_custom_target(purge
COMMAND ${CMAKE_COMMAND} -P ${CMAKE_MODULE_PATH}/cmake_purge.cmake)
File renamed without changes.
Loading