Git Product home page Git Product logo

Comments (5)

Ottermandias avatar Ottermandias commented on July 29, 2024

Works fine for me. Are you doing this off mainthread?

from penumbra.

Ottermandias avatar Ottermandias commented on July 29, 2024

image

from penumbra.

Ottermandias avatar Ottermandias commented on July 29, 2024

image

from penumbra.

Sevii77 avatar Sevii77 commented on July 29, 2024

My actual use case is on a separate thread and the test was done in a plugin ctor (which I assume is either a thread or async task), the issue persists even when called from a draw event as in your code. I've uploaded the plugin I used to test this: https://github.com/Sevii77/penumbra_issue

On a side note, my current workaround is to delete and add the mod back, which works even on a separate thread.

var root = $"{Interface.GetIpcSubscriber<string>("Penumbra.GetModDirectory").InvokeFunc()}/{id}";
Directory.Move(root, $"{root}_TEMP");
Interface.GetIpcSubscriber<string, string, byte>("Penumbra.DeleteMod").InvokeFunc(id, "");
Directory.Move($"{root}_TEMP", root);
return Interface.GetIpcSubscriber<string, byte>("Penumbra.AddMod").InvokeFunc(id);

from penumbra.

Ottermandias avatar Ottermandias commented on July 29, 2024

Reloading an existing mod doesn't seem to generate default settings or fix invalid settings (not just via IPC). Probably fixed it for next release.

from penumbra.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.