Rename to ITGmania

- executable name:
  - linux: itgmania
  - windows: ITGmania.exe
  - macOS: ITGmania.app
- config path:
  - linux: ~/.itgmania
  - windows; %AppData%\ITGmania
  - macOS: ~/Library/Application Support/ITGmania
This commit is contained in:
Martin Natano
2022-04-02 20:14:57 -07:00
committed by teejusb
parent a8b9c1da09
commit 02008eb469
14 changed files with 97 additions and 104 deletions
+15 -15
View File
@@ -53,15 +53,15 @@ if(NOT APPLE)
endif()
if(MSVC OR APPLE)
set(SM_NAME_RELEASE "StepMania")
set(SM_NAME_DEBUG "StepMania-debug")
set(SM_NAME_MINSIZEREL "StepMania-min-size")
set(SM_NAME_RELWITHDEBINFO "StepMania-release-symbols")
set(SM_NAME_RELEASE "ITGmania")
set(SM_NAME_DEBUG "ITGmania-debug")
set(SM_NAME_MINSIZEREL "ITGmania-min-size")
set(SM_NAME_RELWITHDEBINFO "ITGmania-release-symbols")
else()
set(SM_NAME_RELEASE "stepmania")
set(SM_NAME_DEBUG "stepmania-debug")
set(SM_NAME_MINSIZEREL "stepmania-min-size")
set(SM_NAME_RELWITHDEBINFO "stepmania-release-symbols")
set(SM_NAME_RELEASE "itgmania")
set(SM_NAME_DEBUG "itgmania-debug")
set(SM_NAME_MINSIZEREL "itgmania-min-size")
set(SM_NAME_RELWITHDEBINFO "itgmania-release-symbols")
endif()
# Configure generated files here.
@@ -322,20 +322,20 @@ elseif(APPLE)
"${SM_ROOT_DIR}/${SM_APP_RELEASE_NAME}.app" .\; cd
${SM_ROOT_DIR}\; hdiutil create
"${SM_DMG_RELEASE_NAME}" -VOLNAME
"StepMania ${SM_DMG_VERSION}" -SRCFOLDER
"ITGmania ${SM_DMG_VERSION}" -SRCFOLDER
"dmgtmpdir/${SM_NAME_VERSION}/" -OV\; rm -fR
dmgtmpdir\; popd\;)
# Add the ability to copy the resource file.
add_custom_command(TARGET "${SM_EXE_NAME}" POST_BUILD
COMMAND ${CMAKE_COMMAND} -E make_directory
"$<TARGET_FILE_DIR:StepMania>/../Resources"
"$<TARGET_FILE_DIR:ITGmania>/../Resources"
COMMAND ${CMAKE_COMMAND} -E copy
"${SM_XCODE_DIR}/smicon.icns"
"$<TARGET_FILE_DIR:StepMania>/../Resources/"
"$<TARGET_FILE_DIR:ITGmania>/../Resources/"
COMMAND ${CMAKE_COMMAND} -E copy
"${SM_XCODE_DIR}/Hardware.plist"
"$<TARGET_FILE_DIR:StepMania>/../Resources/")
"$<TARGET_FILE_DIR:ITGmania>/../Resources/")
else() # Linux
set_target_properties("${SM_EXE_NAME}"
PROPERTIES RUNTIME_OUTPUT_DIRECTORY
@@ -613,7 +613,7 @@ else() # Unix / Linux TODO: Remember to find and locate the zip archive files.
list(APPEND SMDATA_LINK_LIB ${PULSEAUDIO_LIBRARY})
# PACKAGE_NAME and PACKAGE_VERSION are only used in this scenario. Why is
# not clear. TODO: Remove this silliness.
target_compile_definitions("${SM_EXE_NAME}" PRIVATE PACKAGE_NAME="StepMania")
target_compile_definitions("${SM_EXE_NAME}" PRIVATE PACKAGE_NAME="ITGmania")
set(PACKAGE_VERSION "${SM_VERSION_MAJOR}.${SM_VERSION_MINOR}")
target_compile_definitions("${SM_EXE_NAME}" PRIVATE
PACKAGE_VERSION="${PACKAGE_VERSION}")
@@ -730,7 +730,7 @@ target_include_directories("${SM_EXE_NAME}" PUBLIC ${SM_INCLUDE_DIRS})
if(WIN32)
set(SM_INSTALL_DESTINATION ".")
else()
set(SM_INSTALL_DESTINATION "stepmania-5.1")
set(SM_INSTALL_DESTINATION "itgmania")
endif()
if(NOT APPLE)
@@ -754,7 +754,7 @@ if(NOT APPLE)
DESTINATION "${SM_FULL_INSTALLATION_PATH}")
install(FILES "${SM_PROGRAM_DIR}/swscale-2.dll"
DESTINATION "${SM_FULL_INSTALLATION_PATH}")
install(FILES "${SM_PROGRAM_DIR}/StepMania.vdi"
install(FILES "${SM_PROGRAM_DIR}/ITGmania.vdi"
DESTINATION "${SM_FULL_INSTALLATION_PATH}")
# foreach(SM_WINDOW_DLL "${SM_WINDOWS_PROGRAM_DLLS}") install(FILES
+4 -6
View File
@@ -5,10 +5,8 @@
/**
* @brief A friendly string to refer to the product in crash dialogs, etc.
*
* As an example, use "StepMania" here, not "StepMania4".
*/
#define PRODUCT_FAMILY_BARE StepMania
#define PRODUCT_FAMILY_BARE ITGmania
/**
* @brief A unique name for each application that you might want installed side-by-side with other applications.
@@ -16,7 +14,7 @@
* As an example, use "StepMania4" here, not "StepMania".
* It would cause a conflict with older versions such as StepMania 3.X.
*/
#define PRODUCT_ID_BARE StepMania 5.1
#define PRODUCT_ID_BARE ITGmania
// These cannot be #undef'd so make them unlikely to conflict with anything
#define PRODUCT_STRINGIFY(x) #x
@@ -27,8 +25,8 @@
#define VIDEO_TROUBLESHOOTING_URL "http://old.stepmania.com/stepmaniawiki.php?title=Video_Driver_Troubleshooting"
/** @brief The URL to report bugs on the program. */
#define REPORT_BUG_URL "https://github.com/stepmania/stepmania/issues"
#define SM_DOWNLOAD_URL "https://www.stepmania.com/download/"
#define REPORT_BUG_URL "https://github.com/itgmania/itgmania/issues"
#define SM_DOWNLOAD_URL "https://www.itgmania.com/"
#define CAN_INSTALL_PACKAGES true
+5 -8
View File
@@ -2,18 +2,15 @@
; Don't forget to also change ProductInfo.h!
; a friendly string to refer to the product
!define PRODUCT_FAMILY "StepMania"
; PRODUCT_ID must NOT be "StepMania" unless you want people to uninstall 3.9
; when they install StepMania 5. (not recommended)
!define PRODUCT_ID "StepMania 5.1"
!define PRODUCT_FAMILY "ITGmania"
!define PRODUCT_ID "ITGmania"
; TODO: This needs to be updated with the git rev hash
!define PRODUCT_VER "5.1-UNKNOWN"
!define PRODUCT_VER "0.5.1"
!define PRODUCT_DISPLAY "${PRODUCT_FAMILY} ${PRODUCT_VER}"
!define PRODUCT_BITMAP "sm5"
!define PRODUCT_URL "https://www.stepmania.com/"
!define UPDATES_URL "https://www.stepmania.com/download/"
!define PRODUCT_URL "https://www.itgmania.com/"
!define UPDATES_URL "https://www.itgmania.com/"
;!define INSTALL_EXTERNAL_PCKS
;!define INSTALL_INTERNAL_PCKS
+1 -1
View File
@@ -412,7 +412,7 @@ void ArchHooks::MountUserFilesystems( const RString &sDirOfExecutable )
* Lowercase the PRODUCT_ID; dotfiles and directories are almost always lowercase.
*/
const char *szHome = getenv( "HOME" );
RString sUserDataPath = ssprintf( "%s/.%s", szHome? szHome:".", "stepmania-5.1" ); //call an ambulance!
RString sUserDataPath = ssprintf( "%s/.%s", szHome? szHome:".", "itgmania" );
FILEMAN->Mount( "dir", sUserDataPath + "/Announcers", "/Announcers" );
FILEMAN->Mount( "dir", sUserDataPath + "/BGAnimations", "/BGAnimations" );
FILEMAN->Mount( "dir", sUserDataPath + "/BackgroundEffects", "/BackgroundEffects" );
+8 -8
View File
@@ -198,14 +198,14 @@ BEGIN
BEGIN
BLOCK "040904b0"
BEGIN
VALUE "CompanyName", "StepMania Team \n http://www.stepmania.com/"
VALUE "FileDescription", "StepMania"
VALUE "FileVersion", "5, 0, 0, 0"
VALUE "InternalName", "StepMania 5"
VALUE "LegalCopyright", "Copyright © 2001-2014"
VALUE "OriginalFilename", "StepMania.exe"
VALUE "ProductName", "StepMania"
VALUE "ProductVersion", "5, 0, 0, 0"
VALUE "CompanyName", "ITGmania Team \n http://www.itgmania.com/"
VALUE "FileDescription", "ITGmania"
VALUE "FileVersion", "0, 5, 1, 0"
VALUE "InternalName", "ITGmania"
VALUE "LegalCopyright", "Copyright © 2022"
VALUE "OriginalFilename", "ITGmania.exe"
VALUE "ProductName", "ITGmania"
VALUE "ProductVersion", "0, 5, 1, 0"
END
END
BLOCK "VarFileInfo"