Skip to content

Commit

Permalink
Game link changes (#126)
Browse files Browse the repository at this point in the history
* Game Link changes (what a boring commit name)

- The status of the game link for both v5 and pre-v5 is now notified at the bottom of the scene editor (request #125)
- Loaded scenes without game link will try to load property names w/ matching hash from a stored text file (request #122)
- v5 Game links will initialize the first valid library (if found) instead of whatever the first find was
- When creating a new scene, the file dialog will now look for files with the proper extension for the platform instead of a folder
- Fixed a few instances where variables for REV1 and REV2 were changed using REVU format

* Check script names as backup after editing SC

* Add 'Replace Object' to v5 Stage Config editor

- 'Replace Object' button added to v5 Stage Config, only enabled if a gamelink is loaded
- Object Selector search bar is no longer case sensitive
-'Add Object' in v5 Stage Config editor now prompts the Object Selector if a gamelink is loaded
- Is no longer possible to edit object names if a gamelink is loaded
- Fixed bug where resyncing the objects (via the buttons or by editing stage config) would add way more values than intended to any dropdown in an object
  • Loading branch information
Leonx254 authored Jul 19, 2024
1 parent cadb742 commit 043ea23
Show file tree
Hide file tree
Showing 20 changed files with 1,168 additions and 71 deletions.
11 changes: 11 additions & 0 deletions RetroEDv2/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,17 @@ int main(int argc, char *argv[])
writer.flush();
}

// copy RSDKv5 backup var list if it doesn't exist
if (!QFile(homeDir + "RSDKv5VarNames.txt").exists()) {
Reader reader(":/resources/RSDKv5VarNames.txt");
QByteArray bytes = reader.readByteArray(reader.filesize);
reader.close();

Writer writer(homeDir + "RSDKv5VarNames.txt");
writer.write(bytes);
writer.flush();
}

PrintLog("====================================================");
PrintLog("New RetroED instance: " + QDateTime::currentDateTime().toString());
PrintLog(QString("Version: ") + RE_VERSION);
Expand Down
1 change: 1 addition & 0 deletions RetroEDv2/resources.qrc
Original file line number Diff line number Diff line change
Expand Up @@ -60,5 +60,6 @@
<file>resources/splash.png</file>
<file>resources/splash.svg</file>
<file>icons/ic_stamp_selection_48px.svg</file>
<file>resources/RSDKv5VarNames.txt</file>
</qresource>
</RCC>
Loading

0 comments on commit 043ea23

Please sign in to comment.