Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
Agdbentures
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
GitLab upgrade completed. Current version is 17.8.2.
Show more breadcrumbs
CORSE
Agdbentures
Commits
cbfcec8c
Commit
cbfcec8c
authored
2 years ago
by
Florent Bouchez Tichadou
Browse files
Options
Downloads
Patches
Plain Diff
fix: str concat with list when engine_tags empty
parent
ab2ed80e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
easytracker
+1
-1
1 addition, 1 deletion
easytracker
lib/level/utils.py
+4
-0
4 additions, 0 deletions
lib/level/utils.py
make_level.py
+2
-0
2 additions, 0 deletions
make_level.py
with
7 additions
and
1 deletion
easytracker
@
49da81f8
Compare
988254c6
...
49da81f8
Subproject commit
988254c69dc15632c00c1a1ea0dbcff43ee6193f
Subproject commit
49da81f86e7e7f45ad11e8af7e03c8dbbfabb235
This diff is collapsed.
Click to expand it.
lib/level/utils.py
+
4
−
0
View file @
cbfcec8c
...
...
@@ -364,6 +364,10 @@ def generate_dict(file):
# Tags
elif
head
in
[
"
tags
"
,
"
tag
"
]:
metadata
[
"
tags
"
]
+=
str_to_list
(
tail
)
elif
head
.
endswith
(
"
tags
"
):
if
head
not
in
metadata
:
metadata
[
head
]
=
[]
metadata
[
head
]
+=
str_to_list
(
tail
)
# Raw hints
elif
head
.
startswith
(
"
hint
"
):
metadata
[
"
hints
"
].
append
(
tail
)
...
...
This diff is collapsed.
Click to expand it.
make_level.py
+
2
−
0
View file @
cbfcec8c
...
...
@@ -123,6 +123,7 @@ create_dir(WORKING_DIR)
# 1 Reads the metadata from the main.c file
metadata
=
generate_dict
(
MAIN_SOURCE_FILE
)
logging
.
debug
(
"
Metadata:
"
)
logging
.
debug
(
str
(
metadata
))
# 2 Apply tags to engine and level files
...
...
@@ -182,6 +183,7 @@ logging.debug(
SOURCE_ENGINE_DIR
=
os
.
path
.
join
(
AGDBENTURES_DIR
,
"
engines
"
,
metadata
[
"
engine_name
"
])
logging
.
debug
(
f
"
Source engine dir
{
SOURCE_ENGINE_DIR
}
"
)
process_directory
(
SOURCE_ENGINE_DIR
,
defines
=
metadata
[
"
engine_tags
"
],
udefines
=
[
"
engine_antitags
"
]
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment