diff --git a/CMakeLists.txt b/CMakeLists.txt index 4dea64f..a69436f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -59,6 +59,7 @@ add_executable(wxMASSManager WIN32 MassBuilderManager/MassBuilderManager.cpp MassManager/MassManager.h MassManager/MassManager.cpp + Profile/Locators.h Profile/Profile.h Profile/Profile.cpp ProfileManager/ProfileManager.h diff --git a/Profile/Locators.h b/Profile/Locators.h new file mode 100644 index 0000000..06579c4 --- /dev/null +++ b/Profile/Locators.h @@ -0,0 +1,23 @@ +// wxMASSManager +// Copyright (C) 2020 Guillaume Jacquemin +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + +#pragma once + +constexpr char company_name_locator[] = "CompanyName\0\x0c\0\0\0StrProperty"; +constexpr char active_slot_locator[] = "ActiveFrameSlot\0\x0c\0\0\0IntProperty"; +constexpr char credits_locator[] = "Credit\0\x0c\0\0\0IntProperty"; +constexpr char story_progress_locator[] = "StoryProgress\0\x0c\0\0\0IntProperty"; +constexpr char last_mission_id_locator[] = "LastMissionID\0\x0c\0\0\0IntProperty"; diff --git a/Profile/Profile.cpp b/Profile/Profile.cpp index 31fc5cf..0e78630 100644 --- a/Profile/Profile.cpp +++ b/Profile/Profile.cpp @@ -32,11 +32,7 @@ #include "Profile.h" -constexpr char company_name_locator[] = "CompanyName\0\x0c\0\0\0StrProperty"; -constexpr char active_slot_locator[] = "ActiveFrameSlot\0\x0c\0\0\0IntProperty"; -constexpr char credits_locator[] = "Credit\0\x0c\0\0\0IntProperty"; -constexpr char story_progress_locator[] = "StoryProgress\0\x0c\0\0\0IntProperty"; -constexpr char last_mission_id_locator[] = "LastMissionID\0\x0c\0\0\0IntProperty"; +#include "Locators.h" using namespace Corrade;