mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-05-15 09:18:27 +00:00
Moved the SDL version back to SDL_version.h
Added a comment at the top of SDL.h with the current version, for informational purposes
This commit is contained in:
parent
c6354252a1
commit
fbe7e2e6d3
12 changed files with 49 additions and 40 deletions
|
@ -509,7 +509,7 @@ class Releaser:
|
|||
|
||||
@classmethod
|
||||
def extract_sdl_version(cls, root: Path, project: str):
|
||||
with open(root / f"include/{project}/SDL.h", "r") as f:
|
||||
with open(root / f"include/{project}/SDL_version.h", "r") as f:
|
||||
text = f.read()
|
||||
major = next(re.finditer(r"^#define SDL_MAJOR_VERSION\s+([0-9]+)$", text, flags=re.M)).group(1)
|
||||
minor = next(re.finditer(r"^#define SDL_MINOR_VERSION\s+([0-9]+)$", text, flags=re.M)).group(1)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue