Reorganize files, add Fundamental plugins
This commit is contained in:
parent
934e7ad021
commit
2a5769a6ca
27 changed files with 515 additions and 157 deletions
53
src/dep.cpp
Normal file
53
src/dep.cpp
Normal file
|
|
@ -0,0 +1,53 @@
|
|||
// This source file compiles those nice implementation-in-header little libraries
|
||||
|
||||
#include <common.hpp> // for fopen_u8
|
||||
|
||||
#ifdef NDEBUG
|
||||
# undef DEBUG
|
||||
#endif
|
||||
#include "OpenGL.hpp"
|
||||
|
||||
#ifdef DEBUG
|
||||
// fix blendish build, missing symbol in debug mode
|
||||
extern "C" {
|
||||
float bnd_clamp(float v, float mn, float mx) {
|
||||
return (v > mx)?mx:(v < mn)?mn:v;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
#define NANOSVG_IMPLEMENTATION
|
||||
#define NANOSVG_ALL_COLOR_KEYWORDS
|
||||
#include <nanosvg.h>
|
||||
|
||||
#include <library.hpp>
|
||||
#include <network.hpp>
|
||||
|
||||
namespace rack {
|
||||
namespace library {
|
||||
std::string appChangelogUrl;
|
||||
std::string appDownloadUrl;
|
||||
std::string appVersion;
|
||||
std::string loginStatus;
|
||||
std::map<std::string, UpdateInfo> updateInfos;
|
||||
std::string updateStatus;
|
||||
std::string updateSlug;
|
||||
float updateProgress = 0.f;
|
||||
bool isSyncing = false;
|
||||
bool restartRequested = false;
|
||||
void checkAppUpdate() {}
|
||||
void checkUpdates() {}
|
||||
bool hasUpdates() { return false; }
|
||||
bool isAppUpdateAvailable() { return false; }
|
||||
bool isLoggedIn() { return false; }
|
||||
void logIn(const std::string&, const std::string&) {}
|
||||
void logOut() {}
|
||||
void syncUpdate(const std::string&) {}
|
||||
void syncUpdates() {}
|
||||
}
|
||||
namespace network {
|
||||
std::string encodeUrl(const std::string&) { return {}; }
|
||||
json_t* requestJson(Method, const std::string&, json_t*, const CookieMap&) { return nullptr; }
|
||||
bool requestDownload(const std::string&, const std::string&, float*, const CookieMap&) { return false; }
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue