Ejemplo n.º 1
0
        public void OnEnabled()
        {
            try
            {
                Log.Info("Attempting to patch Cities: Skylines using Harmony...");
                _harmony = new Harmony("com.citiesskylinesmultiplayer");
                _harmony.PatchAll(Assembly.GetExecutingAssembly());
                Log.Info("Successfully patched Cities: Skylines!");
            }
            catch (Exception ex)
            {
                Log.Error("Patching failed", ex);
            }

            MainMenuHandler.CreateOrUpdateJoinGameButton();

            Log.Info("Construction Complete!");
        }
Ejemplo n.º 2
0
        public void OnEnabled()
        {
            try
            {
                _logger.Info("Attempting to patch Cities: Skylines using Harmony...");
                _harmony = new Harmony("net.gridentertainment.csm");
                _harmony.PatchAll(Assembly.GetExecutingAssembly());
                _logger.Info("Successfully patched Cities: Skylines!");
            }
            catch (Exception ex)
            {
                _logger.Error(ex, "Patching failed");
            }

            MainMenuHandler.CreateOrUpdateJoinGameButton();

            _logger.Info("Construction Complete!");
        }