G
G
Georgiy Padalko2012-09-18 00:58:26
iOS
Georgiy Padalko, 2012-09-18 00:58:26

Marmalade SDK, how to find out the version-string given by MKB in runtime?

The MKB file has the following lines set via the deployment tool:
version-major=1
version-minor=2
version-revision=3
version-string='1.2.3'
Question: how to find out these values ​​at runtime? I do not want to duplicate somewhere else if they are already set in the MKB.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
Georgiy Padalko, 2015-04-10
@kkray

char tmp_str[ 32 ] = "";
s3eResult version_req_result = s3eConfigGetString("S3E","SysAppVersion",tmp_str );

In order not to swear in debugging, you will need to add a line to the ICF file:
[s3e]
# Used in debug builds only, deployed builds override this.
SysAppVersion=DEV

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question