XiPU uROM Generator
main.cpp File Reference
#include <QCoreApplication>
#include <QTextStream>
#include "urom.h"
Include dependency graph for main.cpp:

Go to the source code of this file.

Functions

int main (int, char **)
 Main entry function of the application. More...
 

Variables

static QString const UROM0_PATH = "urom0.bin"
 Path to the first microcode output file. More...
 
static QString const UROM1_PATH = "urom1.bin"
 Path to the second microcode output file. More...
 

Function Documentation

◆ main()

int main ( int  ,
char **   
)

Main entry function of the application.

Definition at line 21 of file main.cpp.

22 {
23  QTextStream out(stdout);
24 
25  // Create and generate the microcode
26  URom uRom = URom();
27 
28  // Try to save the data to the output files
29  if(!uRom.saveFiles(UROM0_PATH, UROM1_PATH))
30  {
31  // If failed show the error message
32  out << "ERROR: Failed to save uROM data\n";
33 
34  // Return the error code
35  return(-1);
36  }
37 
38  // The data files were saved. Show the success message
39  out << "OK: uROM data has been saved successfully\n";
40 
41  // Return the success code
42  return(0);
43 }
This class contains an uROM data.
Definition: urom.h:21
bool saveFiles(const QString &urom0Path, const QString &urom1Path)
Definition: urom.cpp:889
static QString const UROM1_PATH
Path to the second microcode output file.
Definition: main.cpp:18
static QString const UROM0_PATH
Path to the first microcode output file.
Definition: main.cpp:17

References URom::saveFiles(), UROM0_PATH, and UROM1_PATH.

Here is the call graph for this function:

Variable Documentation

◆ UROM0_PATH

QString const UROM0_PATH = "urom0.bin"
static

Path to the first microcode output file.

Definition at line 17 of file main.cpp.

Referenced by main().

◆ UROM1_PATH

QString const UROM1_PATH = "urom1.bin"
static

Path to the second microcode output file.

Definition at line 18 of file main.cpp.

Referenced by main().