Skip to content

Commit

Permalink
Minor Helper Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
marcussacana committed Dec 27, 2020
1 parent 8495b6c commit 27bba99
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions CatSceneEditor/CSTHelper.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CatSceneEditor {
public class CSTHelper {
Expand Down Expand Up @@ -76,7 +75,7 @@ public byte[] Export(string[] Strings) {
for (uint i = 0; i < Entries.LongLength; i++) {
if (Entries[i].Type == 8193 || Entries[i].Type == 8449) {
string String = Prefix[x] + Strings[x].Trim() + Sufix[x];
if (Wordwrap && String.Contains(" ")) {
if (Wordwrap && String.Contains(" ") && Entries[i].Type != 8449) {
String = WordwrapEscape(String);
}
FakeDecode(ref String, false);
Expand Down Expand Up @@ -185,9 +184,9 @@ private void CutString(ref string String, uint ID, bool Cutted) {

private string GetPrefix(string String) {
foreach (string str in Prefixs)
if (String.ToLower().StartsWith(str + ';'))
if (String.StartsWith(str + ';'))
return str + ';';
else if (String.ToLower().StartsWith(str))
else if (String.StartsWith(str))
return str;
return null;
}
Expand Down

0 comments on commit 27bba99

Please sign in to comment.