Commit graph

589 commits

Author SHA1 Message Date
6849ecc535 Trigger build process
Some checks failed
linux / linux (push) Failing after 38s
linux_ss / linux_ss (push) Failing after 29s
android / android (push) Failing after 2m40s
web / web (push) Failing after 3m31s
macos / macos (push) Has been cancelled
windows / windows (push) Has been cancelled
2026-06-18 04:13:08 +00:00
ROllerozxa
f75299ee8d Add fallback for Windows cache dir if LOCALAPPDATA is undefined 2026-06-10 00:02:15 +02:00
ROllerozxa
0922b84a69 Fix building Dear Imgui backend on Windows 2026-06-09 23:45:23 +02:00
ROllerozxa
b55735c2a0 Fix unity build on Windows 2026-06-09 23:43:23 +02:00
ROllerozxa
4c395f09af Build TMS as a unity build too
The C portion of TMS is its own unity build chunk while the portions of TMS in C++ are lumped into the main chunk
2026-06-07 21:13:52 +02:00
ROllerozxa
1505be8191 Use #pragma once in TMS sources 2026-06-07 20:55:02 +02:00
ROllerozxa
a2b7870842 Clean up TMS includes in Principia code
Always only `#include <tms/cpp.hh>` in C++ source files to make sure everything gets included with the correct declarations (i.e. `extern "C"` for TMS C stuff)
2026-06-07 20:50:17 +02:00
ROllerozxa
9ffb133da5 Add experimental unity build support behind UNITY_BUILD compile option
It will build most of the main C++ codebase in one chunk, as well as build the entirety of Box2D in its own chunk. This should significantly improve build times for full builds.
2026-06-07 19:20:21 +02:00
ROllerozxa
76bd4d9c70 Undefine preprocessor defines that conflict across source files 2026-06-07 16:34:45 +02:00
ROllerozxa
df00758dfe Move some static global variables that cause collisions into static class members 2026-06-07 16:12:32 +02:00
ROllerozxa
e1ceb49cd2 Rename and deduplicate name colliding vert structs 2026-06-07 00:51:15 +02:00
ROllerozxa
a22c9ed7e6 Principia 2026.06.06 2026.06.06 2026-06-06 13:24:48 +02:00
ROllerozxa
d54405e45c Add fastlane changelog for upcoming version 2026-06-06 13:03:35 +02:00
ROllerozxa
0ad08adab8 Deduplicate base LuaScript sprite verts 2026-06-05 21:43:09 +02:00
ROllerozxa
422e95b14c Clean up commented out code in wall pivot source file
Likely half-remaining remnants from when the wall pivot was like the static motor in Apparatus
2026-06-05 20:23:40 +02:00
ROllerozxa
a9fffcd18f Cleanup and minor refactoring in model.cc/hh 2026-06-05 20:22:28 +02:00
ROllerozxa
89ea9eebbd Move "initialized" variables for static class init into a class member 2026-06-05 19:49:33 +02:00
ROllerozxa
9580040c73 Readd #include <time.h> in pkgman.hh 2026-06-05 16:55:21 +02:00
ROllerozxa
689163b24e Extract some pkginfo methods out of header
Removes the dependency on progress.hh in pkgman.hh
2026-06-05 16:52:26 +02:00
ROllerozxa
a3ffe63962 Disable vsync when in a loading screen
This used to be the case but I removed it in 006f12e8d6 which made e.g. initial loading unnecessarily slow. Bring it back for now.
2026-06-05 16:25:45 +02:00
ROllerozxa
d14bf51465 Cleanups and minor refactoring in object_factory.cc/hh 2026-06-05 16:24:41 +02:00
ROllerozxa
f3e13c4a80 Cleanups and minor refactoring in main.cc/hh 2026-06-05 16:22:31 +02:00
ROllerozxa
eca1b4807b Bump Windows deps 2026-06-04 23:43:16 +02:00
ROllerozxa
c6be936430 Merge branch 'master' of github.com:Bithack/principia 2026-06-04 23:41:19 +02:00
ROllerozxa
6689542b27 Bump Android deps 2026-06-04 23:40:51 +02:00
Dimitris Dafnis
08ab103f44
Guard external URL launch in the in-game WebView (#215)
When the WebView opens a URL that is neither a principia: link nor a
community-host page, it hands it to an external app with
startActivity(ACTION_VIEW). On a device with no app able to open the URI
that call throws ActivityNotFoundException and the activity crashes.

Wrap the launch in a try/catch so an unresolvable link is logged and the
WebView dialog still closes cleanly.
2026-06-04 20:37:22 +02:00
ROllerozxa
de03bb63fe Remove unnecessary Windows-specific codepath for getting level modification date
mingw-w64 has historically provided polyfills for this, but seems like UCRT also provides this functionality nowadays, so no reason to keep this around
2026-06-03 20:51:14 +02:00
ROllerozxa
ef59cc871a Use real GL types for pipeline uniform functions 2026-06-03 19:07:00 +02:00
ROllerozxa
8246880adc Don't link against GTK3 libs if we're doing a desktop build with Imgui backend 2026-06-03 19:05:18 +02:00
ROllerozxa
814eaea412 Remove some unnecessary FILE_IN_ASSET usages
These methods are never used for loading the main puzzle package or levels on Android
2026-06-02 22:12:16 +02:00
ROllerozxa
63d60d6a45 Add progress-dump tool for dumping data.bin progress data 2026-06-02 21:29:56 +02:00
ROllerozxa
cfcc169661 Cleanup and minor refactoring of progress.cc/hh
Also document some stuff in the progress.hh header
2026-06-02 21:23:20 +02:00
ROllerozxa
2a8ad3df09 Deduplicate and reduce indentation in some pkgman methods 2026-06-02 21:09:48 +02:00
ROllerozxa
a9408d30ca Import Kaitai Struct files into utils/kaitai/
Originally maintained at https://github.com/principia-game/kaitai
2026-06-02 16:52:24 +02:00
ROllerozxa
10e05d687b Add package-creator tool for making package files from JSON data
Rewritten from the PackageCreator Python script to use Principia's own package writing utilities instead
2026-06-02 16:14:56 +02:00
ROllerozxa
6ea828e4d3 Fix up usage instructions for featured-list-creator
Make it more in line with how it is for the other util programs
2026-06-02 00:38:18 +02:00
ROllerozxa
66923575b4 Merge in featured-list-creator into utils/
Originally a C program (previously Python script) at https://github.com/principia-game/featured-list-creator for creating fl.cache files for the community site, merge into the main repository so it is with all the other util programs.
2026-06-02 00:31:44 +02:00
ROllerozxa
f564ba2e3f Fix move_matching_files Windows codepath in migration code
Need to turn strings wide for the UTF-16 Win32 API functions...
2026-05-31 21:49:16 +02:00
ROllerozxa
734fb3f8d7 Add lvlbuf-decompressor tool for decompressing level buffer
Rewritten from the original `level-decompressor` Python script into C++ using Principia's own level reader
2026-05-31 01:14:08 +02:00
ROllerozxa
71be99541b Add compiler flags for dead code removal in util programs 2026-05-31 00:17:48 +02:00
ROllerozxa
0051979187 Add lvl-icon-extractor tool for extracting icon from level files
Rewritten from the original `level-screenshot-converter` Python script into C++ using Principia's own level reader and libpng directly
2026-05-31 00:17:18 +02:00
ROllerozxa
01236f4b31 Move util programs back into main repository
Also includes new Makefiles for building them and a README in the main utils dir
2026-05-30 01:04:34 +02:00
ROllerozxa
f2413ac302 Cleanups in pkgman source file
Code cleanups, convert comments into annotations consumable by Doxygen, etc...
2026-05-30 00:49:13 +02:00
goodusername123
2a5a1e98ff
make Windows installer high DPI aware. (#213)
also flips on `XPStyle` to ensure newer styled UI controls are used.
2026-05-28 14:19:49 +02:00
ROllerozxa
cdb15b688b Fixes in imgui dialog code
Fixes for things that broke in a newer version of dear imgui & other bugfixes
2026-05-17 22:37:24 +02:00
ROllerozxa
b86f959b6f Update Dear Imgui to 93e396f 2026-05-17 22:35:13 +02:00
ROllerozxa
8771027650 Cleanups in entity source file
Code cleanups, convert comments into annotations consumable by Doxygen where applicable, renames and splits up the shape extruder object's class into a separate source files, etc...
2026-05-16 17:31:48 +02:00
ROllerozxa
fac177b9f1 Fix CI 2026-05-11 17:09:19 +02:00
ROllerozxa
1888998337 Comment out archive: false in CI workflows
nightly.link doesn't support bare artifacts yet
2026-05-11 16:55:11 +02:00
ROllerozxa
4eee1846ff Bump GitHub Actions action versions
Also use new `archive: false` for artifact uploading where appropriate to prevent nested zips from happening
2026-04-27 20:36:25 +02:00