ScreenScaler获得平台分辨率的switch代码片段,未实现的平台抛出异常

This commit is contained in:
ALIENJACK\alien 2025-01-07 14:40:16 +08:00
parent b746b55e19
commit fc8302062b

View File

@ -106,7 +106,7 @@ namespace AxibugEmuOnline.Client
switch (platform) switch (platform)
{ {
case RomPlatformType.Nes: return new Vector2Int(256, 240); case RomPlatformType.Nes: return new Vector2Int(256, 240);
default: return new Vector2Int(256, 240); default: throw new System.NotImplementedException($"未实现的平台:{platform}");
} }
} }