Aaron van Geffen
d2c4a36787
Drop 'Network' prefix from more classes as suggested
...
* Rename Network::NetworkReadPacket class to Network::ReadPacket
* Rename Network::NetworkKey class to Network::Key
* Rename Network::NetworkPacket class to Network::Packet
* Rename Network::NetworkUser class to Network::User
* Rename Network::NetworkConnection class to Network::Connection
2025-09-05 13:17:14 +02:00
Aaron van Geffen
cecac8ee0b
Drop 'Network' from namespaced network constants
2025-09-05 12:53:42 +02:00
Aaron van Geffen
5a4cc7d00d
Remove Network function name prefixes given namespace qualifiers
2025-08-31 16:02:43 +02:00
Aaron van Geffen
6ea5959b2b
Move network units to OpenRCT2::Network namespace
2025-08-31 15:26:10 +02:00
Gymnasiast
b138f8ccd8
Rename constants in ServerList.cpp to use kCamelCase
2025-07-04 19:08:27 +02:00
LRFLEW
4101fb65a9
Refactor Compression and Streams, and Add IStream Direct Interface
2025-07-04 18:55:17 +02:00
Matt
42df41efdb
Remove the use of shared_ptr for the Context ( #24404 )
...
* Replace shared_ptr with unique_ptr for Context systems, return refs
* Fix all the users
* clang-format fix
* Fix linux builds
2025-05-15 22:46:06 +03:00
Gymnasiast
74758c77b6
Rename PATHID and its members
2025-03-25 23:57:36 +01:00
Gymnasiast
622a8dc525
Rename DIRBASE and its members
2025-03-25 22:47:09 +01:00
Gymnasiast
c5fff2bb77
Create enum class for FileMode
2025-03-25 22:47:08 +01:00
73
a976a43708
Rename network.h to Network.h ( #23882 )
2025-02-24 10:43:06 +01:00
Aaron van Geffen
fa06a49302
Update copyright year to 2025 ( #23514 )
2024-12-31 20:30:04 +01:00
Aaron van Geffen
35e117aca2
Rename String methods to use lowerCamelCase
2024-12-11 22:49:37 +01:00
Aaron van Geffen
3685d1a24b
clang-format: change IndentPPDirectives to BeforeHash ( #23287 )
2024-11-29 12:04:56 +09:00
Tulio Leao
487806c2c8
Implement what() for existing exceptions ( #22845 )
2024-09-28 14:42:39 -03:00
Aaron van Geffen
51873dc0f6
Include Diagnostic.h at unit level
2024-07-09 16:23:31 +02:00
Aaron van Geffen
aad71af8ab
Rework OPENRCT2_MASTER_SERVER_URL into kMasterServerURL
2024-07-09 14:29:13 +02:00
Aaron van Geffen
a63d86c488
Introduce Config namespace and struct
2024-05-10 12:10:21 +02:00
Michał Janiszewski
7b12667ddb
Reduce <algorithm> include ( #21947 )
2024-05-01 13:47:27 +02:00
Harry-Hopkinson
7aed4d18f2
Rename NETWORK_LAN_BROADCAST_MSG to kNetworkLanBroadcastMsg
2024-04-26 17:55:23 +01:00
Harry-Hopkinson
82c31b80d4
Rename NETWORK_LAN_BROADCAST_PORT to kNetworkLanBroadcastPort
2024-04-26 17:55:23 +01:00
James103
1d8dc111f1
Replace 2023 with 2024 in copyright headers ( #21139 )
...
Replace all instances of the year 2023 with 2024 in all copyright headers
2024-01-01 12:52:28 +01:00
ζeh Matt
3d5e6ea932
Replace Equals with IEquals where appropriate
2023-07-05 23:14:05 +03:00
Hielke Morsink
2c224cfd53
Rename snake_case functions in OpenRCT2/network folder ( #19203 )
2023-01-18 06:05:53 +00:00
Hielke Morsink
6b7dc8fcdb
Rename snake_case functions in openrct2/src folder
...
Co-authored-by: duncanspumpkin <duncans_pumpkin@hotmail.co.uk >
2023-01-17 13:24:51 +01:00
James103
73738bbdc8
Replace 2022 with 2023 in copyright headers
...
Replace all instances of the year 2022 with 2023 in all copyright headers
2023-01-01 11:58:01 +01:00
Hielke Morsink
bff430805f
Rename public network config data members
2022-10-16 21:46:06 +02:00
73
b9e677945d
Replace 20XX with 2022 ( #18158 )
...
* Replace 2020 with 2022
Replace all 2020 headers with 2022
* replace other years with 2022
add missing years
2022-10-01 08:42:14 +01:00
Meehoi
d6ca1a3da9
Fix #18035 : Favourited servers don't get their online status updated
...
From fetching flow, list will always have favourited servers but no code to update those entries, only append.
This code updates those favourited servers in the list with new data from internet by matching address.
This will fix list having 2 duplicate servers too. (one favourited and one not)
2022-09-23 22:51:05 +02:00
germanaizek
958bfbc08a
Using std::move(), correct clear strings, better use '= default;', modernize make_* and replace heavy strlen
2022-05-07 16:05:39 +02:00
Hielke Morsink
6ba0a3bd49
Use u8 strings when dealing with file paths
2022-03-01 22:12:39 +01:00
Michael Steenbeek
5edc561715
Close #11437 : Migrate old platform methods
2022-02-18 21:57:00 +01:00
skdltmxn
29083f4cb2
Improve network module in more C++ way
2022-02-09 21:57:25 +01:00
Gymnasiast
f8c74fe2f8
Use u8string in Path/File; replace Path::Append with Path::Combine
2022-01-28 21:52:44 +01:00
Gymnasiast
6bcf848b2f
Use C++ filesystem for more file/path functions
2022-01-08 19:07:48 +01:00
Hielke Morsink
4b4b3333d6
Remove unnecessary else blocks
2021-09-16 18:31:12 +02:00
skdltmxn
b0a8ebc808
Refactor to use push_back more efficient ( #13726 )
2021-01-08 20:59:55 +00:00
Hielke Morsink
f0c1ea1d37
Split declarations and definitions to improve compile times when editing ( #13332 )
...
* Split FileStream declarations and definitions
* Split JobPool declarations and definitions
* Split StringBuilder declarations and definitions
* Split StringReader declarations and definitions
* Split ZoomLevel declarations and definitions
* Fix missing include in FileClassifier.cpp
* Remove pragma once from source files
* Fix missing include in StringBuilder.h
* Update Xcode project
* Fix compilation of tests
Co-authored-by: Michael Steenbeek <m.o.steenbeek@gmail.com >
2020-11-07 12:42:04 +00:00
ζeh Matt
645289f4ec
Rename GameActionResult and use GameActions namespace instead ( #13184 )
2020-10-14 22:04:39 -03:00
Simon Jarrett
1b821c1059
Refactor ServerList to use new JSON library
2020-09-16 20:18:53 +01:00
Julia Pinheiro
dafde532af
Close #12426 : Refactor NETWORK_READPACKET to use strong enum ( #12807 )
...
Replacing enum NETWORK_READPACKET with enum class NetworkReadPacket.
2020-08-31 09:13:15 -03:00
Aaron van Geffen
7b5087f057
Update copyright year to 2020
2020-07-21 15:04:34 +02:00
frutiemax
26ae2dbf04
Part of #11437 : Move PlatformFileExists to Platform2.h ( #12077 )
2020-07-02 12:03:31 -03:00
Tulio Leao
b7b5a26a57
Rename ServerList member variables to prevent shadowing
2020-05-15 12:06:41 +02:00
Duncan
32eb7071a1
Fix #11550 : Use std::nullopt instead of empty brace ( #11595 )
...
This is technically a gcc bug from the looks of it but since std::nullopt is slightly easier to read I've gone through the codebase and used that over empty braces. In addition noticed a mistake on the scripting viewport get widgetIndex function where it would return an incorrect widgetIndex.
2020-05-02 10:09:12 +02:00
Michał Janiszewski
2323cc1596
Use named casts instead of old-style casts
...
Change prepared with clang-tidy and google-readability-casting check
2020-04-22 17:09:29 +02:00
Ted John
be9cb19df5
Replace cURL with WinHttp implementation on Windows
...
This reduces the number of third party dependencies for Windows builds. WinHttp is quite a nice straight forward API so doesn't involve too much extra code.
2020-02-08 17:47:03 +00:00
Gymnasiast
ca2f37ae7f
Remove opt::optional polyfill
...
std::optional is supported by Xcode 10. The non-polyfill variant was already used in our code, so this is not likely to break anything that wasn't broken before.
2020-02-01 22:25:03 +01:00
Michał Janiszewski
8637eb6c57
Rename some bits to allow unity builds of libopenrct2 ( #9944 )
...
* Rename some bits to allow unity builds of libopenrct2
Some names are clashing when doing a unity build, renaming them solves
the problem.
2019-08-29 23:03:56 +02:00
Ted John
dd20ebad49
Make more methods const
2019-05-12 00:57:56 +01:00