summaryrefslogtreecommitdiffhomepage
path: root/clientfiles
diff options
context:
space:
mode:
Diffstat (limited to 'clientfiles')
-rw-r--r--clientfiles/freepie-udp/com.freepie.android.imu.apkbin167874 -> 167989 bytes
-rw-r--r--clientfiles/freepie-udp/license.txt22
-rw-r--r--[-rwxr-xr-x]clientfiles/make-csv.pl0
-rw-r--r--clientfiles/very-important-source-code/important-stuff/game_data.c34
4 files changed, 47 insertions, 9 deletions
diff --git a/clientfiles/freepie-udp/com.freepie.android.imu.apk b/clientfiles/freepie-udp/com.freepie.android.imu.apk
index 11934d67..b1f052aa 100644
--- a/clientfiles/freepie-udp/com.freepie.android.imu.apk
+++ b/clientfiles/freepie-udp/com.freepie.android.imu.apk
Binary files differ
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.
diff --git a/clientfiles/make-csv.pl b/clientfiles/make-csv.pl
index ee60364e..ee60364e 100755..100644
--- a/clientfiles/make-csv.pl
+++ b/clientfiles/make-csv.pl
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;