Jonathan G Rennison
|
a2d5c4354d
|
Fix various uint/size_t mismatches in string functions
|
2023-11-09 20:28:06 +00:00 |
|
Jonathan G Rennison
|
48e700bc32
|
Fix type issues with string parameter structs
|
2023-11-09 16:09:47 +00:00 |
|
Jonathan G Rennison
|
3436e0a781
|
Merge branch 'master' into jgrpp
# Conflicts:
# src/error.h
# src/error_gui.cpp
# src/linkgraph/linkgraph_gui.cpp
# src/misc_gui.cpp
# src/newgrf_gui.cpp
# src/news_gui.cpp
# src/rail_cmd.cpp
# src/saveload/gamelog_sl.cpp
# src/script/api/script_text.cpp
# src/script/script_instance.cpp
# src/statusbar_gui.cpp
# src/strings.cpp
# src/strings_func.h
# src/strings_internal.h
# src/table/settings/gui_settings.ini
# src/table/settings/linkgraph_settings.ini
# src/textbuf_gui.h
|
2023-11-09 01:55:23 +00:00 |
|
Rubidium
|
3e488465f8
|
Codechange: allow string temporaries in a StringParameter
|
2023-07-03 18:08:03 +02:00 |
|
Rubidium
|
b2edf82b69
|
Cleanup: remove unneeded CopyOutDParam version with StringID
|
2023-07-03 06:56:08 +02:00 |
|
Rubidium
|
7ed90a859f
|
Codechange: function to check whether string parameters have changed since the backup
|
2023-07-03 00:00:12 +02:00 |
|
Rubidium
|
05ef3f0998
|
Cleanup: remove old backup/restore of string parameters
|
2023-07-02 22:31:01 +02:00 |
|
Rubidium
|
2687704afc
|
Codechange: introduce new type and functions for StringParameter backups
|
2023-07-02 22:31:01 +02:00 |
|
Jonathan G Rennison
|
d09b504bc5
|
Merge branch 'master' into jgrpp
# Conflicts:
# .github/workflows/ci-build.yml
# .github/workflows/release-linux.yml
# .github/workflows/release-macos.yml
# .github/workflows/release-source.yml
# .github/workflows/release.yml
# CMakeLists.txt
# COMPILING.md
# src/ai/ai_core.cpp
# src/ai/ai_gui.cpp
# src/bridge_gui.cpp
# src/company_gui.cpp
# src/console_cmds.cpp
# src/core/CMakeLists.txt
# src/core/smallmap_type.hpp
# src/disaster_vehicle.h
# src/effectvehicle_base.h
# src/fontcache.cpp
# src/game/game_core.cpp
# src/game/game_gui.cpp
# src/gamelog.cpp
# src/gamelog_internal.h
# src/group_gui.cpp
# src/linkgraph/linkgraph.h
# src/misc.cpp
# src/network/core/config.h
# src/network/core/udp.cpp
# src/network/network_chat_gui.cpp
# src/network/network_content_gui.cpp
# src/network/network_gui.cpp
# src/newgrf.cpp
# src/newgrf_gui.cpp
# src/newgrf_profiling.cpp
# src/newgrf_profiling.h
# src/object_gui.cpp
# src/openttd.cpp
# src/openttd.h
# src/order_gui.cpp
# src/os/windows/font_win32.cpp
# src/rail_gui.cpp
# src/road.cpp
# src/road_gui.cpp
# src/saveload/afterload.cpp
# src/saveload/saveload.h
# src/script/api/script_controller.cpp
# src/script/api/script_roadtypelist.cpp
# src/script/script_config.cpp
# src/script/script_config.hpp
# src/script/script_instance.cpp
# src/script/script_scanner.cpp
# src/script/squirrel.cpp
# src/script/squirrel_helper.hpp
# src/settings_gui.cpp
# src/settings_internal.h
# src/settings_type.h
# src/table/settings/network_private_settings.ini
# src/timetable_gui.cpp
# src/vehicle.cpp
# src/vehicle_base.h
# src/window_gui.h
|
2023-07-01 02:42:51 +01:00 |
|
Rubidium
|
381e8b69d2
|
Codechange: make size and offset size_t
|
2023-06-18 09:50:11 +02:00 |
|
Rubidium
|
1d902a97ce
|
Codechange: move StringParameters to strings_internal.h
|
2023-06-17 12:14:11 +02:00 |
|
Rubidium
|
ad048b143a
|
Codechange: move implementation of Set/GetDParam to strings.cpp
|
2023-06-17 12:14:11 +02:00 |
|
Rubidium
|
dd53a738bb
|
Codechange: automatically set/check the correct type for string parameters/genders
|
2023-06-17 11:02:31 +02:00 |
|
Rubidium
|
0a5e58451b
|
Codechange: pass string parameters by reference
|
2023-06-14 06:14:08 +02:00 |
|
Rubidium
|
43f91bc50c
|
Cleanup: unused GetDataPointer function
|
2023-06-13 23:53:13 +02:00 |
|
Rubidium
|
aba0d27a28
|
Codechange: use StringParameters for remapping the NewGRF string control codes
|
2023-06-13 22:11:21 +02:00 |
|
Rubidium
|
613ad80581
|
Codechange: remove need for GetDParamX
|
2023-06-12 09:12:11 +02:00 |
|
Rubidium
|
f86500df92
|
Codechange: remove need for SetDParamX
|
2023-06-12 09:12:11 +02:00 |
|
Rubidium
|
6c6f365d2f
|
Codechange: remove offset parameter for copying DParams in and out
|
2023-06-11 17:03:31 +02:00 |
|
Jonathan G Rennison
|
bc07331056
|
Remove src/3rdparty/optional
|
2023-06-05 21:26:41 +01:00 |
|
Jonathan G Rennison
|
ffb4548f1b
|
Fix std::optional related compilation errors on some platforms
|
2023-06-05 20:04:13 +01:00 |
|
Rubidium
|
14915526ad
|
Cleanup: remove stre-style GetString
|
2023-06-05 11:23:31 +02:00 |
|
Rubidium
|
36aaa9d683
|
Codechange: let GetStringWithArgs use StringBuilder
|
2023-06-04 18:00:23 +02:00 |
|
Jonathan G Rennison
|
3a47b421b0
|
Merge branch 'master' into jgrpp
# Conflicts:
# src/company_cmd.cpp
# src/core/overflowsafe_type.hpp
# src/economy.cpp
# src/engine_base.h
# src/ground_vehicle.cpp
# src/group_gui.cpp
# src/industry_cmd.cpp
# src/industry_gui.cpp
# src/newgrf_commons.cpp
# src/newgrf_engine.cpp
# src/newgrf_industries.cpp
# src/newgrf_object.cpp
# src/newgrf_roadstop.cpp
# src/newgrf_station.cpp
# src/rail_gui.cpp
# src/road_cmd.h
# src/road_gui.cpp
# src/saveload/afterload.cpp
# src/script/api/script_log.cpp
# src/script/api/script_log.hpp
# src/settings_gui.cpp
# src/settingsgen/settingsgen.cpp
# src/station_cmd.cpp
# src/station_cmd.h
# src/station_gui.cpp
# src/strgen/strgen.cpp
# src/string_func.h
# src/string_type.h
# src/table/settings/network_private_settings.ini
# src/tests/math_func.cpp
# src/textfile_gui.cpp
# src/timetable_gui.cpp
# src/town_cmd.cpp
# src/vehicle.cpp
# src/waypoint_cmd.cpp
# src/waypoint_cmd.h
# src/widgets/dropdown.cpp
|
2023-06-03 19:16:57 +01:00 |
|
Patric Stout
|
199e41c762
|
Codechange: use default dtor instead of empty (#10826)
|
2023-05-14 23:31:03 +02:00 |
|
Patric Stout
|
febe394806
|
Codechange: replace C-style strings with C++-style strings in textfile (#10772)
|
2023-05-09 19:35:50 +00:00 |
|
Jonathan G Rennison
|
82803b98e0
|
Merge branch 'master' into jgrpp
# Conflicts:
# src/game/game_gui.cpp
# src/graph_gui.cpp
# src/linkgraph/linkgraph_gui.h
# src/newgrf.cpp
# src/order_gui.cpp
# src/saveload/engine_sl.cpp
# src/saveload/saveload.h
# src/script/api/script_text.cpp
# src/script/script_gui.cpp
# src/settings_table.cpp
# src/strings.cpp
# src/table/settings/economy_settings.ini
# src/table/settings/locale_settings.ini
# src/timetable_gui.cpp
|
2023-04-10 15:11:53 +01:00 |
|
PeterN
|
f1144de509
|
Feature: Separate rail/road and sea/air velocity units, and add knots. (#10594)
This is achieved by packing vehicle type along with the velocity so that
the string system can decode and pick the appropriate unit.
|
2023-04-08 12:26:13 -04:00 |
|
Jonathan G Rennison
|
6459e62fff
|
Merge branch 'master' into jgrpp
# Conflicts:
# src/lang/english.txt
# src/map_type.h
# src/network/network_command.cpp
# src/object_cmd.cpp
# src/rail_cmd.cpp
# src/road_cmd.cpp
# src/road_func.h
# src/saveload/afterload.cpp
# src/saveload/saveload.h
# src/settings_gui.cpp
# src/string.cpp
# src/table/road_land.h
# src/table/settings/game_settings.ini
# src/table/settings/world_settings.ini
# src/tbtr_template_gui_main.h
# src/train_cmd.cpp
|
2022-11-05 19:24:44 +00:00 |
|
frosch
|
fea6a34684
|
Codechange: SetDParamStr borrows contents from std::string::c_str(). Prevent calling it with temporaries. (#10136)
|
2022-11-05 17:14:10 +01:00 |
|
Jonathan G Rennison
|
23b974fb39
|
Merge branch 'master' into jgrpp
# Conflicts:
# src/fontcache.cpp
# src/openttd.cpp
# src/os/macosx/font_osx.cpp
# src/os/unix/font_unix.cpp
# src/os/windows/font_win32.cpp
# src/strings.cpp
|
2022-10-03 20:32:26 +01:00 |
|
Peter Nelson
|
f6ad8e1c9c
|
Change: Rename some freetype things to fontcache.
The font cache supports more than just FreeType as a font provider, but still used freetype in some naming.
This now uses more suitable terms.
|
2022-09-25 18:34:24 +01:00 |
|
Jonathan G Rennison
|
f54d69a60a
|
Merge branch 'master' into jgrpp-beta
# Conflicts:
# src/economy.cpp
# src/elrail.cpp
# src/graph_gui.cpp
# src/linkgraph/linkgraph_gui.cpp
# src/network/core/game_info.cpp
# src/newgrf_station.cpp
# src/saveload/saveload.cpp
# src/settings.cpp
# src/station_cmd.cpp
# src/station_gui.cpp
# src/strings_func.h
# src/table/settings/network_settings.ini
# src/table/settings/settings.ini
|
2021-11-01 21:18:24 +00:00 |
|
Jonathan G Rennison
|
fd605e3cf3
|
Merge branch 'master' into jgrpp-beta
# Conflicts:
# .github/workflows/commit-checker.yml
# src/company_cmd.cpp
# src/console_cmds.cpp
# src/crashlog.cpp
# src/lang/english.txt
# src/lang/german.txt
# src/lang/indonesian.txt
# src/lang/japanese.txt
# src/lang/korean.txt
# src/lang/swedish.txt
# src/linkgraph/linkgraphjob.cpp
# src/linkgraph/mcf.cpp
# src/network/core/tcp.cpp
# src/network/core/tcp.h
# src/network/core/tcp_game.h
# src/network/core/udp.h
# src/network/network.cpp
# src/network/network_admin.cpp
# src/network/network_admin.h
# src/network/network_chat_gui.cpp
# src/network/network_client.cpp
# src/network/network_client.h
# src/network/network_func.h
# src/network/network_internal.h
# src/network/network_server.cpp
# src/network/network_server.h
# src/newgrf.cpp
# src/newgrf_station.cpp
# src/order_gui.cpp
# src/rail_cmd.cpp
# src/saveload/saveload.cpp
# src/settings.cpp
# src/settings_gui.cpp
# src/settings_internal.h
# src/settings_type.h
# src/station_cmd.cpp
# src/stdafx.h
# src/table/currency_settings.ini
# src/table/misc_settings.ini
# src/table/settings.h.preamble
# src/table/settings.ini
# src/terraform_cmd.cpp
# src/timetable_gui.cpp
# src/train_cmd.cpp
# src/tree_cmd.cpp
# src/water_cmd.cpp
|
2021-09-27 22:47:23 +01:00 |
|
Jonathan G Rennison
|
da1ac73c02
|
Merge commit 'f1dfa661a1898cde06a38ab4cb230c95912b245b' into jgrpp-beta
# Conflicts:
# src/lang/estonian.txt
# src/lang/hungarian.txt
# src/network/core/game_info.cpp
# src/network/core/game_info.h
# src/network/core/packet.h
# src/network/network.cpp
# src/network/network_client.cpp
# src/network/network_server.cpp
# src/network/network_udp.cpp
# src/openttd.cpp
# src/string_func.h
|
2021-09-18 22:10:04 +01:00 |
|
rubidium42
|
979783f90e
|
Codechange: replace InjectDParam/ShiftParameters by setting the right parameter values in the first place
|
2021-07-03 11:26:13 +02:00 |
|
rubidium42
|
2e0297b0fa
|
Add: GetString that returns std::string instead of filling a passed buffer
|
2021-05-15 10:20:50 +02:00 |
|
rubidium42
|
6bca9e090d
|
Codechange: add SetDParamStr that accepts std::string&
|
2021-05-06 21:45:36 +02:00 |
|
Jonathan G Rennison
|
7154f8859d
|
Merge tag '1.11.0-beta1' into jgrpp
# Conflicts:
# src/console_cmds.cpp
# src/gfx_func.h
# src/industry.h
# src/lang/czech.txt
# src/lang/estonian.txt
# src/lang/german.txt
# src/lang/indonesian.txt
# src/lang/japanese.txt
# src/lang/norwegian_bokmal.txt
# src/lang/russian.txt
# src/lang/slovak.txt
# src/saveload/saveload.h
# src/station_gui.cpp
# src/town_gui.cpp
# src/vehicle_gui.cpp
# src/video/sdl2_v.cpp
# src/waypoint_gui.cpp
|
2021-02-01 18:58:36 +00:00 |
|
Jonathan G Rennison
|
6c3e5642f8
|
Merge branch 'master' into jgrpp
# Conflicts:
# cmake/CompileFlags.cmake
# src/crashlog.cpp
# src/fileio.cpp
# src/fileio_func.h
# src/fios_gui.cpp
# src/ini_load.cpp
# src/ini_type.h
# src/lang/english.txt
# src/lang/german.txt
# src/lang/korean.txt
# src/network/network_client.cpp
# src/order_base.h
# src/order_cmd.cpp
# src/os/windows/win32.cpp
# src/road_cmd.cpp
# src/saveload/saveload.cpp
# src/saveload/saveload.h
# src/settings.cpp
# src/station_cmd.cpp
# src/stdafx.h
# src/table/settings.ini
# src/tree_cmd.cpp
# src/tree_gui.cpp
# src/vehicle_base.h
# src/video/cocoa/cocoa_v.mm
# src/video/cocoa/event.mm
# src/video/cocoa/wnd_quartz.mm
# src/viewport.cpp
# src/widgets/tree_widget.h
|
2021-01-31 01:08:35 +00:00 |
|
Patric Stout
|
98400974a9
|
Codechange: nobody was using "str" parameter, so remove it
|
2021-01-13 14:27:39 +01:00 |
|
Charles Pigott
|
860c270c73
|
Codechange: Replace assert_compile macro with static_assert
|
2020-12-27 10:55:42 +00:00 |
|
Jonathan G Rennison
|
0fa37bcad9
|
Add function to get GRF ID of string ID
|
2020-11-01 00:26:07 +00:00 |
|
Jonathan G Rennison
|
cbdd9f84d8
|
Merge branch 'master' into jgrpp
# Conflicts:
# src/console_gui.cpp
# src/lang/korean.txt
# src/video/sdl2_v.cpp
# src/video/sdl2_v.h
# src/window.cpp
# src/window_gui.h
|
2019-11-12 18:43:10 +00:00 |
|
S. D. Cloudt
|
13cc8a0cee
|
Cleanup: Removed SVN headers
|
2019-11-10 17:59:20 +00:00 |
|
Jonathan G Rennison
|
dbc5f1baed
|
Merge branch 'master' into jgrpp-nrt
# Conflicts:
# src/fontcache.cpp
# src/game/game_text.cpp
# src/lang/korean.txt
# src/os/macosx/crashlog_osx.cpp
# src/os/windows/crashlog_win.cpp
# src/station_cmd.cpp
# src/viewport.cpp
|
2019-07-11 20:03:23 +01:00 |
|
Michael Lutz
|
d2ed426077
|
Codechange: [Win32] Pass a native GDI font description around when we have one, instead of repeatedly guessing the font.
|
2019-05-14 11:21:36 +01:00 |
|
Jonathan G Rennison
|
bd2fdde759
|
Merge branch 'master' into jgrpp
# Conflicts:
# src/core/sort_func.hpp
# src/rail_cmd.cpp
# src/timetable_cmd.cpp
# src/video/sdl_v.cpp
# src/video/win32_v.cpp
|
2019-04-23 08:11:52 +01:00 |
|
glx
|
8899272614
|
Codechange: use std::vector for _language_dropdown
|
2019-04-18 21:49:34 +02:00 |
|
Jonathan G Rennison
|
674732cd68
|
Merge: Codechange: Use null pointer literal instead of the NULL macro
|
2019-04-11 18:14:13 +01:00 |
|