Difference between revisions of "Game Packaging/ScummVM Cloud"

Jump to navigation Jump to search
m
no edit summary
m
m
 
Line 16: Line 16:
Here is an example for an entry in the JSON response:
Here is an example for an entry in the JSON response:


<code>{</code>
<syntaxhighlight lang="json">
 
{
<code>description: "Lure of the Temptress (VGA/DOS/English)",</code>
"description": "Lure of the Temptress (VGA/DOS/English)",
 
"engineid": "lure",
<code>engineid: "lure",</code>
"extra": "VGA",
 
"gameid": "lure",
<code>extra: "VGA",</code>
"guioptions": "sndNoSpeech gameOption1 lang_English",
 
"id": "lure-1.1-vga",
<code>gameid: "lure",</code>
"language": "en",
 
"name": "Lure of the Temptress - Freeware Version (English)",
<code>guioptions: "sndNoSpeech gameOption1 lang_English",</code>
"platform": "pc",
 
"size": 5678861,
<code>id: "lure-1.1-vga",</code>
"url": "https://downloads.scummvm.org/frs/extras/Lure%20of%20the%20Temptress/lure-1.1.zip"
 
}
<code>language: "en",</code>
</syntaxhighlight>
 
<code>name: "Lure of the Temptress - Freeware Version (English)",</code>
 
<code>platform: "pc",</code>
 
<code>size: 5678861,</code>
 
<code>url: "<nowiki>https://downloads.scummvm.org/frs/extras/Lure%20of%20the%20Temptress/lure-1.1.zip</nowiki>"</code>
 
<code>}</code>


To add a new game entry in the JSON response, you need to check where the HTTP request needs to be sent. Look at <code>ScummVMCloud::getAllDLCs(...)</code> function for the HTTP link. You will need to have permission to edit the JSON entry there or ask someone with permission to add a new entry.
To add a new game entry in the JSON response, you need to check where the HTTP request needs to be sent. Look at <code>ScummVMCloud::getAllDLCs(...)</code> function for the HTTP link. You will need to have permission to edit the JSON entry there or ask someone with permission to add a new entry.


At the time of writing this, <code>getAllDLCs(...)</code> currently make request to a temporary firebase instance whose entries can be easily edited from the browser. This will be changed later.
At the time of writing this, <code>getAllDLCs(...)</code> currently make request to a temporary firebase instance whose entries can be easily edited from the browser. This will be changed later.
19

edits

Navigation menu