mirror of
https://github.com/lucannez64/darling-lol.git
synced 2026-10-26 19:47:42 +00:00
Preserve floating-point arguments in GL resolvers, retain presentation across differently sized windows, export AppKit click and URL fixes, and guard nullable LaunchServices errors. Include compiler/build and installer corrections for the new PC. Reuse server receive buffers with descriptor-safe exception cleanup and avoid disabled debug-string allocation. Translate Darwin free/reuse memory hints, add atomic server/library installers with separate user-owned memory backups, and preserve active processes until a manual namespace restart. Remove automatic inspectors, client helpers and forced unlimited UI frames from normal launches. Retain historical hooks with offline mocks and document their exclusion, unresolved installer handoff, activation requirements and unmeasured FPS/RAM benefits. Validation: all 29 pinned patches apply; all 461 exported source files match; host receive and memory checks, launcher and JavaScript mocks, syntax and documentation-link checks pass. No live client/game was controlled or restarted.
23 lines
1.2 KiB
Python
23 lines
1.2 KiB
Python
#!/usr/bin/env python3
|
|
"""Build the nullable LaunchServices error-output regression probe."""
|
|
from pathlib import Path
|
|
import shlex
|
|
import subprocess
|
|
|
|
project = Path(__file__).resolve().parent.parent
|
|
framework = project / 'build/darling-src/build/src/frameworks/CoreServices/src/LaunchServices'
|
|
flags = {}
|
|
for line in (framework / 'CMakeFiles/LaunchServices.dir/flags.make').read_text().splitlines():
|
|
if line.startswith('C_') and ' = ' in line:
|
|
name, value = line.split(' = ', 1)
|
|
flags[name] = shlex.split(value)
|
|
name = 'riot-launchservices-null-error-check'
|
|
obj = project / ('build/' + name + '.o')
|
|
subprocess.run(['clang', *flags['C_DEFINES'], *flags['C_INCLUDES'], *flags['C_FLAGS'],
|
|
'-O2', '-Wno-macro-redefined', '-c', str(project / ('tools/' + name + '.c')),
|
|
'-o', str(obj)], check=True)
|
|
subprocess.run(['clang', '-target', 'x86_64-apple-macosx11.0', '-fuse-ld=lld', '-nostdlib',
|
|
'-isysroot', '@DARLING_SDK@', str(obj), '-lSystem', '-framework', 'CoreServices',
|
|
'-framework', 'CoreFoundation', '-framework', 'Foundation',
|
|
'-o', str(project / ('build/' + name))], check=True)
|