MCPcopy Create free account
hub / github.com/FreesmTeam/FreesmLauncher / rename

Method rename

launcher/minecraft/skins/SkinModel.cpp:47–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45}
46
47bool SkinModel::rename(QString newName)
48{
49 auto info = QFileInfo(m_path);
50 m_path = FS::PathCombine(info.absolutePath(), newName + ".png");
51 return FS::move(info.absoluteFilePath(), m_path);
52}
53
54QJsonObject SkinModel::toJSON() const
55{

Callers 3

setDataMethod · 0.45
loadListMethod · 0.45
enableMethod · 0.45

Calls 3

QFileInfoClass · 0.85
PathCombineFunction · 0.85
moveFunction · 0.85

Tested by

no test coverage detected