Skip to content

Commit 59d7f32

Browse files
author
Simon Inns
committed
Added depreciated tool warnings to all tools
1 parent f637c73 commit 59d7f32

23 files changed

Lines changed: 47 additions & 0 deletions

File tree

BUILD.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
This project uses a Nix dev shell to provide a consistent build environment.
44

5+
> [!IMPORTANT]
6+
> ld-decode-tool is depreciated - please use the [decode-orc](https://github.com/simoninns/decode-orc) project instead.
7+
58
## Enter the dev shell
69

710
```bash

INSTALL.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
This project ships a Nix flake that provides both a build and a development environment. The simplest way to install is with Nix flakes.
44

5+
> [!IMPORTANT]
6+
> ld-decode-tool is depreciated - please use the [decode-orc](https://github.com/simoninns/decode-orc) project instead.
7+
58
## Prerequisites
69

710
- Nix with flakes enabled.

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
This is the complete suite of tools for processing LaserDisc captures and TBC (Time Base Corrected) files. The ld-decode project provides professional-grade tools for digitizing, processing, and analyzing analog video sources with exceptional quality and accuracy.
44

5+
> [!IMPORTANT]
6+
> ld-decode-tool is depreciated - please use the [decode-orc](https://github.com/simoninns/decode-orc) project instead.
7+
58
## Tool Categories
69

710
### Core Processing Tools

src/efm-decoder/tools/efm-decoder-audio/src/main.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ int main(int argc, char *argv[])
109109

110110
// Standard logging options
111111
processStandardDebugOptions(parser);
112+
emitDeprecatedToolWarning();
112113

113114
// Check for output data type options
114115
bool outputWavMetadata = parser.isSet("audacity-labels");

src/efm-decoder/tools/efm-decoder-d24/src/main.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ int main(int argc, char *argv[])
9191

9292
// Standard logging options
9393
processStandardDebugOptions(parser);
94+
emitDeprecatedToolWarning();
9495

9596
// Check for frame data options
9697
bool showF1 = parser.isSet("show-f1");

src/efm-decoder/tools/efm-decoder-data/src/main.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ int main(int argc, char *argv[])
100100

101101
// Standard logging options
102102
processStandardDebugOptions(parser);
103+
emitDeprecatedToolWarning();
103104

104105
// Check for output data type options
105106
bool outputDataMetadata = parser.isSet("output-metadata");

src/efm-decoder/tools/efm-decoder-f2/src/main.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ int main(int argc, char *argv[])
105105

106106
// Standard logging options
107107
processStandardDebugOptions(parser);
108+
emitDeprecatedToolWarning();
108109

109110
// Check for no timecode option
110111
bool noTimecodes = parser.isSet(noTimecodesOption);

src/efm-decoder/tools/efm-stacker-f2/src/main.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ int main(int argc, char *argv[])
7878

7979
// Standard logging options
8080
processStandardDebugOptions(parser);
81+
emitDeprecatedToolWarning();
8182

8283
// Get the filename arguments from the parser
8384
QVector<QString> inputFilenames;

src/efm-decoder/tools/vfs-verifier/src/main.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ int main(int argc, char *argv[])
7777

7878
// Standard logging options
7979
processStandardDebugOptions(parser);
80+
emitDeprecatedToolWarning();
8081

8182
// Get the filename arguments from the parser
8283
QString inputFilename;

src/ld-analyse/main.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
#include <QtGlobal>
1515
#include <QCommandLineParser>
1616
#include <QLoggingCategory>
17+
#include <QMessageBox>
18+
#include <QTimer>
1719

1820
#ifdef Q_OS_WIN
1921
#include <QSettings>
@@ -142,6 +144,7 @@ int main(int argc, char *argv[])
142144

143145
// Standard logging options
144146
processStandardDebugOptions(parser);
147+
emitDeprecatedToolWarning();
145148

146149
// Check for theme override
147150
bool forceDarkTheme = parser.isSet("force-dark-theme");
@@ -174,6 +177,12 @@ int main(int argc, char *argv[])
174177
// Start the GUI application
175178
MainWindow w(inputFileName);
176179
w.show();
180+
QTimer::singleShot(0, &w, [&w]() {
181+
QMessageBox::warning(&w,
182+
QStringLiteral("Deprecated Tool"),
183+
deprecatedToolWarningMessage(),
184+
QMessageBox::Ok);
185+
});
177186

178187
return a.exec();
179188
}

0 commit comments

Comments
 (0)