Kae
33d696d505
pointless commit to run checks
...
I shouldn't have skipped CI on the prev commit :V
2024-02-29 14:47:10 +11:00
Kae
4534172c2f
Fix build error compiling with Discord support
...
[skip ci]
2024-02-29 14:33:39 +11:00
Kae
667ca6025f
Merge pull request #23 from kblaschke/add-clang-format-file
...
Add .clang-format file
2024-02-29 14:19:50 +11:00
Kai Blaschke
cd23817bf1
Fixed remaining compiler warnings
...
Some warnings (e.g. in Opus and the tests) can't be fixed, only suppressed.
2024-02-28 18:30:27 +01:00
Kai Blaschke
28d486446c
Potential bugfix in quest coordinate matcher
2024-02-28 18:30:23 +01:00
Kai Blaschke
2c67296e0f
Add .clang-format file
...
Resembles the existing code style as closely as possible, so that future commits and reformatting won't change the code. Visual Studio (Code) and CLion support this file.
2024-02-28 17:35:05 +01:00
Kae
a1addf1ec2
Merge pull request #22 from kblaschke/use-pragma-once
...
Use "#pragma once" instead of include guards
2024-02-26 13:57:22 +11:00
Kai Blaschke
3073a88cd1
Use "#pragma once" instead of include guards
2024-02-25 15:46:47 +01:00
Kae
7d9c9d3b32
move oddly placed player input code
2024-02-22 17:38:47 +11:00
Kae
9485aff8b8
minor input bug fix
2024-02-22 17:26:12 +11:00
Kae
ae3ecabcea
loadstring shouldn't accept bytecode
2024-02-22 17:25:46 +11:00
Kae
f5ddb00675
Update CMakeLists.txt
2024-02-22 16:46:45 +11:00
Kae
3b25df55b5
Merge pull request #21 from kblaschke/allow-jemalloc-from-system
...
Support prefixed and non-prefixed JeMalloc functions
2024-02-22 12:00:37 +11:00
Kai Blaschke
9029f897da
Support prefixed and non-prefixed JeMalloc functions
...
Note that linking a JeMalloc library without prefixed functions will replace all memory allocations, including any call to "new", not just the ones specifically called via Star::malloc etc.
2024-02-21 18:08:56 +01:00
Kae
b8da62bf43
Update README.md
2024-02-21 10:15:17 +11:00
Kae
e6f96cb2bd
std::allocator::rebind is deprecated
...
Clang should no longer scream
2024-02-20 19:34:58 +11:00
Kae
43b2fa53e7
I hate Freetype
2024-02-20 17:44:53 +11:00
Kae
e891499a9f
Update CMakeLists.txt
2024-02-20 17:39:16 +11:00
Kae
533ad7f943
Update CMakeLists.txt
2024-02-20 16:59:47 +11:00
Kae
33c61c540e
Update CMakeLists.txt
2024-02-20 16:01:45 +11:00
Kae
941bcb5bf8
Update build_windows.yml
2024-02-20 15:42:54 +11:00
Kae
187ab51df0
custom vcpkg triplet
2024-02-20 15:32:35 +11:00
Kae
fc6391e4db
Update build_windows.yml
2024-02-20 13:32:20 +11:00
Kae
c58c0acddb
Revert "Update build_windows.yml"
...
This reverts commit e0a9d9a5e3
.
2024-02-20 11:34:46 +11:00
Kae
e0a9d9a5e3
Update build_windows.yml
...
Use static linking with vcpkg dependencies
2024-02-20 11:26:40 +11:00
Kae
e50842e48d
Update build_windows.yml
2024-02-20 10:43:33 +11:00
Kae
442347d82e
fix minor Image memleak
2024-02-20 10:00:35 +11:00
Kae
a7cfe73544
Merge pull request #18 from kblaschke/add-github-actions-workflow-files
...
Add initial GitHub Actions workflow files to run build checks
2024-02-20 09:50:40 +11:00
Kae
00cf86f240
Merge pull request #20 from kblaschke/small-fixes
...
A few small fixes
2024-02-20 09:49:50 +11:00
Kae
aa987a2177
Merge branch 'main' into small-fixes
2024-02-20 09:49:42 +11:00
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