Skip to content

Commit 4721172

Browse files
authored
Patch v1.7.2 (#19)
* Small adjustment to ROMs collection * Updating GA script
1 parent f2ec38d commit 4721172

File tree

4 files changed

+25
-42
lines changed

4 files changed

+25
-42
lines changed

.github/workflows/build.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ jobs:
5858
- name: Build
5959
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
6060
- name: Upload executable
61-
uses: actions/upload-artifact@v3
61+
uses: actions/upload-artifact@v4
6262
with:
6363
name: ${{env.EXEC}}
6464
path: ${{github.workspace}}/build/Release/${{env.EXEC}}
@@ -75,7 +75,7 @@ jobs:
7575
- name: run packaging script
7676
run: python3 gui/packaging/package.py
7777
- name: Upload packaging scripts
78-
uses: actions/upload-artifact@v3
78+
uses: actions/upload-artifact@v4
7979
with:
8080
name: package-metadata
8181
path: |
@@ -100,12 +100,12 @@ jobs:
100100
tools: 'tools_ifw tools_opensslv3_x64'
101101
cache: true
102102
- name: Download artifact
103-
uses: actions/download-artifact@v3
103+
uses: actions/download-artifact@v4
104104
with:
105105
name: ${{env.EXEC}}
106106
path: gui/packaging/packages/com.vendor.product/data/
107107
- name: Download installer metadata
108-
uses: actions/download-artifact@v3
108+
uses: actions/download-artifact@v4
109109
with:
110110
name: package-metadata
111111
path: ${{github.workspace}}/gui/packaging
@@ -119,7 +119,7 @@ jobs:
119119
${{github.workspace}}\..\Qt\Tools\QtInstallerFramework\4.7\bin\binarycreator.exe -c config\config.xml -p packages ${{env.PROGNAME}}-installer-win64.exe
120120
working-directory: gui/packaging
121121
- name: Upload installer
122-
uses: actions/upload-artifact@v3
122+
uses: actions/upload-artifact@v4
123123
with:
124124
name: ${{env.PROGNAME}}-installer-win64.exe
125125
path: gui/packaging/${{env.PROGNAME}}-installer-win64.exe
@@ -132,7 +132,7 @@ jobs:
132132
if: startsWith(github.ref, 'refs/tags/v')
133133
steps:
134134
- name: Download artifact
135-
uses: actions/download-artifact@v3
135+
uses: actions/download-artifact@v4
136136
with:
137137
name: ${{env.PROGNAME}}-installer-win64.exe
138138
path: ./
@@ -177,7 +177,7 @@ jobs:
177177
cmake ../firmware
178178
make -j
179179
- name: Upload firmware .uf2 file
180-
uses: actions/upload-artifact@v3
180+
uses: actions/upload-artifact@v4
181181
with:
182182
name: ${{env.FIRMWARE}}.uf2
183183
path: ./build/${{env.FIRMWARE}}.uf2
@@ -189,7 +189,7 @@ jobs:
189189
if: startsWith(github.ref, 'refs/tags/v')
190190
steps:
191191
- name: Download artifact
192-
uses: actions/download-artifact@v3
192+
uses: actions/download-artifact@v4
193193
with:
194194
name: ${{env.FIRMWARE}}.uf2
195195
path: ./
@@ -222,7 +222,7 @@ jobs:
222222
make -j
223223
cp -v ${{env.FIRMWARE}}.uf2 ${{env.FIRMWARE2}}.uf2
224224
- name: Upload firmware .uf2 file
225-
uses: actions/upload-artifact@v3
225+
uses: actions/upload-artifact@v4
226226
with:
227227
name: ${{env.FIRMWARE2}}.uf2
228228
path: ./build/${{env.FIRMWARE2}}.uf2
@@ -234,7 +234,7 @@ jobs:
234234
if: startsWith(github.ref, 'refs/tags/v')
235235
steps:
236236
- name: Download artifact
237-
uses: actions/download-artifact@v3
237+
uses: actions/download-artifact@v4
238238
with:
239239
name: ${{env.FIRMWARE2}}.uf2
240240
path: ./

gui/src/config.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
#define _CONFIG_H
2323

2424
#define PROGRAM_NAME "PICO SST39sf0x0 Programmer"
25-
#define PROGRAM_VERSION "1.7.1"
25+
#define PROGRAM_VERSION "1.7.2"
2626
#define UNUSED(x) (void)(x)
2727

2828
#endif // _CONFIG_H

gui/src/mainwindow.cpp

Lines changed: 13 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -214,10 +214,10 @@ void MainWindow::build_rom_selection_menu(QVBoxLayout* target_layout) {
214214
* MULTICARTRIDGE IMAGES
215215
*/
216216
// create toplevel interface
217-
this->multirom_container = new QGroupBox("Multicard images");
218-
this->multirom_container->setSizePolicy(QSizePolicy::Minimum, QSizePolicy::Minimum);
217+
this->rom_container = new QGroupBox("ROM images");
218+
this->rom_container->setSizePolicy(QSizePolicy::Minimum, QSizePolicy::Minimum);
219219
QVBoxLayout *layout = new QVBoxLayout();
220-
this->multirom_container->setLayout(layout);
220+
this->rom_container->setLayout(layout);
221221

222222
// add individual buttons here
223223
QPushButton* btn1 = new QPushButton("P2000T Multicart ROM");
@@ -230,31 +230,17 @@ void MainWindow::build_rom_selection_menu(QVBoxLayout* target_layout) {
230230
layout->addWidget(btn2);
231231
connect(btn2, SIGNAL(released()), this, SLOT(load_default_image()));
232232

233-
target_layout->addWidget(this->multirom_container);
234-
235-
/**
236-
* SINGLE ROM IMAGES
237-
*/
238-
239-
// create toplevel interface
240-
this->singlerom_container = new QGroupBox("Single cartridge images");
241-
this->singlerom_container->setSizePolicy(QSizePolicy::Minimum, QSizePolicy::Minimum);
242-
layout = new QVBoxLayout();
243-
this->singlerom_container->setLayout(layout);
244-
245233
// add individual buttons here
246-
btn1 = new QPushButton("P2000T BASICNL v1.1");
247-
btn1->setProperty("image_name", QVariant(QString("https://github.com/p2000t/software/raw/refs/heads/main/cartridges/BASICNL1.1.bin")));
248-
layout->addWidget(btn1);
249-
connect(btn1, SIGNAL(released()), this, SLOT(load_default_image()));
250-
251-
// add individual buttons here
252-
btn2 = new QPushButton("Select other ROM");
253-
layout->addWidget(btn2);
234+
QPushButton* btn3 = new QPushButton("Select other ROM");
235+
layout->addWidget(btn3);
254236

255237
// list of ROM images
256238
QList<QPair<QString, QString>> rom_images = {
257-
{"P2000T Games Bundle", "https://github.com/ifilot/p2000t-rompacks/releases/download/nightly/GAMES-128KiB.BIN"},
239+
{"P2000T BASICNL v1.1", "https://github.com/p2000t/software/raw/refs/heads/main/cartridges/BASICNL1.1.bin"},
240+
{"P2000T Games Bundle (8-pack; 128 KiB; Space Fight)", "https://github.com/ifilot/p2000t-rompacks/releases/download/nightly/GAMES-128KiB.BIN"},
241+
{"P2000T Games Bundle (8-pack; 128 KiB; Fraxxon)", "https://github.com/ifilot/p2000t-rompacks/releases/download/nightly/GAMES-128KiB-ALT.BIN"},
242+
{"P2000T Games Bundle (16-pack; 256 KiB)", "https://github.com/ifilot/p2000t-rompacks/releases/download/nightly/GAMES-256KiB.BIN"},
243+
{"P2000T Joystick ROM", "https://github.com/ifilot/p2000t-joystick-cartridge/releases/download/nightly/joystick_eeprom.bin"},
258244
{"Assembler v5.9", "https://github.com/p2000t/software/raw/refs/heads/main/cartridges/assembler%205.9.bin"},
259245
{"BASICNL with Bootstrap for SD-CARD cartridge", "https://github.com/ifilot/p2000t-sdcard/releases/latest/download/BASICBOOTSTRAP.BIN"},
260246
{"Familiegeheugen v4", "https://github.com/p2000t/software/raw/refs/heads/main/cartridges/familiegeheugen%204.bin"},
@@ -274,9 +260,9 @@ void MainWindow::build_rom_selection_menu(QVBoxLayout* target_layout) {
274260
connect(action, &QAction::triggered, this, &MainWindow::load_default_image);
275261
rommenu->addAction(action);
276262
}
277-
btn2->setMenu(rommenu);
263+
btn3->setMenu(rommenu);
278264

279-
target_layout->addWidget(this->singlerom_container);
265+
target_layout->addWidget(this->rom_container);
280266
}
281267

282268
/**
@@ -729,9 +715,7 @@ void MainWindow::slot_update_settings() {
729715
//qDebug() << "Settings update triggered";
730716

731717
bool show_retroroms = this->settings.value("SHOW_RETROROMS", QVariant(true)).toBool();
732-
this->multirom_container->setVisible(show_retroroms);
733-
this->singlerom_container->setVisible(show_retroroms);
734-
dynamic_cast<QWidget*>(this->singlerom_container->parent())->layout()->invalidate();
718+
this->rom_container->setVisible(show_retroroms);
735719
this->hex_widget->viewport()->repaint();
736720
}
737721

gui/src/mainwindow.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,7 @@ class MainWindow : public QMainWindow
111111
QLabel* label_compile_data;
112112
QSettings settings;
113113

114-
QGroupBox *multirom_container;
115-
QGroupBox *singlerom_container;
114+
QGroupBox *rom_container;
116115

117116
public:
118117
/**

0 commit comments

Comments
 (0)