Compare commits

...

3 commits

3 changed files with 5 additions and 6 deletions

View file

@ -18,7 +18,7 @@ set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
set(SAVETOOL_PROJECT_VERSION 1.5.0)
set(SAVETOOL_PROJECT_VERSION 1.5.1)
find_package(Corrade REQUIRED Containers Utility)
if(CORRADE_TARGET_WINDOWS)
@ -235,9 +235,9 @@ target_compile_definitions(MassBuilderSaveTool PRIVATE
SAVETOOL_VERSION_STRING="${SAVETOOL_PROJECT_VERSION}"
SAVETOOL_VERSION_MAJOR=1
SAVETOOL_VERSION_MINOR=5
SAVETOOL_VERSION_PATCH=0
SAVETOOL_VERSION_PATCH=1
SAVETOOL_VERSION_PRERELEASE=false
SAVETOOL_CODENAME="Fuckin' UE5..."
SAVETOOL_CODENAME="Friendly Valkyrie"
SAVETOOL_SUPPORTED_GAME_VERSION="0.11.x"
)

View file

@ -52,8 +52,7 @@ MassManager::hangar(std::int32_t hangar) {
void
MassManager::refreshHangar(std::int32_t hangar) {
if(hangar < 0 || hangar >= 32) {
_lastError = "Hangar index out of range.";
LOG_ERROR(_lastError);
LOG_ERROR(_lastError = Utility::format("Hangar index {} out of range.", hangar));
return;
}

View file

@ -131,7 +131,7 @@ StagedMassManager::import(Containers::StringView filename, int index, Containers
}
auto dest = Utility::Path::join(conf().directories().gameSaves,
Utility::format("{}Unit{}{}.sav", demo ? "Demo" : "", index, new_account));
Utility::format("{}Unit{:.2d}{}.sav", demo ? "Demo" : "", index, new_account));
if(Utility::Path::exists(dest)) {
Utility::Path::remove(dest);