feat(平台): 添加Switch平台支持并实现资源管理器

- 新增Switch平台初始化与清理功能
- 实现Asset资源管理器类,提供文件读写、路径处理等功能
- 完善Window类的销毁逻辑,释放SDL资源
- 更新Switch平台编译配置,移除冗余标志
- 在主程序中集成资源管理器功能
This commit is contained in:
2026-02-21 03:34:48 +08:00
parent ce2cc4d210
commit 9f29192ae8
9 changed files with 905 additions and 8 deletions

View File

@@ -17,7 +17,7 @@ target("Frostbite2D")
set_toolset("strip", path.join(devkitA64, "bin/aarch64-none-elf-strip.exe"))
-- 架构标志
local arch_flags = "-march=armv8-a+crc+crypto -mtune=cortex-a57 -mtp=soft -fPIE"
local arch_flags = "-march=armv8-a+crc+crypto -mtune=cortex-a57 -fPIE"
add_cxflags(arch_flags)
-- 使用 devkitPro 提供的 switch.specs 文件
add_ldflags("-specs=" .. path.join(devkitPro, "libnx/switch.specs"), "-g", arch_flags)