Skip to content

Misc fixes and preparation for multi-platform support#10

Merged
benstone merged 24 commits into
benstone:mainfrom
mcayland:feature/linux-platform-part1
Nov 15, 2025
Merged

Misc fixes and preparation for multi-platform support#10
benstone merged 24 commits into
benstone:mainfrom
mcayland:feature/linux-platform-part1

Conversation

@mcayland
Copy link
Copy Markdown
Contributor

This series contains a number of fixes for previous PRs along with initial preparation for multi-platform support.

The fixes consist of adding several missing KLCONST4() macros, as well as updating several filenames and FTG tags to use lower case so that files are correctly located on case-sensitive filesystems. Following this the Windows-specific platform code is split out into a separate platwin.cpp file in preparation for adding multi-platform support.

The Assert() added to SerializeTagToTagf() during development is incorrect
since it is possible for a closed tag to be serialised when saving an
actor.
These were accidentally missed during the previous round of constant
conversions.
These were accidentally missed during the previous round of constant
conversions.
This was accidentally missed during the previous round of constant
conversions.
This was accidentally missed during the previous round of constant
conversions.
This was accidentally missed during the previous round of constant
conversions.
These were accidentally missed during the previous round of constant
conversions.
This was accidentally missed during the previous round of constant
conversions.
These were accidentally missed during the previous round of constant
conversions.
These were accidentally missed during the previous round of filename
conversions.
This was accidentally missed during the previous round of filename
conversions.
The FTG tags are used as part of the filename extension and so must be in
lower-case to ensure the correct filename is generated for case-sensitive
filesystems.
The FTG tags are used as part of the filename extension and so must be in
lower-case to ensure the correct filename is generated for case-sensitive
filesystems.
The FTG tags are used as part of the filename extension and so must be in
lower-case to ensure the correct filename is generated for case-sensitive
filesystems.
The FTG tags are used as part of the filename extension and so must be in
lower-case to ensure the correct filename is generated for case-sensitive
filesystems.
The FTG tags are used as part of the filename extension and so must be in
lower-case to ensure the correct filename is generated for case-sensitive
filesystems.
The short product name is used to locate a file in the product directory and
so must be in lower-case to ensure the correct filename is generated for
case-sensitive filesystems.
These macros will soon need to be used outside of util.h.
The byte order of the chunk data is dependent upon the endian of the
architecture as opposed to the platform.
Introduce a file containing code specific to the Windows platform, and
start by moving the MUTX class to it.
At the same time remove the Mac part of the MacWin() macro since this is a
Windows-only platform file.
At the same time remove the Mac part of the MacWin() macro since this is a
Windows-only platform file.
@benstone benstone merged commit 53fa788 into benstone:main Nov 15, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants