Remove SDL2

This commit is contained in:
2025-07-22 14:21:23 -05:00
parent e870773fe2
commit 374e34d896
61 changed files with 54 additions and 6457 deletions

View File

@@ -27,7 +27,7 @@ namespace Tesses::Framework::Serialization {
if(rc)
{
std::string error = sqlite3_errmsg(sqlite);
throw TextException(error);
throw std::runtime_error(error);
}
this->data = static_cast<void*>(sqlite);
#endif
@@ -54,7 +54,9 @@ namespace Tesses::Framework::Serialization {
std::vector<std::vector<std::pair<std::string,std::optional<std::string>>>> SQLiteDatabase::Exec(std::string statement)
{
std::vector<std::vector<std::pair<std::string,std::optional<std::string>>>> items;
Exec(statement,items);
return items;
}
void SQLiteDatabase::Exec(std::string statement,std::vector<std::vector<std::pair<std::string,std::optional<std::string>>>>& items)
@@ -67,7 +69,7 @@ namespace Tesses::Framework::Serialization {
{
std::string errstr = err == nullptr ? "" : err;
sqlite3_free(err);
throw TextException(errstr);
throw std::runtime_error(errstr);
}
#endif
}
@@ -77,4 +79,4 @@ namespace Tesses::Framework::Serialization {
sqlite3_close(static_cast<sqlite3*>(this->data));
#endif
}
}
}