Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compatible with save files created from Linux version. #127

Open
wants to merge 2 commits into
base: dev-branch
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions TS SE Tool/MethodsDecodeSave.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public unsafe string[] NewDecodeFile(string _savefile_path, bool _verbose)
{
FileDecoded = true;
string BigS = Encoding.UTF8.GetString(fileDataInBytes);
return BigS.Split(new string[] { "\r\n" }, StringSplitOptions.None);
return BigS.Split(new string[] { "\r\n", "\n" }, StringSplitOptions.None);
}
case 2:
// "SIIDEC_RESULT_FORMAT_ENCRYPTED";
Expand Down Expand Up @@ -82,7 +82,7 @@ public unsafe string[] NewDecodeFile(string _savefile_path, bool _verbose)

FileDecoded = true;
string BigS = Encoding.UTF8.GetString(newFileData);
return BigS.Split(new string[] { "\r\n" }, StringSplitOptions.None);
return BigS.Split(new string[] { "\r\n", "\n" }, StringSplitOptions.None);

}

Expand Down Expand Up @@ -121,7 +121,7 @@ public unsafe string[] NewDecodeFile(string _savefile_path, bool _verbose)

FileDecoded = true;
string BigS = Encoding.UTF8.GetString(newFileData);
return BigS.Split(new string[] { "\r\n" }, StringSplitOptions.None);
return BigS.Split(new string[] { "\r\n", "\n" }, StringSplitOptions.None);
}
return null;
}
Expand Down
Binary file modified TS SE Tool/SII_Decrypt.dll
Binary file not shown.