Commit Graph

650 Commits

Author SHA1 Message Date
Kae
1c89042016
Merge pull request #19 from kblaschke/fix-compiler-warnings
Fixed a huge amount of Clang warnings
2024-02-20 09:47:10 +11:00
Kai Blaschke
d0099a6d79
Fixed some uninitialized members
May have caused undefined behavior in few cases, as most of the fixed members were used before being initialized.
2024-02-19 23:44:59 +01:00
Kai Blaschke
42fc1d6714
Fixed a memory leak in Image::readPngMetadata()
The memory allocated by png_create_read_struct() was not freed before exiting the function, wasting lots of memory over time.
2024-02-19 20:47:58 +01:00
Kai Blaschke
7c4fbad2ba
Removed some redundant std::move usages in return statements. 2024-02-19 18:39:01 +01:00
Kai Blaschke
431a9c00a5
Fixed a huge amount of Clang warnings
On Linux and macOS, using Clang to compile OpenStarbound produces about 400 MB worth of warnings during the build, making the compiler output unreadable and slowing the build down considerably.

99% of the warnings were unqualified uses of std::move and std::forward, which are now all properly qualified.

Fixed a few other minor warnings about non-virtual destructors and some uses of std::move preventing copy elision on temporary objects.

Most remaining warnings are now unused parameters.
2024-02-19 16:55:19 +01:00
Kai Blaschke
86106b06d6
Add StarFormat.h include to fix test compilation on UNIX
Linker otherwise can't find a specialized template instance for strf() in a test. Adding the include file will locally generate the missing specialization.
2024-02-19 14:13:33 +01:00
Kai Blaschke
c731eedeaf
Use memmove instead of memcpy as the blocks overlap. 2024-02-19 14:13:33 +01:00
Kai Blaschke
ef82ae3aeb
Add GitHub Actions build workflows 2024-02-19 14:11:19 +01:00
Kai Blaschke
e2251a0e8b
Add detection for ARM64 and remove PPC.
Also removed i386 as valid architecture for macOS, as it's no longer supported (even x86_64 is currently being phased out in favor of Silicon-based Macs).

ARM64 would also be required for a potential Raspberry Pi port (also needs a Vulkan or OpenGL ES renderer).
2024-02-19 14:11:14 +01:00
Kae
30e1871d3f switch build type on old build scripts 2024-02-18 18:20:01 +11:00
Lumi Kalt
f96664b29a
Merge pull request #17 from yzh5606/main
seems fix the memory issue
2024-02-14 19:32:09 +00:00
yzh
eb9564c3de
maybe fix /run cmd 2024-02-14 22:45:59 +08:00
yzh
1d23b7c1be
maybe fix the /run cmd 2024-02-14 22:39:35 +08:00
yzh
29dcec6afe
update CmakeSettings 2024-02-13 15:20:13 +08:00
yzh
a081dbee7b
Merge remote-tracking branch 'origin/main' 2024-02-13 14:54:20 +08:00
yzh
2950259ede
semms fix the memory issue 2024-02-13 14:52:45 +08:00
yzh
4e331c5404
fix memory leak 2024-02-13 14:49:00 +08:00
Kae
1641c46620
Update README.md 2024-02-05 07:43:04 +11:00
yzh
33db825d04
fix world_benchmark update() param 2024-02-01 15:00:57 +08:00
yzh
98472dbb7b
vs config file 2024-02-01 14:58:32 +08:00
Kae
ea28fc8071
Merge pull request #12 from Bottinator22/main
Move instruments to their own audio group and volume setting
2024-01-03 20:09:39 +11:00
Kae
ddc64fb14c Fix up and add options menu slider 2024-01-03 20:08:57 +11:00
Kae
98b27f5f65 Update StarDirectives.cpp 2024-01-03 19:17:19 +11:00
Bottinator22
91cf2d8251 Add fork changes (move instruments to their own audio group) 2024-01-02 23:08:51 -08:00
Kae
9e605b182d
Update README.md 2023-12-20 09:23:32 +11:00
Kae
588065cfc3 Update StarRootLuaBindings.cpp 2023-11-30 21:48:43 +11:00
Kae
2a56c3f9e3 Fix constant tile entity space updates 2023-11-30 21:48:31 +11:00
Kae
8d0dcd11d7 Update StarMainApplication_sdl.cpp 2023-11-29 13:45:53 +11:00
Kae
65cf738832 Update StarMainApplication_sdl.cpp 2023-11-29 13:45:13 +11:00
Kae
b52d7405f2 Merge branch 'main' of https://github.com/OpenStarbound/OpenStarbound 2023-11-29 13:37:19 +11:00
Kae
2ffd83c283 Restore missing configuration keys from default 2023-11-29 13:37:08 +11:00
Kae
1ef39dc071
Merge pull request #7 from WereTech/main
Add a camera panning speed setting
2023-11-29 13:36:27 +11:00
WereTech
6294e9ed1c add camera panning speed setting
- adds a setting that changes the speed of the camera when panning with the CameraShift keybind.
- fixes what I assume is a typo in the zoom slider that referenced the resolution list size instead of the zoom list size
2023-11-28 11:04:45 -06:00
Kae
24c2820ce1 Update StarPlayerStorage.cpp 2023-11-27 10:13:21 +11:00
Kae
ac66491b3f fix Opus options (the right way) 2023-11-26 23:01:02 +11:00
Kae
8181cff72e Hopefully fix the rare lightmap flicker 2023-11-25 23:36:36 +11:00
Kae
f3c7bd1d5e Directives fixes 2023-11-25 23:03:46 +11:00
Kae
9c7d35ee26 A TYPO!!!!! 2023-11-25 22:23:10 +11:00
Kae
1db9091f50 non-zero default for script.updateDt for cases when it's called outside update() 2023-11-24 20:44:43 +11:00
Kae
9bef78a737 make Image move assignment zero other variables 2023-11-24 20:39:41 +11:00
Kae
994b0fe3cf Fix TestUniverse 2023-11-24 20:35:45 +11:00
Kae
de53f8c7d7 fallback to hex string when a player UUID has no corresponding filename 2023-11-24 20:35:21 +11:00
Kae
81198f091c fix Image not resetting properly after being moved from 2023-11-24 20:34:41 +11:00
Kae
eb4652b5f6 small CMake fix so Opus values set in extern/CMakeLists.txt work 2023-11-23 17:33:34 +11:00
Kae
74985240fc simplify necessary sbinit fields on Windows 2023-11-03 08:07:29 +11:00
Kae
5815a873a7 Add more root.asset* functions 2023-11-03 06:51:17 +11:00
Kae
ab7768a3f0 Remove x64-Release leaving just RelWithDebInfo 2023-11-03 06:42:15 +11:00
Kae
1f5b954eb2 Fix (vanilla): Item disappearing from action bar after stacking identical item into it 2023-11-02 16:31:35 +11:00
Kae
86f41b8450 Fix crash right clicking empty item slots with no swap item 2023-11-02 16:30:34 +11:00
Kae
f5c63fa189 Update StarInput.cpp 2023-11-02 11:13:12 +11:00