1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-02-01 19:25:12 +01:00

Print the object image table entry after sprite build command (#24921)

Co-authored-by: ZeeMaji <42477864+ZeeMaji@users.noreply.github.com>
This commit is contained in:
mix
2025-08-09 10:03:02 +01:00
committed by GitHub
parent 91ba8c893e
commit f7f4ae8c59
2 changed files with 9 additions and 0 deletions

View File

@@ -2,6 +2,7 @@
------------------------------------------------------------------------
- Improved: [#24734] Save files now use Zstd compression for faster saving and smaller files.
- Improved: [#24893] The ride list now has headers, and can be sorted in both directions.
- Improved: [#24921] The command line sprite build command now prints out the images table entry for the compiled sprite file.
- Fix: [#16988] AppImage version does not show changelog.
- Fix: [#24173] Allow all game speeds between 1 and 8 if developer mode is on.

View File

@@ -604,6 +604,14 @@ int32_t CommandLineForSprite(const char** argv, int32_t argc)
}
fprintf(stdout, "Finished building graphics repository with %u images\n", numSuccessful);
if (numSuccessful > 0)
{
printf("Replace the object's images table entries with this:\n");
const auto spriteFileName = OpenRCT2::Path::GetFileName(spriteFilePath);
fprintf(stdout, "\"$LGX:%s[0..%u]\"\n", spriteFileName.c_str(), numSuccessful - 1);
}
return 1;
}