.Net Micro Framework Emulator:更改 SystemInfo.SystemID.Model 返回的值
我正在尝试为 FEZ 制作一个模拟器,如果 返回的值,它们的实现会引发异常SystemInfo.SystemID.Model
不是预期的(在我的例子中为 1)
有没有办法修改 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 ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
并不真地。模型用调用本机代码(即 CLR 本身)的
MethodImplOptions.InternalCall
进行标记。对于 .NET Micro 设备,这可能是由 GHI 为 Fez 设备控制的低级固件。您最好的选择是联系 GHI 并提出将挂钩点添加到其自定义组件中的请求,以防止在模拟器内运行时出现异常。
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.