rate url on iOS and properly launching from .app on OSX

This commit is contained in:
Ariel Manzur 2016-04-29 10:45:31 -03:00
parent de3ed61fc5
commit 6962fd91c6
2 changed files with 12 additions and 2 deletions

View file

@ -26,8 +26,10 @@ String iOS::get_rate_url(int p_app_id) const {
ret = templ_iOS8;
}
ret = ret.replace("APP_ID", String::num(p_app_id));
// ios7 for everything?
ret = templ_iOS7.replace("APP_ID", String::num(p_app_id));
printf("returning rate url %ls\n", ret.c_str());
return ret;
};

View file

@ -36,6 +36,14 @@
int main(int argc, char** argv) {
int first_arg = 1;
const char* dbg_arg = "-NSDocumentRevisionsDebugMode";
printf("arguments\n");
for (int i=0; i<argc; i++) {
if (strcmp(dbg_arg, argv[i]) == 0)
first_arg = i+2;
printf("%i: %s\n", i, argv[i]);
};
if (argc>=1 && argv[0][0]=='/') {
@ -74,7 +82,7 @@ int main(int argc, char** argv) {
OS_OSX os;
Error err = Main::setup(argv[0],argc-1,&argv[1]);
Error err = Main::setup(argv[0],argc-first_arg,&argv[first_arg]);
if (err!=OK)
return 255;