feat(平台): 添加Switch平台支持并实现资源管理器
- 新增Switch平台初始化与清理功能 - 实现Asset资源管理器类,提供文件读写、路径处理等功能 - 完善Window类的销毁逻辑,释放SDL资源 - 更新Switch平台编译配置,移除冗余标志 - 在主程序中集成资源管理器功能
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user