mirror of https://github.com/ppy/SDL3-CS.git
Fix python formatting
This commit is contained in:
parent
75c49e289e
commit
5fbda17ae9
|
|
@ -27,6 +27,7 @@ SDL3_header_base = "SDL3" # base folder of header files
|
||||||
|
|
||||||
csproj_root = repository_root / "SDL3-CS"
|
csproj_root = repository_root / "SDL3-CS"
|
||||||
|
|
||||||
|
|
||||||
class Header:
|
class Header:
|
||||||
"""Represents a SDL header file that is used in ClangSharp generation."""
|
"""Represents a SDL header file that is used in ClangSharp generation."""
|
||||||
|
|
||||||
|
|
@ -130,20 +131,22 @@ headers = [
|
||||||
add("SDL3/SDL_vulkan.h"),
|
add("SDL3/SDL_vulkan.h"),
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
def prepare_sdl_source():
|
def prepare_sdl_source():
|
||||||
subprocess.run([
|
subprocess.run([
|
||||||
"git",
|
"git",
|
||||||
"reset",
|
"reset",
|
||||||
"--hard",
|
"--hard",
|
||||||
"HEAD"
|
"HEAD"
|
||||||
], cwd = SDL_root)
|
], cwd=SDL_root)
|
||||||
|
|
||||||
subprocess.run([
|
subprocess.run([
|
||||||
"git",
|
"git",
|
||||||
"apply",
|
"apply",
|
||||||
"--3way",
|
"--3way",
|
||||||
repository_root / "External" / "SDL-use-proper-types.patch"
|
repository_root / "External" / "SDL-use-proper-types.patch"
|
||||||
], cwd = SDL_root)
|
], cwd=SDL_root)
|
||||||
|
|
||||||
|
|
||||||
def get_sdl_api_dump():
|
def get_sdl_api_dump():
|
||||||
subprocess.run([
|
subprocess.run([
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue