[nostalgia] Add trace init
This commit is contained in:
parent
662c2e11de
commit
f24a0a4aab
@ -1,4 +1,11 @@
|
|||||||
{
|
{
|
||||||
|
"init_functions": [
|
||||||
|
{
|
||||||
|
"bin_path": "/home/gary/projects/nostalgia/dist/linux-x86_64-debug/lib/ox/libOxTraceHook.so",
|
||||||
|
"function": "oxTraceInitHook",
|
||||||
|
"ignore_frames": 3
|
||||||
|
}
|
||||||
|
],
|
||||||
"log_functions": [
|
"log_functions": [
|
||||||
{
|
{
|
||||||
"bin_path": "/home/gary/projects/nostalgia/dist/linux-x86_64-debug/lib/ox/libOxTraceHook.so",
|
"bin_path": "/home/gary/projects/nostalgia/dist/linux-x86_64-debug/lib/ox/libOxTraceHook.so",
|
||||||
|
@ -7,6 +7,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <ox/fs/fs.hpp>
|
#include <ox/fs/fs.hpp>
|
||||||
|
#include <ox/std/trace.hpp>
|
||||||
#include <nostalgia/core/core.hpp>
|
#include <nostalgia/core/core.hpp>
|
||||||
#include <nostalgia/core/input.hpp>
|
#include <nostalgia/core/input.hpp>
|
||||||
|
|
||||||
@ -54,6 +55,7 @@ static ox::Error run(ox::FileSystem *fs) {
|
|||||||
|
|
||||||
int main(int argc, const char **argv) {
|
int main(int argc, const char **argv) {
|
||||||
if (argc > 1) {
|
if (argc > 1) {
|
||||||
|
ox::trace::init();
|
||||||
auto path = argv[1];
|
auto path = argv[1];
|
||||||
auto fs = core::loadRomFs(path);
|
auto fs = core::loadRomFs(path);
|
||||||
auto err = run(fs);
|
auto err = run(fs);
|
||||||
|
@ -9,12 +9,14 @@
|
|||||||
#include <QApplication>
|
#include <QApplication>
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
#include <ox/clargs/clargs.hpp>
|
#include <ox/clargs/clargs.hpp>
|
||||||
|
#include <ox/std/trace.hpp>
|
||||||
#include <qdark/theme.hpp>
|
#include <qdark/theme.hpp>
|
||||||
#include "mainwindow.hpp"
|
#include "mainwindow.hpp"
|
||||||
|
|
||||||
using namespace nostalgia::studio;
|
using namespace nostalgia::studio;
|
||||||
|
|
||||||
int main(int argc, char **args) {
|
int main(int argc, char **args) {
|
||||||
|
ox::trace::init();
|
||||||
ox::ClArgs clargs(argc, const_cast<const char**>(args));
|
ox::ClArgs clargs(argc, const_cast<const char**>(args));
|
||||||
QString argProfilePath = clargs.getString("profile", ":/profiles/nostalgia-studio.json").c_str();
|
QString argProfilePath = clargs.getString("profile", ":/profiles/nostalgia-studio.json").c_str();
|
||||||
|
|
||||||
|
@ -11,6 +11,7 @@
|
|||||||
#include <vector>
|
#include <vector>
|
||||||
#include <ox/clargs/clargs.hpp>
|
#include <ox/clargs/clargs.hpp>
|
||||||
#include <ox/fs/fs.hpp>
|
#include <ox/fs/fs.hpp>
|
||||||
|
#include <ox/std/trace.hpp>
|
||||||
|
|
||||||
#include "pack/pack.hpp"
|
#include "pack/pack.hpp"
|
||||||
|
|
||||||
@ -48,6 +49,7 @@ void run(ox::ClArgs args) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
int main(int argc, const char **args) {
|
int main(int argc, const char **args) {
|
||||||
|
ox::trace::init();
|
||||||
try {
|
try {
|
||||||
run(ox::ClArgs(argc, args));
|
run(ox::ClArgs(argc, args));
|
||||||
} catch (const ox::Error &err) {
|
} catch (const ox::Error &err) {
|
||||||
|
Loading…
Reference in New Issue
Block a user