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:
@@ -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.
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user