[nostalgia] Rename plugin references to module

This commit is contained in:
Gary Talent 2020-12-17 20:40:23 -06:00
parent dcef76b488
commit 843da4a810
7 changed files with 11 additions and 11 deletions

View File

@ -97,7 +97,7 @@ if(APPLE)
set(CMAKE_INSTALL_NAME_DIR "@executable_path/../Library/nostalgia") set(CMAKE_INSTALL_NAME_DIR "@executable_path/../Library/nostalgia")
set(NOSTALGIA_DIST_BIN nostalgia-studio.app/Contents/MacOS) set(NOSTALGIA_DIST_BIN nostalgia-studio.app/Contents/MacOS)
set(NOSTALGIA_DIST_LIB nostalgia-studio.app/Contents/Library) set(NOSTALGIA_DIST_LIB nostalgia-studio.app/Contents/Library)
set(NOSTALGIA_DIST_PLUGIN nostalgia-studio.app/Contents/Plugins) set(NOSTALGIA_DIST_MODULE nostalgia-studio.app/Contents/Plugins)
set(NOSTALGIA_DIST_RESOURCES nostalgia-studio.app/Contents/Resources) set(NOSTALGIA_DIST_RESOURCES nostalgia-studio.app/Contents/Resources)
set(NOSTALGIA_DIST_MAC_APP_CONTENTS nostalgia-studio.app/Contents) set(NOSTALGIA_DIST_MAC_APP_CONTENTS nostalgia-studio.app/Contents)
else() else()
@ -108,7 +108,7 @@ else()
set(CMAKE_BUILD_WITH_INSTALL_RPATH TRUE) set(CMAKE_BUILD_WITH_INSTALL_RPATH TRUE)
set(NOSTALGIA_DIST_BIN bin) set(NOSTALGIA_DIST_BIN bin)
set(NOSTALGIA_DIST_LIB lib) set(NOSTALGIA_DIST_LIB lib)
set(NOSTALGIA_DIST_PLUGIN lib/nostalgia/modules) set(NOSTALGIA_DIST_MODULE lib/nostalgia/modules)
set(NOSTALGIA_DIST_RESOURCES share) set(NOSTALGIA_DIST_RESOURCES share)
endif() endif()

View File

@ -34,5 +34,5 @@ install(
TARGETS TARGETS
NostalgiaCore-Studio NostalgiaCore-Studio
LIBRARY DESTINATION LIBRARY DESTINATION
${NOSTALGIA_DIST_PLUGIN} ${NOSTALGIA_DIST_MODULE}
) )

View File

@ -10,7 +10,7 @@
namespace nostalgia::core { namespace nostalgia::core {
constexpr auto PluginName = "NostalgiaCore"; constexpr auto ModuleName = "NostalgiaCore";
constexpr auto TileSheetDir = "/TileSheets/"; constexpr auto TileSheetDir = "/TileSheets/";
constexpr auto PaletteDir = "/Palettes/"; constexpr auto PaletteDir = "/Palettes/";

View File

@ -1,3 +1,3 @@
{ {
"plugin_name": "Nostalgia Core" "module_name": "Nostalgia Core"
} }

View File

@ -966,7 +966,7 @@ void TileSheetEditor::setPalette() {
} }
void TileSheetEditor::saveState() { void TileSheetEditor::saveState() {
QSettings settings(m_ctx->orgName, PluginName); QSettings settings(m_ctx->orgName, ModuleName);
settings.beginGroup("TileSheetEditor/" + m_itemName); settings.beginGroup("TileSheetEditor/" + m_itemName);
settings.setValue("m_splitter/state", m_splitter->saveState()); settings.setValue("m_splitter/state", m_splitter->saveState());
settings.setValue("m_sheetData/tileRows", m_sheetData.rows()); settings.setValue("m_sheetData/tileRows", m_sheetData.rows());
@ -976,7 +976,7 @@ void TileSheetEditor::saveState() {
} }
void TileSheetEditor::restoreState() { void TileSheetEditor::restoreState() {
QSettings settings(m_ctx->orgName, PluginName); QSettings settings(m_ctx->orgName, ModuleName);
settings.beginGroup("TileSheetEditor/" + m_itemName); settings.beginGroup("TileSheetEditor/" + m_itemName);
m_splitter->restoreState(settings.value("m_splitter/state", m_splitter->saveState()).toByteArray()); m_splitter->restoreState(settings.value("m_splitter/state", m_splitter->saveState()).toByteArray());
m_colorPicker.colorTable->horizontalHeader()->restoreState(settings.value("m_colorPicker.colorTable/geometry", m_colorPicker.colorTable->horizontalHeader()->saveState()).toByteArray()); m_colorPicker.colorTable->horizontalHeader()->restoreState(settings.value("m_colorPicker.colorTable/geometry", m_colorPicker.colorTable->horizontalHeader()->saveState()).toByteArray());

View File

@ -18,5 +18,5 @@ install(
TARGETS TARGETS
NostalgiaWorld-Studio NostalgiaWorld-Studio
LIBRARY DESTINATION LIBRARY DESTINATION
${NOSTALGIA_DIST_PLUGIN} ${NOSTALGIA_DIST_MODULE}
) )

View File

@ -1,3 +1,3 @@
{ {
"plugin_name": "Nostalgia World" "module_name": "Nostalgia World"
} }