开发者

.Net Micro Framework Emulator : change value returned by SystemInfo.SystemID.Model

I'm trying to make an emulator for FEZ and their implementation throws an exception if the value returned by SystemInfo.SystemID.Model is not what'开发者_开发百科s expected (1 in my case)

Is there a way to modify the value returned by SystemInfo.SystemID.Model for the applications running inside my emulator ?


Not really. Model is marked with MethodImplOptions.InternalCall which calls into native code (i.e the CLR itself). For a .NET Micro device this will probably be the low level firmware controlled by GHI for the Fez device.

Your best option would be to contact GHI and raise a request for a hook point to be added to their custom components to prevent the exception if running inside the emulator.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜