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

macOS Support #3

Closed
bamhm182 opened this issue May 12, 2019 · 6 comments
Closed

macOS Support #3

bamhm182 opened this issue May 12, 2019 · 6 comments
Assignees
Labels
awaiting test Just need someone to test it

Comments

@bamhm182
Copy link
Owner

It would be great if there was macOS support. To do this, I need to figure out where QCMA stores its configuration file on macOS. Still trying to figure out how to find it without access to a Mac.

@bamhm182 bamhm182 self-assigned this May 12, 2019
@hindo
Copy link

hindo commented May 18, 2019

Hey. For the MacOS version You can use something like this

def read_qcma_settings():
    filename = os.path.expanduser("~/Library/Preferences/com.codestation.qcma.plist")
    plist = plistlib.loads(open(filename, 'rb').read())
    path = plist['appsPath']
    account = plist['lastAccountId']
    username = plist['lastOnlineId']

Hope it helps. I've managed to run FinTrinity.py with this.

@bamhm182
Copy link
Owner Author

bamhm182 commented May 19, 2019

You are fantastic! Thank you so much!

On a side note, can you please tell me what this outputs on Mac?

import platform
print(platform.system())

I expect it to output "Darwin" from my google searches, but I don't have a way to confirm.

EDIT: I just pushed a commit to master with the changes. Would you mind testing it and seeing if it works properly on your machine?

@bamhm182 bamhm182 added the awaiting test Just need someone to test it label May 19, 2019
@hindo
Copy link

hindo commented May 19, 2019

Glad to help.

Regarding the output - here is what I get:

>>> import platform
>>> platform.system()
'Darwin'

and I'll test as soon as possible the newest changes.

EDIT:

Just tested (twice) the scripts with official Python 3.7.3 installation and it worked but had one issue with

psvimg-extract: Permission denied

This was an easy fix to do because the downloaded psvimg required, as on Linux platform, a chmod change. I've modified in decrypt_game and encrypt_game this one line

if platform.system() == "Linux" or platform.system() == "Darwin":

and it works!

@bamhm182
Copy link
Owner Author

I was considering putting that in last night, but I opted not to because I thought maybe it would work without it. Thanks for letting me know it doesn't! I added that in and I believe it is working now. If you have a moment, I would really appreciate it if you tested v0.4 on the release page and let me know if it works.

Also, I highly doubt it will work, but can I bother you to see what happens if you download the executable called "FinTrinity-v0.4-Linux" and try running it on your Mac? I imagine it will either not work at all (most likely) or work flawlessly.

@hindo
Copy link

hindo commented May 21, 2019

Unfortunately the FinTrinity-v0.4-Linux does not work with macOS out of the box. The scripts are working like a charm!

@bamhm182
Copy link
Owner Author

I expected as much. Thanks for all of your help! Glad to hear they're working. It wouldn't have happened without you.

Resolved. Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting test Just need someone to test it
Projects
None yet
Development

No branches or pull requests

2 participants