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

Add Disclaimer to Readme and small tweaks #169

Merged
merged 3 commits into from
Dec 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Nintendo Switch Online Rich Presence

## ⚠️ Disclaimer
Nintendo has recently updated Nintendo Switch Online (NSO), breaking support for all third-party tools. Apps like s3s, nxapi, NSO-RPC and others are currently not working.

Updating authentication credentials **isn’t possible** at the moment, and these services may remain unusable.

**_Do not contact Nintendo about this issue._**

---

*Display your Nintendo Switch game status on Discord!*

This README will be split into two sections:
Expand Down
11 changes: 6 additions & 5 deletions client/api/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,11 +300,12 @@ def __init__(self, userInfo, userLang, accessToken, guid):

if 'error' in self.imink or self.imink.get('error') is not None:
iminkApiError = (
'Unable to authenticate with imink. \n\n'
'The F Calculation API may be experiencing issues or this build of NSO-RPC is outdated \n'
'Please try the most upto date build of NSO-RPC before submitting an issue. \n'
'Please check the website for more details: \n'
'https://status.imink.app/ \n'
'Authentication with imink failed. \n\n'
'Please follow these steps to resolve the issue:\n'
'1. First, check the "F Calculation API" status on the imink API status page: https://status.imink.app/ \n'
'2. If the F Calculation API is operational, ensure you are using the latest version of NSO-RPC.\n'
'3. If the issue persists, join the Discord or open a GitHub issue for further assistance.\n'
'Thank you for your patience!'
)
raise RuntimeError(iminkApiError) from None
else:
Expand Down
13 changes: 10 additions & 3 deletions client/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,11 @@
try:
import win32com.client
import winshell
import pywintypes
import pywintypes
except:
print('Trying to Install required modules: "pypiwin32" and "winshell"\n')
os.system(" ".join([sys.executable, "-m pip install pypiwin32 winshell"]))
print('Trying to Install required modules: "pypiwin32","pywintypes","winshell"\n')
os.system(" ".join([sys.executable, "-m pip install pypiwin32 winshell pywintypes"]))
from win32com.client import Dispatch
from winshell import Shortcut

Expand Down Expand Up @@ -481,7 +483,12 @@ def changeState(self):
raise e

# Set user image
client.api.user.image = loadPix(client.api.user.imageUri)
if client.api.user and client.api.user.imageUri:
client.api.user.image = loadPix(client.api.user.imageUri)
else:
client.api.user = User()
client.api.user.image = QPixmap(getPath('default.png'))

radius = 150

rounded = QPixmap(client.api.user.image.size())
Expand Down