Skip to content

Commit

Permalink
Final updates
Browse files Browse the repository at this point in the history
- Revert save # parse change
- Work around issues with corrupted ContentCatalog.txt
- Set final version
  • Loading branch information
Silarn committed Jun 23, 2024
1 parent 6aff3ad commit c2c8395
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/gamestarfield.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ QString GameStarfield::description() const

MOBase::VersionInfo GameStarfield::version() const
{
return VersionInfo(1, 1, 0, VersionInfo::RELEASE_CANDIDATE);
return VersionInfo(1, 1, 0, VersionInfo::RELEASE_FINAL);
}

QList<PluginSetting> GameStarfield::settings() const
Expand Down
4 changes: 2 additions & 2 deletions src/starfieldsavegame.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@ void StarfieldSaveGame::fetchInformationFields(
unsigned int version;
// file.read(fileID, 12);
headerSize = file.readInt(12);
saveNumber = file.readInt();
saveVersion = file.readChar();
version = file.readInt();
saveVersion = file.readChar();
saveNumber = file.readInt();
file.read(playerName);

unsigned int temp;
Expand Down
4 changes: 3 additions & 1 deletion src/starfieldunmanagedmods.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,9 @@ StarfieldUnmanagedMods::parseContentCatalog() const
"/ContentCatalog.txt");
std::map<QString, StarfieldUnmanagedMods::ContentCatalog> contentCatalog;
if (content.open(QIODevice::OpenModeFlag::ReadOnly)) {
auto contentData = content.readAll();
auto contentData = content.readAll();
QString convertedData = QString::fromLatin1(contentData);
contentData = convertedData.toUtf8();
QJsonParseError jsonError;
QJsonDocument contentDoc = QJsonDocument::fromJson(contentData, &jsonError);
if (jsonError.error) {
Expand Down

0 comments on commit c2c8395

Please sign in to comment.