FlashGBX 3.36__py3-none-any.whl → 4.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
FlashGBX/hw_JoeyJr.py ADDED
@@ -0,0 +1,309 @@
1
+ # -*- coding: utf-8 -*-
2
+ # FlashGBX
3
+ # Author: Lesserkuma (github.com/lesserkuma)
4
+
5
+ # pylint: disable=wildcard-import, unused-wildcard-import
6
+ from .LK_Device import *
7
+
8
+ class GbxDevice(LK_Device):
9
+ DEVICE_NAME = "Joey Jr"
10
+ DEVICE_MIN_FW = 1
11
+ DEVICE_MAX_FW = 12
12
+ DEVICE_LATEST_FW_TS = 1719609931
13
+ PCB_VERSIONS = { -1:"", 0x01:"V2", 0x81:"V2", 0x02:"V2C", 0x82:"V2C", 0x03:"V2CC", 0x83:"V2CC/V2++" }
14
+
15
+ def __init__(self):
16
+ pass
17
+
18
+ def Initialize(self, flashcarts, port=None, max_baud=2000000):
19
+ if self.IsConnected(): self.DEVICE.close()
20
+ conn_msg = []
21
+ ports = []
22
+ if port is not None:
23
+ ports = [ port ]
24
+ else:
25
+ comports = serial.tools.list_ports.comports()
26
+ for i in range(0, len(comports)):
27
+ if comports[i].vid == 0x483 and comports[i].pid == 0x5740:
28
+ ports.append(comports[i].device)
29
+ if len(ports) == 0: return False
30
+
31
+ for i in range(0, len(ports)):
32
+ if self.TryConnect(ports[i], max_baud):
33
+ self.BAUDRATE = max_baud
34
+ dev = serial.Serial(ports[i], self.BAUDRATE, timeout=0.1)
35
+ self.DEVICE = dev
36
+ else:
37
+ continue
38
+
39
+ if self.FW is None or self.FW == {}: continue
40
+
41
+ dprint(f"Found a {self.DEVICE_NAME}")
42
+ dprint("Firmware information:", self.FW)
43
+ # dprint("Baud rate:", self.BAUDRATE)
44
+
45
+ if self.DEVICE is None or not self.IsConnected():
46
+ self.DEVICE = None
47
+ if self.FW is not None:
48
+ conn_msg.append([0, "Couldn’t communicate with the " + self.DEVICE_NAME + " device on port " + ports[i] + ". Please disconnect and reconnect the device, then try again."])
49
+ continue
50
+ elif self.FW is None:
51
+ dev.close()
52
+ self.DEVICE = None
53
+ continue
54
+ elif self.FW["cfw_id"] == "G": # Not a CFW by Lesserkuma
55
+ dprint("Device runs the JoeyGUI firmware")
56
+ elif self.FW["pcb_ver"] not in self.PCB_VERSIONS.keys() or "cfw_id" not in self.FW or self.FW["cfw_id"] != 'L' or self.FW["fw_ver"] < self.DEVICE_MIN_FW: # Not a CFW by Lesserkuma
57
+ dprint("Incompatible firmware:", self.FW)
58
+ dev.close()
59
+ self.DEVICE = None
60
+ continue
61
+ elif self.FW["fw_ts"] > self.DEVICE_LATEST_FW_TS:
62
+ conn_msg.append([0, "Note: The " + self.DEVICE_NAME + " device on port " + ports[i] + " is running a firmware version that is newer than what this version of FlashGBX was developed to work with, so errors may occur."])
63
+
64
+ if (self.FW["pcb_ver"] & 0x7F) == 1:
65
+ conn_msg.append([3, "The revision of your Joey Jr device does not support the software-controlled voltage switch feature, so it is currently not supported by FlashGBX."])
66
+ dev.close()
67
+ self.DEVICE = None
68
+ continue
69
+
70
+ self.MAX_BUFFER_READ = 0x1000
71
+ self.MAX_BUFFER_WRITE = 0x800
72
+
73
+ self.PORT = ports[i]
74
+ self.DEVICE.timeout = self.DEVICE_TIMEOUT
75
+
76
+ conn_msg.append([0, "For help with your Joey Jr device, please visit the BennVenn Discord: https://discord.gg/F5ckxM2"])
77
+
78
+ # Load Flash Cartridge Handlers
79
+ self.UpdateFlashCarts(flashcarts)
80
+
81
+ # Stop after first found device
82
+ break
83
+
84
+ return conn_msg
85
+
86
+ def LoadFirmwareVersion(self):
87
+ dprint("Querying firmware version")
88
+ try:
89
+ self.DEVICE.timeout = 0.075
90
+ self.DEVICE.reset_input_buffer()
91
+ self.DEVICE.reset_output_buffer()
92
+
93
+ self._write(bytearray(b'\x55\xAA'))
94
+ time.sleep(0.01)
95
+ device_id = self.DEVICE.read(self.DEVICE.in_waiting)
96
+
97
+ if b"Joey" not in device_id:
98
+ dprint("Not a Joey Jr")
99
+ self.FW = None
100
+ return False
101
+
102
+ if b"FW L" not in device_id:
103
+ dprint("Not running LK firmware")
104
+ if b"GUI" in device_id or b"FW vG" in device_id:
105
+ pcb_name = device_id[1:].decode("UTF-8", "ignore")
106
+ self.FW = {
107
+ "pcb_ver":-1,
108
+ "pcb_name":f"{pcb_name}",
109
+ "cfw_id":"G",
110
+ "fw_ver":0,
111
+ "fw_ts":0,
112
+ "fw_dt":"JoeyGUI",
113
+ "cart_power_ctrl":False,
114
+ "bootloader_reset":True
115
+ }
116
+ return True
117
+ return False
118
+
119
+ if device_id[0] == 0:
120
+ self._write(bytearray(b'LK')) # Enable LK firmware
121
+ if self.DEVICE.read(1) != b'\xFF':
122
+ dprint("LK firmware was not enabled successfully")
123
+ self.FW = None
124
+ return False
125
+
126
+ self._write(self.DEVICE_CMD["QUERY_FW_INFO"])
127
+ size = self.DEVICE.read(1)
128
+ self.DEVICE.timeout = self.DEVICE_TIMEOUT
129
+ if len(size) == 0:
130
+ print("No response")
131
+ self.FW = None
132
+ return False
133
+ size = struct.unpack("B", size)[0]
134
+ if size != 8:
135
+ print(size)
136
+ return False
137
+ data = self._read(size)
138
+ info = data[:8]
139
+ keys = ["cfw_id", "fw_ver", "pcb_ver", "fw_ts"]
140
+ values = struct.unpack(">cHBI", bytearray(info))
141
+ self.FW = dict(zip(keys, values))
142
+ self.FW["cfw_id"] = self.FW["cfw_id"].decode('ascii')
143
+ self.FW["fw_dt"] = datetime.datetime.fromtimestamp(self.FW["fw_ts"]).astimezone().replace(microsecond=0).isoformat()
144
+ self.FW["ofw_ver"] = None
145
+ self.FW["pcb_name"] = None
146
+ self.FW["cart_power_ctrl"] = False
147
+ self.FW["bootloader_reset"] = False
148
+ if self.FW["cfw_id"] == "L" and self.FW["fw_ver"] >= 12:
149
+ size = self._read(1)
150
+ name = self._read(size)
151
+ if len(name) > 0:
152
+ try:
153
+ self.FW["pcb_name"] = name.decode("UTF-8").replace("\x00", "").strip()
154
+ except:
155
+ self.FW["pcb_name"] = "Unnamed Device"
156
+ self.DEVICE_NAME = self.FW["pcb_name"]
157
+
158
+ # Cartridge Power Control support
159
+ self.FW["cart_power_ctrl"] = True if self._read(1) == 1 else False
160
+
161
+ # Reset to bootloader support
162
+ self.FW["bootloader_reset"] = True if self._read(1) == 1 else False
163
+ return True
164
+
165
+ except Exception as e:
166
+ dprint("Disconnecting due to an error", e, sep="\n")
167
+ try:
168
+ if self.DEVICE.isOpen():
169
+ self.DEVICE.reset_input_buffer()
170
+ self.DEVICE.reset_output_buffer()
171
+ self.DEVICE.close()
172
+ self.DEVICE = None
173
+ except:
174
+ pass
175
+ return False
176
+
177
+ def ChangeBaudRate(self, _):
178
+ dprint("Baudrate change is not supported.")
179
+
180
+ def CheckActive(self):
181
+ if time.time() < self.LAST_CHECK_ACTIVE + 1: return True
182
+ dprint("Checking if device is active")
183
+ if self.DEVICE is None: return False
184
+ if self.FW["pcb_name"] is None:
185
+ if self.LoadFirmwareVersion():
186
+ self.LAST_CHECK_ACTIVE = time.time()
187
+ return True
188
+ else:
189
+ return False
190
+ try:
191
+ self._get_fw_variable("CART_MODE")
192
+ self.LAST_CHECK_ACTIVE = time.time()
193
+ return True
194
+ except Exception as e:
195
+ dprint("Disconnecting...", e)
196
+ try:
197
+ if self.DEVICE.isOpen():
198
+ self.DEVICE.reset_input_buffer()
199
+ self.DEVICE.reset_output_buffer()
200
+ self.DEVICE.close()
201
+ self.DEVICE = None
202
+ except:
203
+ pass
204
+ return False
205
+
206
+ def GetFirmwareVersion(self, more=False):
207
+ if self.FW["pcb_ver"] == -1:
208
+ return "JoeyGUI"
209
+
210
+ s = "{:s}{:d}".format(self.FW["cfw_id"], self.FW["fw_ver"])
211
+ if self.FW["pcb_name"] == None:
212
+ s += " <unverified>"
213
+ if more:
214
+ s += " ({:s})".format(self.FW["fw_dt"])
215
+ return s
216
+
217
+ def GetFullNameLabel(self):
218
+ if self.FW["pcb_ver"] == -1:
219
+ return self.FW["pcb_name"]
220
+ return super().GetFullNameLabel()
221
+
222
+ def GetFullName(self):
223
+ return self.GetName()
224
+
225
+ def GetFullNameExtended(self, more=False):
226
+ if self.FW["pcb_ver"] == -1:
227
+ return self.FW["pcb_name"]
228
+
229
+ if more:
230
+ return "{:s} – Firmware {:s} ({:s}) on {:s}".format(self.GetFullName(), self.GetFirmwareVersion(), self.FW["fw_dt"], self.GetPort())
231
+ else:
232
+ return "{:s} – Firmware {:s} ({:s})".format(self.GetFullName(), self.GetFirmwareVersion(), self.GetPort())
233
+
234
+ def CanSetVoltageManually(self):
235
+ return False
236
+
237
+ def CanSetVoltageAutomatically(self):
238
+ return True
239
+
240
+ def CanPowerCycleCart(self):
241
+ return self.FW["cart_power_ctrl"]
242
+
243
+ def GetSupprtedModes(self):
244
+ return ["DMG", "AGB"]
245
+
246
+ def IsSupported3dMemory(self):
247
+ return True
248
+
249
+ def IsClkConnected(self):
250
+ return True
251
+
252
+ def SupportsFirmwareUpdates(self):
253
+ return True
254
+
255
+ def FirmwareUpdateAvailable(self):
256
+ if self.FW["cfw_id"] == "G":
257
+ self.FW_UPDATE_REQ = True
258
+ return True
259
+ if self.FW["fw_ts"] < self.DEVICE_LATEST_FW_TS:
260
+ return True
261
+ self.FW_UPDATE_REQ = False
262
+ return False
263
+
264
+ def GetFirmwareUpdaterClass(self):
265
+ try:
266
+ from . import fw_JoeyJr
267
+ return (None, fw_JoeyJr.FirmwareUpdaterWindow)
268
+ except:
269
+ return None
270
+
271
+ def ResetLEDs(self):
272
+ pass
273
+
274
+ def SupportsBootloaderReset(self):
275
+ return self.FW["bootloader_reset"]
276
+
277
+ def BootloaderReset(self):
278
+ if not self.SupportsBootloaderReset(): return False
279
+ dprint("Resetting to bootloader...")
280
+ try:
281
+ self._write(self.DEVICE_CMD["BOOTLOADER_RESET"], wait=True)
282
+ self._write(1)
283
+ self.Close()
284
+ return True
285
+ except Exception as e:
286
+ print("Disconnecting...", e)
287
+ return False
288
+
289
+ def SupportsAudioAsWe(self):
290
+ return True
291
+
292
+ def Close(self, cartPowerOff=False):
293
+ if self.FW["cfw_id"] == "G":
294
+ self.DEVICE.close()
295
+
296
+ if self.IsConnected():
297
+ dprint("Disconnecting from the device")
298
+ try:
299
+ if cartPowerOff and self.CanPowerCycleCart():
300
+ self._set_fw_variable("AUTO_POWEROFF_TIME", 0)
301
+ self._write(self.DEVICE_CMD["CART_PWR_OFF"], wait=self.FW["fw_ver"] >= 12)
302
+ else:
303
+ self._write(self.DEVICE_CMD["SET_VOLTAGE_3_3V"], wait=self.FW["fw_ver"] >= 12)
304
+ self.DEVICE.write(b'KL') # Disable LK firmware
305
+ self.DEVICE.read(1)
306
+ self.DEVICE.close()
307
+ except:
308
+ self.DEVICE = None
309
+ self.MODE = None
@@ -0,0 +1,342 @@
1
+ # Qt
2
+
3
+ <p>This program uses Qt.</p>
4
+ <p>Qt is a C++ toolkit for cross-platform application development.</p>
5
+ <p>Qt provides single-source portability across all major desktop operating systems. It is also available for embedded Linux and other embedded and mobile operating systems.</p>
6
+ <p>Qt is available under multiple licensing options designed to accommodate the needs of our various users.</p>
7
+ <p>Qt licensed under our commercial license agreement is appropriate for development of proprietary/commercial software where you do not want to share any source code with third parties or otherwise cannot comply with the terms of GNU (L)GPL.</p>
8
+ <p>Qt licensed under GNU (L)GPL is appropriate for the development of Qt&nbsp;applications provided you can comply with the terms and conditions of the respective licenses.</p>
9
+ <p>Please see <a href="https://qt.io/licensing/">qt.io/licensing</a> for an overview of Qt licensing.</p>
10
+ <p>Copyright (C) The Qt Company Ltd and other contributors.</p>
11
+ <p>Qt and the Qt logo are trademarks of The Qt Company Ltd.</p>
12
+ <p>Qt is The Qt Company Ltd product developed as an open source project. See <a href="https://qt.io/">qt.io</a> for more information.</p>
13
+
14
+ # Pillow
15
+
16
+ The Python Imaging Library (PIL) is
17
+
18
+ Copyright © 1997-2011 by Secret Labs AB
19
+ Copyright © 1995-2011 by Fredrik Lundh and contributors
20
+
21
+ Pillow is the friendly PIL fork. It is
22
+
23
+ Copyright © 2010-2024 by Jeffrey A. Clark and contributors
24
+
25
+ Like PIL, Pillow is licensed under the open source HPND License:
26
+
27
+ By obtaining, using, and/or copying this software and/or its associated
28
+ documentation, you agree that you have read, understood, and will comply
29
+ with the following terms and conditions:
30
+
31
+ Permission to use, copy, modify and distribute this software and its
32
+ documentation for any purpose and without fee is hereby granted,
33
+ provided that the above copyright notice appears in all copies, and that
34
+ both that copyright notice and this permission notice appear in supporting
35
+ documentation, and that the name of Secret Labs AB or the author not be
36
+ used in advertising or publicity pertaining to distribution of the software
37
+ without specific, written prior permission.
38
+
39
+ SECRET LABS AB AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS
40
+ SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS.
41
+ IN NO EVENT SHALL SECRET LABS AB OR THE AUTHOR BE LIABLE FOR ANY SPECIAL,
42
+ INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
43
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
44
+ OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
45
+ PERFORMANCE OF THIS SOFTWARE.
46
+
47
+ # pySerial
48
+
49
+ Copyright (c) 2001-2020 Chris Liechti <cliechti@gmx.net>
50
+ All Rights Reserved.
51
+
52
+ Redistribution and use in source and binary forms, with or without
53
+ modification, are permitted provided that the following conditions are
54
+ met:
55
+
56
+ * Redistributions of source code must retain the above copyright
57
+ notice, this list of conditions and the following disclaimer.
58
+
59
+ * Redistributions in binary form must reproduce the above
60
+ copyright notice, this list of conditions and the following
61
+ disclaimer in the documentation and/or other materials provided
62
+ with the distribution.
63
+
64
+ * Neither the name of the copyright holder nor the names of its
65
+ contributors may be used to endorse or promote products derived
66
+ from this software without specific prior written permission.
67
+
68
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
69
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
70
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
71
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
72
+ HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
73
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
74
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
75
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
76
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
77
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
78
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
79
+
80
+ ---------------------------------------------------------------------------
81
+ Note:
82
+ Individual files contain the following tag instead of the full license text.
83
+
84
+ SPDX-License-Identifier: BSD-3-Clause
85
+
86
+ This enables machine processing of license information based on the SPDX
87
+ License Identifiers that are here available: http://spdx.org/licenses/
88
+
89
+ # setuptools
90
+
91
+ Permission is hereby granted, free of charge, to any person obtaining a copy
92
+ of this software and associated documentation files (the "Software"), to
93
+ deal in the Software without restriction, including without limitation the
94
+ rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
95
+ sell copies of the Software, and to permit persons to whom the Software is
96
+ furnished to do so, subject to the following conditions:
97
+
98
+ The above copyright notice and this permission notice shall be included in
99
+ all copies or substantial portions of the Software.
100
+
101
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
102
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
103
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
104
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
105
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
106
+ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
107
+ IN THE SOFTWARE.
108
+
109
+ # requests
110
+
111
+
112
+ Apache License
113
+ Version 2.0, January 2004
114
+ http://www.apache.org/licenses/
115
+
116
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
117
+
118
+ 1. Definitions.
119
+
120
+ "License" shall mean the terms and conditions for use, reproduction,
121
+ and distribution as defined by Sections 1 through 9 of this document.
122
+
123
+ "Licensor" shall mean the copyright owner or entity authorized by
124
+ the copyright owner that is granting the License.
125
+
126
+ "Legal Entity" shall mean the union of the acting entity and all
127
+ other entities that control, are controlled by, or are under common
128
+ control with that entity. For the purposes of this definition,
129
+ "control" means (i) the power, direct or indirect, to cause the
130
+ direction or management of such entity, whether by contract or
131
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
132
+ outstanding shares, or (iii) beneficial ownership of such entity.
133
+
134
+ "You" (or "Your") shall mean an individual or Legal Entity
135
+ exercising permissions granted by this License.
136
+
137
+ "Source" form shall mean the preferred form for making modifications,
138
+ including but not limited to software source code, documentation
139
+ source, and configuration files.
140
+
141
+ "Object" form shall mean any form resulting from mechanical
142
+ transformation or translation of a Source form, including but
143
+ not limited to compiled object code, generated documentation,
144
+ and conversions to other media types.
145
+
146
+ "Work" shall mean the work of authorship, whether in Source or
147
+ Object form, made available under the License, as indicated by a
148
+ copyright notice that is included in or attached to the work
149
+ (an example is provided in the Appendix below).
150
+
151
+ "Derivative Works" shall mean any work, whether in Source or Object
152
+ form, that is based on (or derived from) the Work and for which the
153
+ editorial revisions, annotations, elaborations, or other modifications
154
+ represent, as a whole, an original work of authorship. For the purposes
155
+ of this License, Derivative Works shall not include works that remain
156
+ separable from, or merely link (or bind by name) to the interfaces of,
157
+ the Work and Derivative Works thereof.
158
+
159
+ "Contribution" shall mean any work of authorship, including
160
+ the original version of the Work and any modifications or additions
161
+ to that Work or Derivative Works thereof, that is intentionally
162
+ submitted to Licensor for inclusion in the Work by the copyright owner
163
+ or by an individual or Legal Entity authorized to submit on behalf of
164
+ the copyright owner. For the purposes of this definition, "submitted"
165
+ means any form of electronic, verbal, or written communication sent
166
+ to the Licensor or its representatives, including but not limited to
167
+ communication on electronic mailing lists, source code control systems,
168
+ and issue tracking systems that are managed by, or on behalf of, the
169
+ Licensor for the purpose of discussing and improving the Work, but
170
+ excluding communication that is conspicuously marked or otherwise
171
+ designated in writing by the copyright owner as "Not a Contribution."
172
+
173
+ "Contributor" shall mean Licensor and any individual or Legal Entity
174
+ on behalf of whom a Contribution has been received by Licensor and
175
+ subsequently incorporated within the Work.
176
+
177
+ 2. Grant of Copyright License. Subject to the terms and conditions of
178
+ this License, each Contributor hereby grants to You a perpetual,
179
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
180
+ copyright license to reproduce, prepare Derivative Works of,
181
+ publicly display, publicly perform, sublicense, and distribute the
182
+ Work and such Derivative Works in Source or Object form.
183
+
184
+ 3. Grant of Patent License. Subject to the terms and conditions of
185
+ this License, each Contributor hereby grants to You a perpetual,
186
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
187
+ (except as stated in this section) patent license to make, have made,
188
+ use, offer to sell, sell, import, and otherwise transfer the Work,
189
+ where such license applies only to those patent claims licensable
190
+ by such Contributor that are necessarily infringed by their
191
+ Contribution(s) alone or by combination of their Contribution(s)
192
+ with the Work to which such Contribution(s) was submitted. If You
193
+ institute patent litigation against any entity (including a
194
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
195
+ or a Contribution incorporated within the Work constitutes direct
196
+ or contributory patent infringement, then any patent licenses
197
+ granted to You under this License for that Work shall terminate
198
+ as of the date such litigation is filed.
199
+
200
+ 4. Redistribution. You may reproduce and distribute copies of the
201
+ Work or Derivative Works thereof in any medium, with or without
202
+ modifications, and in Source or Object form, provided that You
203
+ meet the following conditions:
204
+
205
+ (a) You must give any other recipients of the Work or
206
+ Derivative Works a copy of this License; and
207
+
208
+ (b) You must cause any modified files to carry prominent notices
209
+ stating that You changed the files; and
210
+
211
+ (c) You must retain, in the Source form of any Derivative Works
212
+ that You distribute, all copyright, patent, trademark, and
213
+ attribution notices from the Source form of the Work,
214
+ excluding those notices that do not pertain to any part of
215
+ the Derivative Works; and
216
+
217
+ (d) If the Work includes a "NOTICE" text file as part of its
218
+ distribution, then any Derivative Works that You distribute must
219
+ include a readable copy of the attribution notices contained
220
+ within such NOTICE file, excluding those notices that do not
221
+ pertain to any part of the Derivative Works, in at least one
222
+ of the following places: within a NOTICE text file distributed
223
+ as part of the Derivative Works; within the Source form or
224
+ documentation, if provided along with the Derivative Works; or,
225
+ within a display generated by the Derivative Works, if and
226
+ wherever such third-party notices normally appear. The contents
227
+ of the NOTICE file are for informational purposes only and
228
+ do not modify the License. You may add Your own attribution
229
+ notices within Derivative Works that You distribute, alongside
230
+ or as an addendum to the NOTICE text from the Work, provided
231
+ that such additional attribution notices cannot be construed
232
+ as modifying the License.
233
+
234
+ You may add Your own copyright statement to Your modifications and
235
+ may provide additional or different license terms and conditions
236
+ for use, reproduction, or distribution of Your modifications, or
237
+ for any such Derivative Works as a whole, provided Your use,
238
+ reproduction, and distribution of the Work otherwise complies with
239
+ the conditions stated in this License.
240
+
241
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
242
+ any Contribution intentionally submitted for inclusion in the Work
243
+ by You to the Licensor shall be under the terms and conditions of
244
+ this License, without any additional terms or conditions.
245
+ Notwithstanding the above, nothing herein shall supersede or modify
246
+ the terms of any separate license agreement you may have executed
247
+ with Licensor regarding such Contributions.
248
+
249
+ 6. Trademarks. This License does not grant permission to use the trade
250
+ names, trademarks, service marks, or product names of the Licensor,
251
+ except as required for reasonable and customary use in describing the
252
+ origin of the Work and reproducing the content of the NOTICE file.
253
+
254
+ 7. Disclaimer of Warranty. Unless required by applicable law or
255
+ agreed to in writing, Licensor provides the Work (and each
256
+ Contributor provides its Contributions) on an "AS IS" BASIS,
257
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
258
+ implied, including, without limitation, any warranties or conditions
259
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
260
+ PARTICULAR PURPOSE. You are solely responsible for determining the
261
+ appropriateness of using or redistributing the Work and assume any
262
+ risks associated with Your exercise of permissions under this License.
263
+
264
+ 8. Limitation of Liability. In no event and under no legal theory,
265
+ whether in tort (including negligence), contract, or otherwise,
266
+ unless required by applicable law (such as deliberate and grossly
267
+ negligent acts) or agreed to in writing, shall any Contributor be
268
+ liable to You for damages, including any direct, indirect, special,
269
+ incidental, or consequential damages of any character arising as a
270
+ result of this License or out of the use or inability to use the
271
+ Work (including but not limited to damages for loss of goodwill,
272
+ work stoppage, computer failure or malfunction, or any and all
273
+ other commercial damages or losses), even if such Contributor
274
+ has been advised of the possibility of such damages.
275
+
276
+ 9. Accepting Warranty or Additional Liability. While redistributing
277
+ the Work or Derivative Works thereof, You may choose to offer,
278
+ and charge a fee for, acceptance of support, warranty, indemnity,
279
+ or other liability obligations and/or rights consistent with this
280
+ License. However, in accepting such obligations, You may act only
281
+ on Your own behalf and on Your sole responsibility, not on behalf
282
+ of any other Contributor, and only if You agree to indemnify,
283
+ defend, and hold each Contributor harmless for any liability
284
+ incurred by, or claims asserted against, such Contributor by reason
285
+ of your accepting any such warranty or additional liability.
286
+
287
+ # dateutil
288
+
289
+ Copyright 2017- Paul Ganssle <paul@ganssle.io>
290
+ Copyright 2017- dateutil contributors (see AUTHORS file)
291
+
292
+ Licensed under the Apache License, Version 2.0 (the "License");
293
+ you may not use this file except in compliance with the License.
294
+ You may obtain a copy of the License at
295
+
296
+ http://www.apache.org/licenses/LICENSE-2.0
297
+
298
+ Unless required by applicable law or agreed to in writing, software
299
+ distributed under the License is distributed on an "AS IS" BASIS,
300
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
301
+ See the License for the specific language governing permissions and
302
+ limitations under the License.
303
+
304
+ The above license applies to all contributions after 2017-12-01, as well as
305
+ all contributions that have been re-licensed (see AUTHORS file for the list of
306
+ contributors who have re-licensed their code).
307
+ --------------------------------------------------------------------------------
308
+ dateutil - Extensions to the standard Python datetime module.
309
+
310
+ Copyright (c) 2003-2011 - Gustavo Niemeyer <gustavo@niemeyer.net>
311
+ Copyright (c) 2012-2014 - Tomi Pieviläinen <tomi.pievilainen@iki.fi>
312
+ Copyright (c) 2014-2016 - Yaron de Leeuw <me@jarondl.net>
313
+ Copyright (c) 2015- - Paul Ganssle <paul@ganssle.io>
314
+ Copyright (c) 2015- - dateutil contributors (see AUTHORS file)
315
+
316
+ All rights reserved.
317
+
318
+ Redistribution and use in source and binary forms, with or without
319
+ modification, are permitted provided that the following conditions are met:
320
+
321
+ * Redistributions of source code must retain the above copyright notice,
322
+ this list of conditions and the following disclaimer.
323
+ * Redistributions in binary form must reproduce the above copyright notice,
324
+ this list of conditions and the following disclaimer in the documentation
325
+ and/or other materials provided with the distribution.
326
+ * Neither the name of the copyright holder nor the names of its
327
+ contributors may be used to endorse or promote products derived from
328
+ this software without specific prior written permission.
329
+
330
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
331
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
332
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
333
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
334
+ CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
335
+ EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
336
+ PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
337
+ PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
338
+ LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
339
+ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
340
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
341
+
342
+ The above BSD License Applies to all code, even that also covered by Apache 2.0.
FlashGBX/res/config.zip CHANGED
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file