separate demo from final game

just an assumption, as the text didn't have enough filecounts, they may
be splitting things up.

text variable codes likely the same, and garcs may be shifted as 238 is
a little too few for a full game
This commit is contained in:
Kaphotics
2016-10-31 21:43:21 -07:00
parent b859df5ea1
commit cd1bf42710
3 changed files with 40 additions and 0 deletions

View File

@@ -74,6 +74,27 @@ public GARCReference getRelativeGARC(int offset, string name = "")
new GARCReference(071, "gametext", true),
new GARCReference(079, "storytext", true),
};
public static readonly GARCReference[] GARCReference_SMDEMO =
{
new GARCReference(011, "move"),
new GARCReference(012, "eggmove"),
new GARCReference(013, "levelup"),
new GARCReference(014, "evolution"),
new GARCReference(015, "megaevo"),
new GARCReference(017, "personal"),
new GARCReference(019, "item"),
new GARCReference(076, "zonedata"),
new GARCReference(081, "encdata"),
new GARCReference(101, "trclass"),
new GARCReference(102, "trdata"),
new GARCReference(103, "trpoke"),
// Varied
new GARCReference(030, "gametext", true),
new GARCReference(040, "storytext", true),
};
public static readonly GARCReference[] GARCReference_SM =
{
new GARCReference(011, "move"),

View File

@@ -67,6 +67,10 @@ private void getGameData(GameVersion game)
break;
case GameVersion.SMDEMO:
Files = GARCReference.GARCReference_SMDEMO;
Variables = TextVariableCode.VariableCodes_SM;
GameText = TextReference.GameText_SMDEMO;
break;
case GameVersion.SM:
Files = GARCReference.GARCReference_SM;
Variables = TextVariableCode.VariableCodes_SM;

View File

@@ -70,6 +70,21 @@ private TextReference(int index, TextName name)
new TextReference(154, TextName.SuperTrainerNames),
new TextReference(165, TextName.OPowerFlavor),
};
public static readonly TextReference[] GameText_SMDEMO =
{
new TextReference(020, TextName.ItemFlavor),
new TextReference(021, TextName.ItemNames),
new TextReference(026, TextName.SpeciesNames),
new TextReference(030, TextName.metlist_000000),
new TextReference(044, TextName.Forms), // Testing.
new TextReference(044, TextName.Natures),
new TextReference(046, TextName.AbilityNames),
new TextReference(049, TextName.TrainerText),
new TextReference(050, TextName.TrainerNames),
new TextReference(051, TextName.TrainerClasses),
new TextReference(052, TextName.Types),
new TextReference(055, TextName.MoveNames),
};
public static readonly TextReference[] GameText_SM =
{
new TextReference(020, TextName.ItemFlavor),