-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Mf workaround #1149
base: master
Are you sure you want to change the base?
Add Mf workaround #1149
Conversation
Merged current master
Update the fork with changes from master fork.
Fork update
merge changes
Merging changes to the fork
Merging updates from master fork
Merging changes from master
Merge from master branch
Merge master fork
Updated the way virtual desktop plugin is used.
Merge master fork
Merge master fork
Output of eslint:
|
Trailing space removal.
Why does this PR contain Applications/Games/Heroes of Might & Magic IV/miniatures/main.png? |
I don't know. I've created separate branches for both Heroes 4 and this PR from master. |
Can you fix it? |
Done |
These escape characters are needed because reg entries must be in separate lines. |
OP was updated |
Tried referencing the .reg file inside
|
Replaced the long and broken (at least according to Codacy) line of registry entries with reference to an already existing file.
By issue you mean that the .reg file is not modified? |
@Zemogiter scripts/Engines/Wine/Plugins/regedit/script.js Lines 39 to 48 in 93403d4
|
By issue I mean the registry entries from mf.reg are not in registry editor. |
} | ||
|
||
const regeditFile = `${prefixDirectory}/mfWorkaround/mf-install-master/mf.reg`; | ||
new Regedit(this.wine).patch(regeditFile); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Try new Regedit(this.wine).open(regeditFile);
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tried that. It did not fix the issue.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
patch
is definitely wrong. See my argument above.
What "error" do you get when you use open
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thats the thing. No error in terminal window in either patch
or open
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One parameter should work (the type can be undefined
). I think it should be
new Regedit(this.wine).patch(cat(regeditFile));
Regedit#patch
writes the patchContent
to a file. So in your case, it tries to patch the registry with the string "${prefixDirectory}/mfWorkaround/mf-install-master/mf.reg" instead of the content of that file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In this case it cannot be a Phoenicis issue. Maybe something is wrong in the file?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@plata just tried it on plain Wine and the whole .reg file is in the registry editor.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Have you tried other scripts that make use of Regedit
? Do they work for you?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@madoar yes they do
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Strange. If Phoenicis uses the same command line as plain Wine, how can it be different...
Codacy Fix
Comment removal
Has the regedit problem be solved or is it still work in progress? |
@madoar still work in progress |
Included the second .reg file.
Description
A workaround for Media Foundation
https://github.com/z0z0z/mf-install
Needed for games that rely on it for ingame video and cutscenes. For example, benchmark videos in PC Building Simulator. After following instructions in the repo linked above, I can report they work just like on Windows now.
What works
Extracting the file, copying the dll files, setting dll overrides
What does not work
dll override adds "native" to the name of the overriden dll not where it supoused to befixed by Fix Wine plugin "Override DLL" #1152What was not tested
Everything after above mentioned
Test
Ready for review
json-align
andeslint
run according to the documentation.