Commit Graph
21 Commits
Author SHA1 Message Date
Duy Tran Khanh cf44af927c Perf: speed up assets verification
- Log is cleaner, now prints "SHA1 passed for N/total asset files"
instead of individual files
- Removed redundant calls to the callback
2023-03-27 19:13:26 +07:00
Duy Tran Khanh 83b43238c9 Fix(JNA): snprintf() output has been truncated
Update JNA to 5.13.0:
https://github.com/java-native-access/jna/blob/767662a/lib/native/darwi
n-aarch64.jar
$ vtool -arch arm64 -set-build-version 2 12.0 16.0 -replace -output
libjnidispatch.dylib libjnidispatch.dylib
$ install_name_tool -change
/System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
/System/Library/Frameworks/Foundation.framework/Foundation
libjnidispatch.dylib
2023-03-19 16:04:15 +07:00
Duy Tran Khanh be528eb08a Fix #511: fixes for Spiral Knights 2023-02-23 18:17:26 +07:00
Duy Tran Khanh cdd4d3908b Fix(MCDL): multiple debug prints of call stack
Fix(local,Makefile) : @ldid: command not found, why?
2023-01-26 12:52:03 +07:00
Duy Tran Khanh ab597ba745 Fix: unset jna-5.8 SHA1 leading to verify failure
Fix: proper split display mode when autohide enabled
2023-01-05 22:07:50 +07:00
Duy Tran Khanh 7c6c986b68 Fix: missing JNA version override 2023-01-05 11:59:47 +07:00
khanhduytran0 78b788262c Move LoginViewController to parts
- The account selector now has Add Account item
- Last selected account is kept
- Account token refreshment is done on startup and on select if need
- Moved JIT status to LauncherMenuViewController's toolbar
- Primary View Controller is now LauncherSplitViewController
- More unmentioned(?), see diff.
2022-12-04 11:41:54 +07:00
Duy Tran Khanh 0868c48195 Fix launching of modded versions
A wrong parameter was passed to parseJSONAsFile for loading inheritsFrom version
2022-11-22 19:14:37 +07:00
Duy Tran Khanh cac0bbbf87 Fix: handle inheritsFrom when offline without cache
wip included: localization
2022-11-20 08:11:29 +07:00
Duy Tran Khanh 5c8d2f9cdc Bug fix: SHA1 mismatch because old file was not removed
This occurred after 1.19.x had got assets update for the upcoming
1.19.3 release.
2022-10-20 11:18:14 +07:00
Duy Tran Khanh 8789a7e9a7 MCDownloader: fallback for json with missing client info
Download failures now include call stack.
2022-10-15 19:00:55 +07:00
Duy Tran Khanh c616cb152f Moved toolbar code, added WIP News tab 2022-09-25 11:13:59 +07:00
Duy Tran Khanh b806c5df3c Many changes and fixes
Changes:
- Decreased multithreaded download max threads to 10
- Moved launcher buttons to match Android UI
- Moved UIKit hooking code to separate file
- The Launcher tab is now marked as under construction.
- Updated README.md to avoid confusion between self-JIT and auto-JIT.

New settings section: UI debugging
- Unlock iPadOS UI: allow iPhone users to unlock every iPadOS-only
features (floating keyboard, popover alert, sheet-styled view
controllers, etc.)
- Show layout bounds, like the one in Android's developer setting
- Show layout overlapping

Fixes:
- App container data is not shown in the Files app due to
`no-container` entitlement, replaced it with `no-sandbox`.
- Ignore jinput-platform libraries to avoid download error
- Multithreaded assets download breaks
- `Send your logs` crashes on iPadOS
2022-09-22 09:52:56 +07:00
Duy Tran Khanh 57031041e2 MinecraftResourceUtils.m: fix unexpected states
Fix: could not find inhertisFrom, launch even when download fails.

Other changes: log shown dialog, fix compile warning
2022-08-12 19:27:01 +07:00
Duy Tran Khanh ae1c86b113 Various fixes
- GLFW display mode array, fix 0x0 resolution bug
- OSMesa library (copied back 64f4042)
- Hacks for getting Spiral Knights to launch
- Error is now logged properly
2022-08-12 11:53:02 +07:00
Duy Tran Khanh 1c033a6e50 findNearestVersion: avoid negative index 2022-08-08 10:08:11 +07:00
Duy Tran Khanh 3db2926743 Moved type selections to segments in picker view
The version picker view now only display the selected type in one of
(Installed, Releases, Snapshot, Old-beta, Old-alpha). Toggling between
Releases and Snapshots allows jumping to the corresponding release or
the latest snapshot of the version.
2022-08-08 09:37:32 +07:00
Duy Tran Khanh 292fb8166f Custom controls: safe area is now customizable
Other changes:
- Cleanup unused functions
- Internal changes to access ViewController globally
- Moved ControlLayout to a separate file
2022-08-03 12:23:27 +07:00
khanhduytran0 5d8a136470 SurfaceViewController is now always the root vc
Before launching game, SurfaceViewController is set to UIWindow.rootViewController, making it similar to "Restart before launching" in order to *attempt* to find out why touchscreen input does not work on certain devices. The restart option is still kept for debugging purpose.

Some other tiny code tweaks
2022-07-16 13:27:25 +07:00
Duy Tran Khanh 6ba1c6773b Added back a forgotten continue 2022-07-01 08:19:46 +07:00
Duy Tran Khanh ee2c68fb98 Fixes
Makefile: fix path
Moved GameSurfaceView to a separate class
Renamed MinecraftDownloader to MinecraftResourceUtils

Fix: Some versions fails because GLFW_CLIENT_API is not set
2022-07-01 07:02:25 +07:00