mirror of
https://github.com/OpenFusionProject/OpenFusion.git
synced 2024-11-04 22: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
|
dropdata=tdata/drops.json
|
||||||
# gruntwork output (this is what you submit)
|
# gruntwork output (this is what you submit)
|
||||||
gruntwork=tdata/gruntwork.json
|
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
|
# account permission level that will be set upon character creation
|
||||||
# 1 = default, will allow *all* commands
|
# 1 = default, will allow *all* commands
|
||||||
|
@ -346,8 +346,8 @@ void CNLoginServer::characterCreate(CNSocket* sock, CNPacketData* data) {
|
|||||||
}
|
}
|
||||||
if (!Database::finishCharacter(character, loginSessions[sock].userID))
|
if (!Database::finishCharacter(character, loginSessions[sock].userID))
|
||||||
{
|
{
|
||||||
std::cout << "[WARN] Login Server: Database failed to finish character creation!" << std::endl;
|
std::cout << "[WARN] Login Server: Database failed to finish character creation!" << std::endl;
|
||||||
return invalidCharacter(sock);
|
return invalidCharacter(sock);
|
||||||
}
|
}
|
||||||
|
|
||||||
Player player = {};
|
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 "Player.hpp"
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <map>
|
|
||||||
|
|
||||||
#define DATABASE_VERSION 1
|
#define DATABASE_VERSION 1
|
||||||
|
|
||||||
@ -67,7 +66,6 @@ namespace Database {
|
|||||||
// getting players
|
// getting players
|
||||||
void getPlayer(Player* plr, int id);
|
void getPlayer(Player* plr, int id);
|
||||||
void updatePlayer(Player *player);
|
void updatePlayer(Player *player);
|
||||||
void updateBuddies(Player* player);
|
|
||||||
void removeExpiredVehicles(Player* player);
|
void removeExpiredVehicles(Player* player);
|
||||||
|
|
||||||
// buddies
|
// buddies
|
||||||
@ -89,5 +87,4 @@ namespace Database {
|
|||||||
void deleteEmails(int playerID, int64_t* indices);
|
void deleteEmails(int playerID, int64_t* indices);
|
||||||
int getNextEmailIndex(int playerID);
|
int getNextEmailIndex(int playerID);
|
||||||
void sendEmail(EmailData* data, std::vector<sItemBase> attachments);
|
void sendEmail(EmailData* data, std::vector<sItemBase> attachments);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -81,5 +81,5 @@ void settings::init() {
|
|||||||
DISABLEFIRSTUSEFLAG = reader.GetInteger("shard", "disablefirstuseflag", DISABLEFIRSTUSEFLAG);
|
DISABLEFIRSTUSEFLAG = reader.GetInteger("shard", "disablefirstuseflag", DISABLEFIRSTUSEFLAG);
|
||||||
MONITORENABLED = reader.GetBoolean("monitor", "enabled", MONITORENABLED);
|
MONITORENABLED = reader.GetBoolean("monitor", "enabled", MONITORENABLED);
|
||||||
MONITORPORT = reader.GetInteger("monitor", "port", MONITORPORT);
|
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