From 21cd2c012ef23ec3f4b374d82056f1fa1694d904 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sat, 22 Aug 2015 19:02:57 +0200 Subject: props changed only Some source files had executable bit on. Remove it. --- clientfiles/make-csv.pl | 0 1 file changed, 0 insertions(+), 0 deletions(-) mode change 100755 => 100644 clientfiles/make-csv.pl (limited to 'clientfiles') diff --git a/clientfiles/make-csv.pl b/clientfiles/make-csv.pl old mode 100755 new mode 100644 -- cgit v1.2.3 From 5871f5fb0d7aac67bbac7055d22a59f80576621b Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sun, 23 Aug 2015 11:58:41 +0200 Subject: game-data: chomp newlines in extractor Some of the XML data is malformed. Chomp newlines to ease Perl's job. --- .../important-stuff/game_data.c | 34 ++++++++++++++++------ 1 file changed, 25 insertions(+), 9 deletions(-) (limited to 'clientfiles') diff --git a/clientfiles/very-important-source-code/important-stuff/game_data.c b/clientfiles/very-important-source-code/important-stuff/game_data.c index f80a7d44..48774187 100644 --- a/clientfiles/very-important-source-code/important-stuff/game_data.c +++ b/clientfiles/very-important-source-code/important-stuff/game_data.c @@ -114,6 +114,20 @@ static void game_data_close() #define ltr_int_log_message(...) fprintf(stderr, __VA_ARGS__) +static void remove_newlines(const char* str, char* out, int out_len) +{ + int i, j; + int len = strlen(str); + for (i = 0, j = 0; str[i] && j + 1 < out_len; i++) + { + if (str[i] == '\r' || str[i] == '\n') + continue; + out[j++] = str[i]; + } + if (j < out_len) + out[j] = '\0'; +} + bool get_game_data(const char *input_fname, const char *output_fname, bool from_update) { FILE *outfile = NULL; @@ -129,19 +143,21 @@ bool get_game_data(const char *input_fname, const char *output_fname, bool from_ mxml_node_t *game; const char *name; const char *id; - for(game = mxmlFindElement(tree, tree, "Game", NULL, NULL, MXML_DESCEND); + for(game = mxmlFindElement(tree, tree, "Game", NULL, NULL, MXML_DESCEND); game != NULL; - game = mxmlFindElement(game, tree, "Game", NULL, NULL, MXML_DESCEND)){ + game = mxmlFindElement(game, tree, "Game", NULL, NULL, MXML_DESCEND)) + { name = mxmlElementGetAttr(game, "Name"); id = mxmlElementGetAttr(game, "Id"); - + mxml_node_t *appid = mxmlFindElement(game, game, "ApplicationID", NULL, NULL, MXML_DESCEND); - if(appid == NULL){ - fprintf(outfile, "%s \"%s\"\n", id, name); - }else{ - fprintf(outfile, "%s \"%s\" (%s)\n", id, name, appid->child->value.text.string); - } - } + char name_[256]; + remove_newlines(name, name_, sizeof(name_)); + if(appid == NULL) + fprintf(outfile, "%s \"%s\"\n", id, name_); + else + fprintf(outfile, "%s \"%s\" (%s)\n", id, name_, appid->child->value.text.string); + } fclose(outfile); game_data_close(); return true; -- cgit v1.2.3 From 522c53e0f48c10fd51b9dcda195d2089b7bfd2a8 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Fri, 4 Sep 2015 06:01:58 +0200 Subject: freepie-udp: update Performance improvements in the new version --- .../freepie-udp/com.freepie.android.imu.apk | Bin 167874 -> 167989 bytes 1 file changed, 0 insertions(+), 0 deletions(-) (limited to 'clientfiles') diff --git a/clientfiles/freepie-udp/com.freepie.android.imu.apk b/clientfiles/freepie-udp/com.freepie.android.imu.apk index 11934d67..b1f052aa 100644 Binary files a/clientfiles/freepie-udp/com.freepie.android.imu.apk and b/clientfiles/freepie-udp/com.freepie.android.imu.apk differ -- cgit v1.2.3 From b853b4877632ee16d3ba3226edcfa371398e8cb0 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Fri, 4 Sep 2015 08:28:13 +0200 Subject: freepie-udp: add license --- clientfiles/freepie-udp/license.txt | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 clientfiles/freepie-udp/license.txt (limited to 'clientfiles') diff --git a/clientfiles/freepie-udp/license.txt b/clientfiles/freepie-udp/license.txt new file mode 100644 index 00000000..c40094f2 --- /dev/null +++ b/clientfiles/freepie-udp/license.txt @@ -0,0 +1,22 @@ +The MIT License (MIT) + +Copyright (c) 2012-2015 Anders Malmgren +Copyright (c) 2014-2015 Stanislaw Halik + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. -- cgit v1.2.3