Age | Commit message (Collapse) | Author |
|
Also move Box2D ConvexDecomposition contrib code to
thirdparty/b2d_convexdecomp.
|
|
Code comes from https://github.com/antirez/smaz/blob/150e125cbae2e8fd20dd332432776ce13395d4d4/smaz.c
With a small modification to match Godot expectations:
```
diff --git a/thirdparty/core/smaz.c b/thirdparty/core/smaz.c
index 9b1ebc2..555dfea 100644
--- a/thirdparty/core/smaz.c
+++ b/thirdparty/core/smaz.c
@@ -14,7 +14,7 @@ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
#include <string.h>
/* Our compression codebook, used for compression */
-static char *Smaz_cb[241] = {
+static const char *Smaz_cb[241] = {
"\002s,\266", "\003had\232\002leW", "\003on \216", "", "\001yS",
"\002ma\255\002li\227", "\003or \260", "", "\002ll\230\003s t\277",
"\004fromg\002mel", "", "\003its\332", "\001z\333", "\003ingF", "\001>\336",
@@ -89,7 +89,7 @@ static char *Smaz_rcb[254] = {
"e, ", " it", "whi", " ma", "ge", "x", "e c", "men", ".com"
};
-int smaz_compress(char *in, int inlen, char *out, int outlen) {
+int smaz_compress(const char *in, int inlen, char *out, int outlen) {
unsigned int h1,h2,h3=0;
int verblen = 0, _outlen = outlen;
char verb[256], *_out = out;
@@ -167,7 +167,7 @@ out:
return out-_out;
}
-int smaz_decompress(char *in, int inlen, char *out, int outlen) {
+int smaz_decompress(const char *in, int inlen, char *out, int outlen) {
unsigned char *c = (unsigned char*) in;
char *_out = out;
int _outlen = outlen;
@@ -192,7 +192,7 @@ int smaz_decompress(char *in, int inlen, char *out, int outlen) {
inlen -= 2+len;
} else {
/* Codebook entry */
- char *s = Smaz_rcb[*c];
+ const char *s = Smaz_rcb[*c];
int len = strlen(s);
if (outlen < len) return _outlen+1;
diff --git a/thirdparty/core/smaz.h b/thirdparty/core/smaz.h
index a547d89..a9d8a33 100644
--- a/thirdparty/core/smaz.h
+++ b/thirdparty/core/smaz.h
@@ -14,7 +14,7 @@ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
#ifndef _SMAZ_H
#define _SMAZ_H
-int smaz_compress(char *in, int inlen, char *out, int outlen);
-int smaz_decompress(char *in, int inlen, char *out, int outlen);
+int smaz_compress(const char *in, int inlen, char *out, int outlen);
+int smaz_decompress(const char *in, int inlen, char *out, int outlen);
#endif
```
|
|
|
|
|
|
AudioServer: Set singleton to NULL when destructed
|
|
Update editor theme
|
|
|
|
|
|
Should make clang-format happy.
|
|
Right-clicking a folder now gives the option Show in file manager
|
|
Tree: Ability to add tooltips to TreeItem buttons.
|
|
Fix recognition of resource extensions.
|
|
|
|
Also removes a related debug print.
|
|
Changed indent type settings
|
|
HTML5: Add (multi-)touch events, fix inverted scrolling
|
|
Adds a tooltip parameter to `TreeItem::add_button()` and set a few tooltips in the Project settings and SceneTree dock.
|
|
|
|
|
|
Revert " 3.0 recompute_aabb on add_surface"
|
|
|
|
3.0 recompute_aabb on add_surface
|
|
Fix wrong fallback for locale
|
|
Fix error or download again if use obb for Android
|
|
Settings: Moving Poly Editor into Editors category
|
|
Fix auto_accept_quit option to work
|
|
Fix AudioPlayer bugs with OGG
|
|
Ability to Convert Case, issue 8079
|
|
Added documentation for SurfaceTool
|
|
|
|
|
|
|
|
|
|
Fixes inverted scrolling on Chromium
|
|
|
|
|
|
auto_accept_quit value is set first properly with GLOBAL_DEF("application/auto_accept_quit", true) in main.cpp
after that it's reset to true in SceneTree:init() whatever value was.
|
|
|
|
GDScript: Updating new script template with Indent settings
|
|
|
|
Added descriptions for WorldEnvironment node in documentation
[ci skip]
|
|
|
|
fixed a bug where saving a GDScript file crashed the editor
|
|
file manager
|
|
|
|
I changed the loop in #8502, turns out it fixed the error I was facing but introduced a new one. This fixes both
|
|
Fixed #8102, by renaming FixedSpatialMaterial to SpatialMaterial
|
|
[3.0] Fix bug in Image::_get_pixelb
|
|
Space indent fixes
|
|
Fix "Save/Delete Layout" text field goes outside of the popup
|