From d2f2c76dfc5e122f86e56ce6f68551aa621e9d2b Mon Sep 17 00:00:00 2001 From: Darloli <96697399+SorYoshino@users.noreply.github.com> Date: Fri, 25 Jul 2025 22:09:35 +0800 Subject: [PATCH] Version: correct the variable name 'name' to 'project-name' --- doc/json_schema.json | 2 +- src/modules/version/version.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/json_schema.json b/doc/json_schema.json index 4653d0fb9..32ec40e40 100644 --- a/doc/json_schema.json +++ b/doc/json_schema.json @@ -479,7 +479,7 @@ "type": "string" }, "versionFormat": { - "description": "Output format of the module `Version`. See Wiki for formatting syntax\n 1. {name}: Project name\n 2. {version}: Version\n 3. {version-tweak}: Version tweak\n 4. {build-type}: Build type (debug or release)\n 5. {sysname}: System name\n 6. {arch}: Architecture\n 7. {cmake-built-type}: CMake build type when compiling (Debug, Release, RelWithDebInfo, MinSizeRel)\n 8. {compile-time}: Date time when compiling\n 9. {compiler}: Compiler used when compiling\n 10. {libc}: Libc used when compiling", + "description": "Output format of the module `Version`. See Wiki for formatting syntax\n 1. {project-name}: Project name\n 2. {version}: Version\n 3. {version-tweak}: Version tweak\n 4. {build-type}: Build type (debug or release)\n 5. {sysname}: System name\n 6. {arch}: Architecture\n 7. {cmake-built-type}: CMake build type when compiling (Debug, Release, RelWithDebInfo, MinSizeRel)\n 8. {compile-time}: Date time when compiling\n 9. {compiler}: Compiler used when compiling\n 10. {libc}: Libc used when compiling", "type": "string" }, "vulkanFormat": { diff --git a/src/modules/version/version.c b/src/modules/version/version.c index 39a851e32..426cbc3d2 100644 --- a/src/modules/version/version.c +++ b/src/modules/version/version.c @@ -120,7 +120,7 @@ static FFModuleBaseInfo ffModuleInfo = { .generateJsonResult = (void*) ffGenerateVersionJsonResult, .generateJsonConfig = (void*) ffGenerateVersionJsonConfig, .formatArgs = FF_FORMAT_ARG_LIST(((FFModuleFormatArg[]) { - {"Project name", "name"}, + {"Project name", "project-name"}, {"Version", "version"}, {"Version tweak", "version-tweak"}, {"Build type (debug or release)", "build-type"},