Rename BlocDb to SavegameDb
This commit is contained in:
parent
8c83c32b3d
commit
829ad425aa
4 changed files with 12 additions and 12 deletions
|
@ -17,7 +17,7 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include "block_db.hpp"
|
||||
#include "savegame_db.hpp"
|
||||
#include <QMainWindow>
|
||||
#include <QStringList>
|
||||
#include <list>
|
||||
|
@ -50,7 +50,7 @@ private:
|
|||
void open_file_from_dialog();
|
||||
void load_memory_cards (const QStringList& paths);
|
||||
|
||||
duck::BlockDb m_block_db;
|
||||
duck::SavegameDb m_block_db;
|
||||
std::list<mc::psx::MemoryCard> m_memcards;
|
||||
QGridLayout* m_main_lay;
|
||||
widget::BlockGrid* m_lower_grid;
|
||||
|
|
|
@ -38,7 +38,7 @@ executable(app_name,
|
|||
'widgets/detail/block_drag_and_drop.cpp',
|
||||
'make_qt_animation.cpp',
|
||||
'animated_pixmap.cpp',
|
||||
'block_db.cpp',
|
||||
'savegame_db.cpp',
|
||||
include_directories: inc,
|
||||
dependencies: [
|
||||
qt6_dep,
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
* along with Memoserv. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "block_db.hpp"
|
||||
#include "savegame_db.hpp"
|
||||
#include "memcard/block.hpp"
|
||||
#include <algorithm>
|
||||
#include <ciso646>
|
||||
|
@ -41,11 +41,11 @@ std::string BlockEntry::title() const {
|
|||
return blocks.front().title();
|
||||
}
|
||||
|
||||
BlockDb::BlockDb() = default;
|
||||
BlockDb::~BlockDb() noexcept = default;
|
||||
SavegameDb::SavegameDb() = default;
|
||||
SavegameDb::~SavegameDb() noexcept = default;
|
||||
|
||||
template <bool Const>
|
||||
unsigned int BlockDb::add (const std::vector<mc::psx::BasicBlock<Const> >& blocks) {
|
||||
unsigned int SavegameDb::add (const std::vector<mc::psx::BasicBlock<Const> >& blocks) {
|
||||
constexpr auto block_size = mc::psx::BasicBlock<Const>::BlockByteSize;
|
||||
constexpr auto frame_size = mc::psx::BasicFrame<Const>::Size;
|
||||
assert(not blocks.empty());
|
||||
|
@ -77,6 +77,6 @@ unsigned int BlockDb::add (const std::vector<mc::psx::BasicBlock<Const> >& block
|
|||
return static_cast<unsigned int>(m_saves.size() - 1u);
|
||||
}
|
||||
|
||||
template unsigned int BlockDb::add<true> (const std::vector<mc::psx::BasicBlock<true> >&);
|
||||
template unsigned int BlockDb::add<false> (const std::vector<mc::psx::BasicBlock<false> >&);
|
||||
template unsigned int SavegameDb::add<true> (const std::vector<mc::psx::BasicBlock<true> >&);
|
||||
template unsigned int SavegameDb::add<false> (const std::vector<mc::psx::BasicBlock<false> >&);
|
||||
} //namespace duck
|
|
@ -42,10 +42,10 @@ struct BlockEntry {
|
|||
std::unique_ptr<uint8_t[]> data;
|
||||
};
|
||||
|
||||
class BlockDb {
|
||||
class SavegameDb {
|
||||
public:
|
||||
BlockDb();
|
||||
~BlockDb() noexcept;
|
||||
SavegameDb();
|
||||
~SavegameDb() noexcept;
|
||||
|
||||
template <bool Const>
|
||||
unsigned int add (const std::vector<mc::psx::BasicBlock<Const> >& blocks);
|
Loading…
Add table
Reference in a new issue