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

Game link changes #126

Merged
merged 4 commits into from
Jul 19, 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
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