Skip to content

Commit

Permalink
Cut release of v0.10.
Browse files Browse the repository at this point in the history
	Add minor refactor to VI_Phrase -> Phrase, VI_Action_Sequence -> Action_Sequence.
  • Loading branch information
Robert Baykov committed Apr 24, 2016
1 parent 0be8475 commit 5f4ddf3
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 873 deletions.
2 changes: 1 addition & 1 deletion GAVPI/GAVPI/Core/GAVPI.cs
Expand Up @@ -24,7 +24,7 @@ static class GAVPI
// The application's title, a system-wide unique ID to facilitate single-instancing (see Mutex,
// later), and an XML Path to easily extract specific information from GAVPI Profile XML documents.

public const string BUILD_VERSION = "GAVPI Alpha 0.09 04.09.16";
public const string BUILD_VERSION = "GAVPI Alpha 0.10 04.23.16";

const string APPLICATION_TITLE = "GAVPI";

Expand Down
8 changes: 8 additions & 0 deletions GAVPI/GAVPI/Core/Profile/Profile.cs
Expand Up @@ -197,6 +197,10 @@ public bool load_profile( string filename )
ack_frm_file.type = element.Attributes.GetNamedItem("type").Value;
ack_frm_file.comment = element.Attributes.GetNamedItem("comment").Value;

// Add backward comptability.
if (ack_frm_file.type == "VI_Action_Sequence")
{ ack_frm_file.type = "Action_Sequence"; }

// If available, add the random attribute to the action sequence attributes.
try
{
Expand Down Expand Up @@ -284,6 +288,10 @@ public bool load_profile( string filename )
string trigger_value = element.Attributes.GetNamedItem("value").Value;
string trigger_comment= element.Attributes.GetNamedItem("comment").Value;

// Add backward compatability with older profiles.
if (trigger_type == "VI_Phrase")
{trigger_type = "Phrase";}

Type new_trigger_type = Type.GetType("GAVPI." + trigger_type);
object trigger_isntance = trigger_isntance = Activator.CreateInstance(new_trigger_type, trigger_name, trigger_value);
trig_frm_file = (Trigger)trigger_isntance;
Expand Down
320 changes: 0 additions & 320 deletions Profiles/POWER.xml

This file was deleted.

0 comments on commit 5f4ddf3

Please sign in to comment.