JACoders / OpenJK

Community effort to maintain and improve Jedi Academy (SP & MP) + Jedi Outcast (SP only) released by Raven Software
GNU General Public License v2.0
2.03k stars 614 forks source link

Extract DLLs into temp folder instead of home folder #704

Closed xycaleth closed 9 years ago

xycaleth commented 9 years ago

When extracting DLLs from PK3s, it would be better to extract them to a temporary folder instead of the home folder.

Many JKA players are accustomed to installing new mods directly into the GameData folder, and if DLLs are extracted into the home path then newly updated DLLs in the GameData folder will never be loaded (files are searched in home path first, before base path). This has been the cause of a number of usability issues with OpenJK.

To avoid this issue altogether, DLLs should be extracted to a user-writeable temporary folder instead.

ensiform commented 9 years ago

Can we make the game clean the basepath and homepath on shutdown?

xycaleth commented 9 years ago

What would you do in the clean up?

ensiform commented 9 years ago

Delete the DLLs

xycaleth commented 9 years ago

What if the player intentionally put DLLs outside of PK3s? :p

ensiform commented 9 years ago

Only do that for home

xycaleth commented 9 years ago

What if the player intentionally put DLLs outside of PK3s in the home folder?

ensiform commented 9 years ago

They shouldn't be anymore if the new way is temporary folder.