diff --git a/CMake/Modules/FindNF_CoreCLR.cmake b/CMake/Modules/FindNF_CoreCLR.cmake index 84130fd303..961db1c9f0 100644 --- a/CMake/Modules/FindNF_CoreCLR.cmake +++ b/CMake/Modules/FindNF_CoreCLR.cmake @@ -139,6 +139,7 @@ set(NF_CoreCLR_SRCS nf_rt_native_nanoFramework_Runtime_Native_Debug.cpp nf_rt_native_nanoFramework_Runtime_Native_ExecutionConstraint.cpp nf_rt_native_nanoFramework_Runtime_Native_Power.cpp + nf_rt_native_nanoFramework_Runtime_Native_ResourceUtility.cpp nf_rt_native_nanoFramework_Runtime_Native_Rtc_stubs.cpp # Core stubs diff --git a/src/CLR/Runtime.Native/nf_rt_native.cpp b/src/CLR/Runtime.Native/nf_rt_native.cpp index 2b769e9570..e0ac5369fb 100644 --- a/src/CLR/Runtime.Native/nf_rt_native.cpp +++ b/src/CLR/Runtime.Native/nf_rt_native.cpp @@ -35,13 +35,18 @@ static const CLR_RT_MethodHandler method_lookup[] = NULL, NULL, NULL, + Library_nf_rt_native_nanoFramework_Runtime_Native_ResourceUtility::GetObject___STATIC__OBJECT__mscorlibSystemResourcesResourceManager__mscorlibSystemEnum, + Library_nf_rt_native_nanoFramework_Runtime_Native_ResourceUtility::GetObject___STATIC__OBJECT__mscorlibSystemResourcesResourceManager__mscorlibSystemEnum__I4__I4, + NULL, + NULL, + NULL, Library_nf_rt_native_nanoFramework_Runtime_Native_Rtc::Native_RTC_SetSystemTime___STATIC__BOOLEAN__I4__U1__U1__U1__U1__U1__U1, }; const CLR_RT_NativeAssemblyData g_CLR_AssemblyNative_nanoFramework_Runtime_Native = { "nanoFramework.Runtime.Native", - 0xA3593BC9, + 0x1AD361FD, method_lookup, { 1, 0, 0, 0 } }; diff --git a/src/CLR/Runtime.Native/nf_rt_native.h b/src/CLR/Runtime.Native/nf_rt_native.h index 9ed300614e..47e313437b 100644 --- a/src/CLR/Runtime.Native/nf_rt_native.h +++ b/src/CLR/Runtime.Native/nf_rt_native.h @@ -64,6 +64,17 @@ struct Library_nf_rt_native_nanoFramework_Runtime_Native_Power }; +struct Library_nf_rt_native_nanoFramework_Runtime_Native_ResourceUtility +{ + static const int FIELD_STATIC__s_wr = 1; + + NANOCLR_NATIVE_DECLARE(GetObject___STATIC__OBJECT__mscorlibSystemResourcesResourceManager__mscorlibSystemEnum); + NANOCLR_NATIVE_DECLARE(GetObject___STATIC__OBJECT__mscorlibSystemResourcesResourceManager__mscorlibSystemEnum__I4__I4); + + //--// + +}; + struct Library_nf_rt_native_nanoFramework_Runtime_Native_Rtc { NANOCLR_NATIVE_DECLARE(Native_RTC_SetSystemTime___STATIC__BOOLEAN__I4__U1__U1__U1__U1__U1__U1);