mirror of
https://github.com/OpenFusionProject/OpenFusion.git
synced 2024-12-23 03:40:05 +00:00
"Created" meta column + cleanup
This commit is contained in:
parent
04112377ea
commit
05f4746af4
@ -42,6 +42,10 @@ pathdata=tdata/paths.json
|
||||
dropdata=tdata/drops.json
|
||||
# gruntwork output (this is what you submit)
|
||||
gruntwork=tdata/gruntwork.json
|
||||
# location of the database
|
||||
dbpath=database.db
|
||||
# should tutorial flags be disabled off the bat?
|
||||
disablefirstuseflag=true
|
||||
|
||||
# account permission level that will be set upon character creation
|
||||
# 1 = default, will allow *all* commands
|
||||
|
@ -346,8 +346,8 @@ void CNLoginServer::characterCreate(CNSocket* sock, CNPacketData* data) {
|
||||
}
|
||||
if (!Database::finishCharacter(character, loginSessions[sock].userID))
|
||||
{
|
||||
std::cout << "[WARN] Login Server: Database failed to finish character creation!" << std::endl;
|
||||
return invalidCharacter(sock);
|
||||
std::cout << "[WARN] Login Server: Database failed to finish character creation!" << std::endl;
|
||||
return invalidCharacter(sock);
|
||||
}
|
||||
|
||||
Player player = {};
|
||||
|
944
src/Database.cpp
944
src/Database.cpp
File diff suppressed because it is too large
Load Diff
@ -3,7 +3,6 @@
|
||||
#include "Player.hpp"
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
#define DATABASE_VERSION 1
|
||||
|
||||
@ -67,7 +66,6 @@ namespace Database {
|
||||
// getting players
|
||||
void getPlayer(Player* plr, int id);
|
||||
void updatePlayer(Player *player);
|
||||
void updateBuddies(Player* player);
|
||||
void removeExpiredVehicles(Player* player);
|
||||
|
||||
// buddies
|
||||
@ -89,5 +87,4 @@ namespace Database {
|
||||
void deleteEmails(int playerID, int64_t* indices);
|
||||
int getNextEmailIndex(int playerID);
|
||||
void sendEmail(EmailData* data, std::vector<sItemBase> attachments);
|
||||
|
||||
}
|
||||
|
@ -81,5 +81,5 @@ void settings::init() {
|
||||
DISABLEFIRSTUSEFLAG = reader.GetInteger("shard", "disablefirstuseflag", DISABLEFIRSTUSEFLAG);
|
||||
MONITORENABLED = reader.GetBoolean("monitor", "enabled", MONITORENABLED);
|
||||
MONITORPORT = reader.GetInteger("monitor", "port", MONITORPORT);
|
||||
MONITORINTERVAL = reader.GetInteger("monitor", "interval", MONITORINTERVAL);
|
||||
MONITORINTERVAL = reader.GetInteger("monitor", "interval", MONITORINTERVAL);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user