Skip to content
This repository has been archived by the owner on Oct 19, 2024. It is now read-only.

platform/vfs.c: add nthome for new amdaemon ver - [opened] #76

Open
3 of 5 tasks
icex2 opened this issue Dec 17, 2021 · 7 comments
Open
3 of 5 tasks

platform/vfs.c: add nthome for new amdaemon ver - [opened] #76

icex2 opened this issue Dec 17, 2021 · 7 comments

Comments

@icex2
Copy link

icex2 commented Dec 17, 2021

In GitLab by @BemaniWitch on Dec 17, 2021, 06:58

Merges vfs_fix -> master

Bugfix

Summary

This MR adds a hook for C:\Users\AppUser to the nthome hook, next to the old C:\Documents And Settings\AppUser hook.

Description

This change is necessary as games newer than IDZ 1.3 and Chunithm have changed said path. Games like IDZ 2.3 will tend to spam a "CANNOT GET ACCOUNTING INFO" error due to the hook not working correctly. This MR fixes said issue and removes the need to run these games as admin.

How Has This Been Tested?

Booted the games up with both the old master version, and the new fixed version, as a standard user instead of admin.

Checklist

  • Tested with the following games:
    • Initial D Arcade Stage Zero V1.3
    • Initial D Arcade Stage Zero V2.3
  • Followed the developer (style) guidelines.
  • Updated existing doc of or add new doc to README file(s)
  • Updated development documentation
@icex2
Copy link
Author

icex2 commented Dec 21, 2021

In GitLab by @felix on Dec 21, 2021, 11:45

The additional global variable for USERPROFILE is not needed. The existing vfs_nthome_real can be used for both the old-style and new-style user profile path replacement.

@icex2
Copy link
Author

icex2 commented Dec 21, 2021

In GitLab by @BemaniWitch on Dec 21, 2021, 13:40

added 1 commit

  • 10cdf3de - platform/vfs.c: remove repetitive code

Compare with previous version

@icex2
Copy link
Author

icex2 commented Dec 21, 2021

In GitLab by @BemaniWitch on Dec 21, 2021, 13:40

Good point, fixed.

@icex2
Copy link
Author

icex2 commented Dec 21, 2021

In GitLab by @BemaniWitch on Dec 21, 2021, 13:40

resolved all threads

@icex2
Copy link
Author

icex2 commented Jun 18, 2022

In GitLab by @BemaniWitch on Jun 18, 2022, 23:27

added 5 commits

  • 10cdf3de...e374c0ab - 3 commits from branch djhackers:master
  • 727b70c - platform/vfs.c: add nthome for new amdaemon ver
  • 09bd2ba - platform/vfs.c: remove repetitive code

Compare with previous version

@icex2
Copy link
Author

icex2 commented Jul 5, 2022

In GitLab by @tau on Jul 5, 2022, 23:32

I wasn't attentive enough when the Option path hook was added, I don't like how we have three mostly-identical path hook functions here. Can you factor out the common code into a helper function and then call that from each hook instead? Or perhaps even better make a single hook that is table-driven.

@icex2
Copy link
Author

icex2 commented Jul 5, 2022

In GitLab by @BemaniWitch on Jul 5, 2022, 23:36

Good call I think. I‘ll see what I can do.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant