This repository has been archived on 2025-03-20. You can view files and clone it, but cannot push or open issues or pull requests.
The-Powder-Toy/src
Tamás Bálint Misius 7fc3fb4c15
Sort out version info
The idea is to have the following version information included:

 - 1-component save version
   - 2-component under the hood but the minor component shouldn't ever change again
   - see currentVersionMajor in GameSave.cpp
 - 1-component website API version
   - again, currently 2-component because that's what the website code expects
   - see apiVersion in requestmanager/Common.cpp
 - 2-component display version, entirely cosmetic
   - exposed as meson options display_version_major and display_version_minor
   - see APP_VERSION in Config.template.h
 - 1-component business logic version aka build number
   - exposed as meson option build_num
   - see APP_VERSION in Config.template.h
 - variant id aka mod id, tightly coupled with the build number
   - exposed as meson option mod_id
   - see MOD_ID in Config.template.h
 - display and business logic versions repeated for the upstream
   - exposed as meson options upstream_version_major, upstream_version_minor, and upstream_build_num
   - we'll have to update these alongside display_version_major, display_version_minor, and build_num, but mod owners can just merge our changes
   - see UPSTREAM_VERSION in Config.template.h
 - update channel, makes sense in the context of the variant (and yes, this would later enable mod snapshots)
   - currently not exposed as a meson option but derived from meson options snapshot and mod_id
   - see IDENT_RELTYPE in Config.template.h
 - vcs tag aka git commit hash
   - set by build.sh in ghactions workflows
   - see VCS_TAG in VcsTag.tempalte.h

Rather importantly, the save and website API versions are now allowed to change independently of the display version.

These changes also allowed me to remove the ugly sed hacks in build.sh used to provision some manifest files; they are now provisioned by meson.

Also add version info for windows and android.
2023-10-19 12:51:03 +02:00
..
bson Remove a few outdated windows-only preprocessor hacks 2023-10-15 12:04:22 +02:00
bzip2 Preprocessor purge round 19: Split and minimize usage of Config.h 2023-01-27 09:27:32 +01:00
client Sort out version info 2023-10-19 12:51:03 +02:00
common Sort out version info 2023-10-19 12:51:03 +02:00
debug Make find mode work with the PROP tool 2023-09-20 07:16:28 +02:00
graphics Remove a few outdated windows-only preprocessor hacks 2023-10-15 12:04:22 +02:00
gui Sort out version info 2023-10-19 12:51:03 +02:00
lua Sort out version info 2023-10-19 12:51:03 +02:00
prefs Prevent almost all HTTP requests from blocking 2023-06-10 19:19:53 +02:00
resampler Remove a few outdated windows-only preprocessor hacks 2023-10-15 12:04:22 +02:00
simulation Sort out version info 2023-10-19 12:51:03 +02:00
tasks Remove a few outdated windows-only preprocessor hacks 2023-10-15 12:04:22 +02:00
Activity.h Preprocessor purge round 19: Split and minimize usage of Config.h 2023-01-27 09:27:32 +01:00
Config.template.h Sort out version info 2023-10-19 12:51:03 +02:00
Controller.h Preprocessor purge round 2: #pragma once 2023-01-27 09:26:38 +01:00
Format.cpp Refactor PNG and working with alpha 2023-04-05 21:30:24 +02:00
Format.h Refactor PNG and working with alpha 2023-04-05 21:30:24 +02:00
FpsLimit.h Emscripten: Add "vsync" FPS limit mode 2023-08-22 00:26:32 +02:00
meson.build Sort out version info 2023-10-19 12:51:03 +02:00
Misc.cpp Remove a few outdated windows-only preprocessor hacks 2023-10-15 12:04:22 +02:00
Misc.h Prevent almost all HTTP requests from blocking 2023-06-10 19:19:53 +02:00
PowderToy.cpp Fix guess best scale prompt showing up even when it guesses the default 2023-10-14 15:38:37 +02:00
PowderToyFontEditor.cpp Clean up window creation somewhat 2023-10-05 19:47:29 +02:00
PowderToyRenderer.cpp Remove return value from Simulation::Load 2023-05-13 13:21:05 +02:00
PowderToySDL.cpp Fix guess best scale prompt showing up even when it guesses the default 2023-10-14 15:38:37 +02:00
PowderToySDL.h Clean up window creation somewhat 2023-10-05 19:47:29 +02:00
PowderToySDLCommon.cpp Emscripten: Disable hopefully all ways to quit 2023-08-22 00:26:33 +02:00
PowderToySDLEmscripten.cpp Emscripten: Add Platform::MarkPresentable 2023-08-23 00:42:34 +02:00
Probability.cpp Preprocessor purge round 19: Split and minimize usage of Config.h 2023-01-27 09:27:32 +01:00
Probability.h Preprocessor purge round 19: Split and minimize usage of Config.h 2023-01-27 09:27:32 +01:00
SDLCompat.cpp fix windows / renderer compile (renderer requires sdl for now) 2018-05-25 21:19:44 -04:00
SimulationConfig.h misc: Fix sim.partNeighbors table being 0-indexed, rename SIM_MAXVELOCITY to MAX_VELOCITY 2023-10-08 12:19:06 -04:00
VcsTag.template.h Add tpt.version.vcstag 2023-09-05 20:20:00 +02:00
WindowIcon.cpp Refactor PNG and working with alpha 2023-04-05 21:30:24 +02:00
WindowIcon.h Move platform-specific code out of entrypoint TUs 2023-01-27 09:26:41 +01:00
X86KillDenormals.cpp Preprocessor purge round 13: X86 2023-01-27 09:26:40 +01:00
X86KillDenormals.h Preprocessor purge round 13: X86 2023-01-27 09:26:40 +01:00