Skip to content

Commit 2c1bfc3

Browse files
committed
Add v1.09 changes
1 parent ea62c38 commit 2c1bfc3

File tree

7 files changed

+377
-30
lines changed

7 files changed

+377
-30
lines changed

Data.h

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,24 @@ typedef rRundata * LPRRDATA;
1919
// you should store it here
2020

2121
typedef headerObject object;
22-
typedef hash_map<string,float> variables;
23-
typedef pair<string,float> variable;
22+
typedef hash_map<string,float> float_vars;
23+
typedef pair<string,float> float_var;
24+
typedef hash_map<string,string> string_vars;
25+
typedef pair<string,string> string_var;
26+
struct variables
27+
{
28+
float_vars floats;
29+
string_vars strings;
30+
};
31+
2432
typedef hash_map<unsigned int,variables> variable_map;
2533
typedef pair<unsigned int,variables> objvar_pair;
2634
typedef struct tagRDATA
2735
{
2836
#include "MagicRDATA.h"
29-
37+
3038
variable_map * pVariableMap;
31-
39+
3240
} RUNDATA;
3341
typedef RUNDATA * LPRDATA;
3442

DynExt.h

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,28 @@ inline bool Param_Comparison_Test(Comparison comparison, double left, double rig
203203
}
204204
}
205205

206+
inline bool Param_Comparison_Test(Comparison comparison, const char* left, const char* right)
207+
{
208+
int result = strcmp(left, right);
209+
switch(comparison)
210+
{
211+
case PC_EQUAL:
212+
return result == 0;
213+
case PC_DIFFERENT:
214+
return result != 0;
215+
case PC_LOWER_OR_EQUAL:
216+
return result <= 0;
217+
case PC_LOWER:
218+
return result < 0;
219+
case PC_GREATER_OR_EQUAL:
220+
return result >= 0;
221+
case PC_GREATER:
222+
return result > 0;
223+
default:
224+
return 0; // ERROR!!!
225+
}
226+
}
227+
206228
////
207229

208230
/*double GetDoubleParameter(LPRDATA rdPtr)

Ext.rc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_UK
1919
#ifndef _MAC
2020

2121
1 VERSIONINFO
22-
FILEVERSION 1,8,0,0
23-
PRODUCTVERSION 1,8,0,0
22+
FILEVERSION 1,9,0,0
23+
PRODUCTVERSION 1,9,0,0
2424
FILEFLAGSMASK 0x0L
2525
#ifdef _DEBUG
2626
FILEFLAGS 0x1L
@@ -36,7 +36,7 @@ BEGIN
3636
BLOCK "080004e4"
3737
BEGIN
3838
VALUE "FileDescription", "Value-Add Object For Clickteam's MMF2"
39-
VALUE "FileVersion", "v1.08.0"
39+
VALUE "FileVersion", "v1.09.0"
4040
VALUE "LegalCopyright", "Copyright � 2008-2010 Dynamic Arcade"
4141
VALUE "OriginalFilename", "ValueAdd.mfx"
4242
END

Information.h

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,12 @@
2121
// Change N,O,N,E to 4 unique characters (MMF currently still uses this to keep track)
2222
#define IDENTIFIER MAKEID(D,A,V,A)
2323

24-
// Version 1.08.0
25-
#define VERSION 180
24+
// Version 1.09.0
25+
#define VERSION 190
2626

27-
#define SAVEDATAVERSION 1
27+
#define SAVEDATAVERSION_MINSUPPORTED 1
28+
#define SAVEDATAVERSION_STRINGSADDED 2
29+
#define SAVEDATAVERSION 2
2830

2931
// --------------------
3032
// Version information

0 commit comments

Comments
 (0)