Skip to content
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

Better wrapper system, warning fixes, small bugfixes, module loading implementation #6

Merged
merged 4 commits into from
Nov 5, 2012

Conversation

artart78
Copy link
Contributor

@artart78 artart78 commented Nov 4, 2012

I changed the wrapper system in order to only use &Wrap<>. I hope it works on all the compilers.
I also fixed some warnings, some small bugs (-> sceCtrlReadBuffer wrongly checking if sceCtrlInit() has been called, a segmentation fault on an invalid thread id etc.).
I also added support for module loading (.prx loading in the ISO), but that's untested because none of my games used that properly (either modules are encrypted, it uses sceModuleLoadModuleByID(), or modules are already implemented by the HLE..).

Note that it wasn't tested because all the games I tested had other problems (already implemented modules, encrypted modules, using different functions etc).
But code looks good so it'd probably need few (no?) fixes.
@hrydgard
Copy link
Owner

hrydgard commented Nov 4, 2012

Excellent! I'm going to check that the new wrap system builds on VS2012 before I'll merge. Feel free to keep working in the meantime ;)

@@ -31,12 +31,9 @@ bool DisassembleMov(const unsigned char *codePtr, InstructionInfo &info, int acc
info.hasImmediate = false;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hm, why the changes in this file?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unused variables give me warnings, so I just removed them. Feel free to keep them if you think you'll need them later. ;)

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd rather you commented them out, at least the ones that look like they could be semi-useful in the future :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right. I kept the variables that I knew they would be needed in the future,
but since I thought the JIT was completed, I didn't think they'd be needed.
Please re-add them then. :)

Le 4 nov. 2012 23:34, "Henrik Rydgård" [email protected] a écrit :

In Common/x64Analyzer.cpp:

@@ -31,12 +31,9 @@ bool DisassembleMov(const unsigned char *codePtr, I...

I'd rather you commented them out, at least the ones that look like they
could be semi-useful in the future :)


Reply to this email directly or view it on GitHub.

[image]

@hrydgard hrydgard merged commit 9be8be6 into hrydgard:master Nov 5, 2012
@hrydgard
Copy link
Owner

hrydgard commented Nov 5, 2012

I merged this except for the wrap system commit.

I also added blacklisting so that we don't try to load modules that we have HLE implementations of. Note that this currently doesn't work for encrypted modules as we need to decrypt them to get the module name (I think?). So games that retry loading modules, like Puyo Pop, are broken until we have decryption.

@livisor livisor mentioned this pull request Mar 9, 2013
@hrydgard hrydgard mentioned this pull request Jul 19, 2013
hrydgard pushed a commit that referenced this pull request Aug 16, 2016
Psmf: Ignore last timestamp with old PsmfPlayer libs
@lzhiyong lzhiyong mentioned this pull request Oct 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants