mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-06-26 03:14:47 +00:00
22 lines
381 B
C++
22 lines
381 B
C++
|
|
|
|
#include <iostream>
|
|
|
|
#include "schema.h"
|
|
|
|
int main()
|
|
{
|
|
cfg::Tables tables;
|
|
if (tables.load([](::luban::ByteBuf& buf, const std::string& s) { return buf.loadFromFile("../GenerateDatas/bytes/" + s + ".bytes"); }))
|
|
{
|
|
std::cout << "== load succ == " << std::endl;
|
|
}
|
|
else
|
|
{
|
|
std::cout << "== load fail == " << std::endl;
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
|