see ya later allocator

This commit is contained in:
IlyaShurupov 2024-03-22 14:05:03 +03:00 committed by Ilya Shurupov
parent 57d5591d4a
commit fa2d0aaa92
44 changed files with 32 additions and 1693 deletions

View file

@ -40,24 +40,10 @@ private:
LibraryWidget<EventHandler, Canvas> gui;
};
void runApp() {
int main() {
tp::GlobalGUIConfig config;
tp::gGlobalGUIConfig = &config;
LibraryViewer lib;
lib.run();
}
int main() {
tp::ModuleManifest* deps[] = { &tp::gModuleLibraryViewer, nullptr };
tp::ModuleManifest binModule("LibViewEntry", nullptr, nullptr, deps);
if (!binModule.initialize()) {
return 1;
}
runApp();
binModule.deinitialize();
}

View file

@ -6,11 +6,6 @@
#include "picojson.h"
#include <filesystem>
namespace tp {
static ModuleManifest* deps[] = { &gModuleGraphics, &gModuleStrings, &gModuleAllocators, nullptr };
ModuleManifest gModuleLibraryViewer = ModuleManifest("LibraryViewer", nullptr, nullptr, deps);
}
using namespace tp;
#define AS_STR (int1*) trackProperty.second.to_str().c_str()

View file

@ -10,10 +10,6 @@ tp::String getHome();
tp::String getSongLocalPath(SongId id);
SONG_FORMAT getSongFormat(const tp::String& path);
namespace tp {
extern ModuleManifest gModuleLibraryViewer;
}
class Track {
public:
Track() = default;