From 81489ec8e698d03c131ecca7493ed8fe97f9e788 Mon Sep 17 00:00:00 2001 From: infinitefusion Date: Sat, 21 Dec 2024 17:00:22 -0500 Subject: [PATCH] fixes crash with ai entries on mobile --- Data/.idea/.gitignore | 8 ++++++++ Data/.idea/Data.iml | 11 +++++++++++ Data/.idea/modules.xml | 8 ++++++++ Data/.idea/vcs.xml | 6 ++++++ .../001_Technical/002_Files/003_HTTP_Utilities.rb | 2 +- 5 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 Data/.idea/.gitignore create mode 100644 Data/.idea/Data.iml create mode 100644 Data/.idea/modules.xml create mode 100644 Data/.idea/vcs.xml diff --git a/Data/.idea/.gitignore b/Data/.idea/.gitignore new file mode 100644 index 000000000..906bf8738 --- /dev/null +++ b/Data/.idea/.gitignore @@ -0,0 +1,8 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Datasource local storage ignored files +/../../../../../../../../../../../:\Users\charl\Documents\Jeux\rpgmaker\infinitefusion\dev\infinitefusion-e18\Data\.idea/dataSources/ +/dataSources.local.xml +# Editor-based HTTP Client requests +/httpRequests/ diff --git a/Data/.idea/Data.iml b/Data/.idea/Data.iml new file mode 100644 index 000000000..c3cd732c0 --- /dev/null +++ b/Data/.idea/Data.iml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/Data/.idea/modules.xml b/Data/.idea/modules.xml new file mode 100644 index 000000000..b708111c7 --- /dev/null +++ b/Data/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/Data/.idea/vcs.xml b/Data/.idea/vcs.xml new file mode 100644 index 000000000..6c0b86358 --- /dev/null +++ b/Data/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/Data/Scripts/001_Technical/002_Files/003_HTTP_Utilities.rb b/Data/Scripts/001_Technical/002_Files/003_HTTP_Utilities.rb index 859547d63..ea56b1e13 100644 --- a/Data/Scripts/001_Technical/002_Files/003_HTTP_Utilities.rb +++ b/Data/Scripts/001_Technical/002_Files/003_HTTP_Utilities.rb @@ -120,7 +120,7 @@ end def clean_json_string(str) # Remove non-UTF-8 characters and unexpected control characters - cleaned_str = str.encode('UTF-8', 'binary', invalid: :replace, undef: :replace, replace: '') + cleaned_str = str.encode('UTF-8', 'binary', invalid: :replace, undef: :replace, replace: '') if !$PokemonSystem.on_mobile # Remove literal \n, \r, \t, etc. cleaned_str = cleaned_str.gsub(/\\n|\\r|\\t/, '')