6237 Commits

Author SHA1 Message Date
UnknownShadow200
6593ad50ab Android: Store cached textures in dedicated Cache folder in external storage
This means that from now on in Settings -> Apps, the user can accurately see how much of ClassiCube's data usage on disc comes from caching textures, and can clear the cached data if they choose to
2022-10-16 20:47:04 +11:00
UnknownShadow200
37abd39163 Android: WIP load file support
No filetype filtering and is pretty terribly implemented, but seems to work
2022-10-16 15:11:04 +11:00
UnknownShadow200
0fae97ff00 Android: Fix not compiling in Android Studio 2022-10-16 14:00:01 +11:00
UnknownShadow200
f9fde77e12 iOS: Store most things in documents instead of application support folder for greater visibility to the user, and store all cached textures inside Application Storage/Cache folder instead so that iOS doesn't back them up and will remove them when running low on disk space if required
See https://developer.apple.com/library/archive/documentation/FileManagement/Conceptual/FileSystemProgrammingGuide/FileSystemOverview/FileSystemOverview.html for more details
2022-10-15 21:57:00 +11:00
UnknownShadow200
a0536fc460 Launcher: Colour background of 'missing resources' menu based on current theme background colour 2022-10-15 19:02:50 +11:00
UnknownShadow200
46ccf99c67 iOS: Add app icons 2022-10-15 16:42:54 +11:00
UnknownShadow200
511c66e405 iOS: Get 'load file' support actually working 2022-10-15 12:14:41 +11:00
UnknownShadow200
d8df48789c Cocoa: Add 'scroll-debug' option to debug scroll events 2022-10-15 09:44:36 +11:00
UnknownShadow200
5d8f9bf6da Improve open file dialog API
Allows filetype description on Windows/Linux
Avoids Menus.c needing to call internal webclient interop_SaveNode function
For texture packs in webclient: Avoid saving into temp file, then reading into a copy in memory, then writing the copy into texpacks folder. Now just saves directly into texpacks folder
2022-10-14 22:03:51 +11:00
UnknownShadow200
ff6f40d953 Windows: Change working directory to executable directory if working directory is system folder (Thanks LegoSpaceGuy)
This can happen when e.g. launching the game via clicking on a search result in Windows 10 start menu
This results in the game being launched directly via shell process, which defaults to a working directory of system32 folder
See https://social.msdn.microsoft.com/Forums/sqlserver/en-US/ba590643-528b-44a5-b379-8a1e3e4250d0/windows-launches-my-app-in-system32-on-windows-startup for more details
2022-10-14 19:45:41 +11:00
UnknownShadow200
d1addd3ee0 Freetype: Remove the unused multiple renderers/rasterisers support 2022-10-13 21:54:08 +11:00
UnknownShadow200
ca07e4ef33 Allow using smaller value type tags for 16 bit/32 bit integer NBT value retrieval functions, addresses #966 2022-10-13 18:56:51 +11:00
UnknownShadow200
a7893ca0ec Cocoa: Fix legacy fullscreen mode not adjusting window size state and variables 2022-10-12 18:23:08 +11:00
UnknownShadow200
a8ba05adea Fix last commit compilation on older SDKs 2022-10-10 23:31:46 +11:00
UnknownShadow200
37b6ee4c4b Cocoa: Also print total VRAM and HW acceleration status, when available 2022-10-10 23:14:56 +11:00
UnknownShadow200
4578eb213c Make some older compilers a bit happier 2022-10-10 21:47:15 +11:00
UnknownShadow200
72eb5ed03e Cocoa: Get legacy fullscreen fallback to at least go fullscreen. Still doesn't use actual fullscreen size though 2022-10-09 22:05:50 +11:00
UnknownShadow200
e7650e1646 Minorly simplify OpenGL context creation 2022-10-09 18:54:09 +11:00
UnknownShadow200
7e35327d7e un-un-un-un-un-un-un-un-re-enable ModernGL build 2022-10-08 21:34:20 +11:00
UnknownShadow200
e9bab9b678 Unix: Change working directory to executable directory if working directory is HOME directory, addresses #970 2022-10-08 20:42:31 +11:00
UnknownShadow200
1b0ad6c30f un-un-un-un-un-un-un-re-enable ModernGL build 2022-10-08 18:26:21 +11:00
UnknownShadow200
f81f96d6f4 un-un-un-un-un-un-re-enable ModernGL build 2022-10-08 13:32:26 +11:00
UnknownShadow200
2e271d0c44 Release 1.3.3 1.3.3 2022-10-08 11:29:40 +11:00
UnknownShadow200
03ba5564d0 un-un-un-un-un-re-enable ModernGL build 2022-10-08 11:18:36 +11:00
UnknownShadow200
89dee71738 Haiku: Implement filetype filtering for open file dialog, finishes off the native haiku windowing backend 2022-10-07 09:04:09 +11:00
UnknownShadow200
57dcd9e0ff Launcher: Download classicube web texture pack as an alternate default texture pack
Note that this will only affect people who don't have default.zip - you won't get the 'missing resources' menu if you already have default.zip
2022-10-07 08:26:11 +11:00
UnknownShadow200
f05c275b25 Haiku: Implement partial open file dialog support, and make launcher drawing faster by avoiding unnecessary image blit
Also switch over makefile and instructions to use native haiku windowing backend by default
2022-10-06 23:56:54 +11:00
UnknownShadow200
aa1d9fca88 Classic: Fix if server only sends EntityTeleport instead of AddEntity for ID 255, the tablist would be empty
In original classic your username would still be in the tablist, so change tablist to also behave that way
2022-10-06 19:46:59 +11:00
UnknownShadow200
209d9e1cab Haiku: Fix game resizing and fullscreen not working, also switch to using Alt instead of Ctrl as action key
This makes ClassiCube behave like other applications on Haiku which e.g. do Alt+C/V instead of Ctrl+C/V for copy/paste
2022-10-06 18:45:00 +11:00
UnknownShadow200
c21af3c4d5 mac: Fix when compiled with recent SDK and when running on high DPI display, that the game would only render in 1/4 of the window. Fixes #888 2022-10-05 23:02:52 +11:00
UnknownShadow200
9b5a3cff70 Haiku: Fix crashing on game close, fix resizing launcher not working properly, fix app not closing, implement clipboard support 2022-10-04 23:04:31 +11:00
UnknownShadow200
be0491534a Haiku: Fix setting mouse position, mouse scrolling not working
Also fix window size being off by 1 pixel, and fix print screen not being detected as a key
2022-10-03 18:30:33 +11:00
UnknownShadow200
9f3abe05bc Fix sending RemoveEntity with id 255 in classic mode removing your own name from the tablist
This now matches behaviour in original classic, where it didn't get removed
2022-10-02 23:11:58 +11:00
UnknownShadow200
cc522d8109 Haiku: Fix key input not working, text input not working, game rendering without a depth buffer, and mouse movement in-game not working
Still plenty of problems though
2022-10-01 10:26:15 +10:00
UnknownShadow200
7ac38830d3 Add WIP haiku OS windowing backend 2022-09-30 23:16:29 +10:00
UnknownShadow200
3c9774fe4f Adjust picked position to account for camera vertical fall tilt when not running in classic mode (Thanks Goodly) 2022-09-29 08:52:55 +10:00
UnknownShadow200
20a40fea27 Webclient: Avoid pointlessly copying default.zip/files loaded from IndexedDB/etc into a new UInt8Array 2022-09-28 22:20:24 +10:00
UnknownShadow200
be022680a1 Fix android build whoops 2022-09-27 22:18:21 +10:00
UnknownShadow200
4a9551e661 Simplify ZIP reader api and make it a little bit faster in most cases 2022-09-27 22:08:05 +10:00
UnknownShadow200
e6a49460eb curl: force http1.1 to workaround around some temporary issues with http2 requests (most noticable with dropbox)
See https://github.com/curl/curl/issues/9526 for more details
2022-09-26 20:38:31 +10:00
UnknownShadow200
f8e4835abf Fix last commit constantly creating default.zip, also reorganise Resources.c to be tidier 2022-09-26 18:28:30 +10:00
UnknownShadow200
d938083ba9 Fix generated default.zip unable be modified using Windows explorer zip support
i.e. can't add/edit/delete files
2022-09-26 07:57:28 +10:00
UnknownShadow200
0950c4d422 curl: Add curl-verbose option for enabling verbose output from libcurl 2022-09-25 21:32:06 +10:00
UnknownShadow200
f6e76f0d20 Reorganise Resources.c to be slightly more understandable 2022-09-24 21:13:43 +10:00
UnknownShadow200
5a0505c0f9 Add 'load file' button to texture packs list menu, to allow loading a texture pack .zip from anywhere on disc
Note that unlike clicking on an entry in the texture packs list, this change is only temporary (lasts until you close the game) and isn't saved to options.txt
2022-09-24 15:20:03 +10:00
UnknownShadow200
6f3d40da20 Fix launcher always telling the windowing backend to redraw entire window, not just the actually (usually quite small) changed region 2022-09-23 16:46:16 +10:00
UnknownShadow200
239b800788 SDL: Fix launcher usually overwriting random memory and crashing when framebuffer depth isn't 32 bits per pixel 2022-09-23 13:02:00 +10:00
UnknownShadow200
46a7cc9e25 Make texture pack code better prepared to support texture packs outside of texpacks folder 2022-09-22 20:17:06 +10:00
UnknownShadow200
996bff6430 Webclient: Save uploaded texture packs to IndexedDB too 2022-09-22 17:33:17 +10:00
UnknownShadow200
3f6d9d4d20
Merge pull request #967 from UnknownShadow200/WebStartup1
Load IndexedDB and textures asynchronously in webclient
2022-09-22 10:29:26 +10:00