-
-
Notifications
You must be signed in to change notification settings - Fork 99
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
chore: add deprecation and authentication comments to dorequest #2120
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -137,18 +137,21 @@ function DoRequestError(string $error, ?int $status = 200, ?string $code = null) | |
/* | ||
* Global, no permissions required | ||
*/ | ||
|
||
// TODO deprecate? | ||
case "allprogress": | ||
$consoleID = (int) request()->input('c'); | ||
$response['Response'] = GetAllUserProgress($username, $consoleID); | ||
break; | ||
|
||
// TODO deprecate - next image ID should be provided by the server | ||
case "badgeiter": | ||
// Used by RALibretro achievement editor | ||
$response['FirstBadge'] = 80; | ||
$response['NextBadge'] = (int) FilenameIterator::getBadgeIterator(); | ||
break; | ||
|
||
// TODO: Deprecate - not used anymore | ||
// TODO deprecate - not used anymore | ||
case "codenotes": | ||
if (!getCodeNotes($gameID, $codeNotesOut)) { | ||
return DoRequestError("FAILED!"); | ||
|
@@ -162,25 +165,30 @@ function DoRequestError(string $error, ?int $status = 200, ?string $code = null) | |
} | ||
break; | ||
|
||
// TODO require authentication? | ||
case "codenotes2": | ||
$response['CodeNotes'] = getCodeNotesData($gameID); | ||
$response['GameID'] = $gameID; | ||
break; | ||
|
||
case "gameid": | ||
$md5 = request()->input('m') ?? ''; | ||
$response['GameID'] = getGameIDFromMD5($md5); | ||
break; | ||
|
||
// TODO require authentication? | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is exposed through rcheevos without authentication. Clients would have to upgrade, though I'm not sure if any clients besides the DLL use it. |
||
case "gameslist": | ||
$consoleID = (int) request()->input('c', 0); | ||
$response['Response'] = getGamesListDataNamesOnly($consoleID); | ||
break; | ||
|
||
// TODO require authentication? | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm not aware of any official uses for this. If it's being used by unofficial clients, we should provide a public API for this instead. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is indeed being used by third-party front-ends. |
||
case "officialgameslist": | ||
$consoleID = (int) request()->input('c', 0); | ||
$response['Response'] = getGamesListDataNamesOnly($consoleID, true); | ||
break; | ||
|
||
// TODO deprecate? | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. the functionality that used to rely on this was removed from the DLL in 0.76 (2019) |
||
case "hashlibrary": | ||
$consoleID = (int) request()->input('c', 0); | ||
$response['MD5List'] = getMD5List($consoleID); | ||
|
@@ -277,6 +285,7 @@ function DoRequestError(string $error, ?int $status = 200, ?string $code = null) | |
$response['AchievementID'] = $achIDToAward; | ||
break; | ||
|
||
// TODO deprecate | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The DLL still uses this to show friend activity in the clients. It's buried in the overlay. I don't think I've ever used it. We could probably deprecate it. |
||
case "getfriendlist": | ||
$response['Friends'] = GetFriendList($username); | ||
break; | ||
|
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.
This is used by the DLL to determine the maximum value allowed for manually specifying a badge.
We could remove the validation and just allow the user to enter any number, but I'm not sure how well the client would handle the 404 response.