예제 #1
0
 public ResourceManager()
 {
     lock (initLock) {
         if (isInitialized)
         {
             throw new InvalidOperationException("ResourceManager can be initialized only once");
         }
         SafeNativeMethods.mp__SetCustomGlobalPathResolver__P(pathResolver);
         SafeNativeMethods.mp__SetCustomGlobalResourceProvider__P(resourceProvider);
         isInitialized = true;
     }
 }
예제 #2
0
 public ResourceManager()
 {
     SafeNativeMethods.mp__SetCustomGlobalPathResolver__P(pathResolver);
     SafeNativeMethods.mp__SetCustomGlobalResourceProvider__P(resourceProvider);
 }