List of commits:
Subject Hash Author Date (UTC)
Add --savehere flag and bump version to v0.6.3 a59633113908903af57e4e1c62008fe154d4cbb7 mse 2021-11-16 02:12:25
Disable networking and remove dead code aaa8bd8300f89099bace4ee1de374d05dff2c089 mse 2021-11-15 05:17:06
Update gamecontrollerdb 828ce88dd2107d69b6332b9768f7c556473b8a24 mse 2021-11-14 00:29:26
Bump version to 0.6.2 baa2215230b5deed37b69f4075bd3b3385dbb913 mse 2021-11-14 00:08:13
Fix controller menu selection 3a1567ae279289d72058d6aa23d0c4eb147db2a8 mse 2021-11-13 23:00:12
Chinese translations for confec-select and name-your-confec 6c5c9d0fadb17066af82d459d1d46868af0e9faa mse 2021-11-13 20:58:26
Parse newlines in CSL notifications fc21ba1563a1c36ff20711c84b0dc3f3d7588646 mse 2021-11-13 05:12:11
Scriptable special items: GIVESPECIAL <id> <name> 256a2581e75dc3762b098f8cae3259899f8c4a94 mse 2021-11-13 03:24:02
Improved particles, darker nights, work on GIVESPECIAL e8e352e03fdffb8a8e57f94f99028bc1c6c03376 mse 2021-11-12 08:51:36
Fix caption padding bug a49cd2397d2e1b98679828303116db858d146a93 mse 2021-11-08 23:35:07
Disable is_regular_file for Boost support ebee78afad8b29f0332a4cf719c7c4d70e8c9ff8 mse 2021-11-08 22:41:42
Bump version to 0.6.1 9bdeecf9d39b75d12e44cb65bbb97a2e8277fcd4 mse 2021-11-08 21:34:25
Improve caption printing and start work on GIVESPECIAL ec51488e4fd5552ae6d22db1b6eedfef7c2541b7 mse 2021-11-08 20:29:59
Load current screen's images for CSL support 43ef06272048c164fc754a547a57859bdfb909db mse 2021-11-06 03:23:56
Fix Mac builds and bump version to v0.6.0 efcc6a0b4858af2abd027c8379d41ee1fe073620 mse 2021-11-04 23:40:55
Remove structured initializer for older compiler support 772a6b05b40cd5f7412a7736fe574319fe67289a mse 2021-11-04 17:54:41
Make C++ standard version configurable b100287447ddf4aa503ebac88710b0b92e25aa7f mse 2021-11-04 15:56:47
Fix zoom for particles 5c80a4a30c13672f00df8f3d74297908c132f45d mse 2021-11-04 14:54:34
Use 2 different speed curves for smart zoom 56f9cd38408e4cd3ed08b75b00b131a0bc236b56 mse 2021-10-22 01:51:47
Improve smart zoom math 87da264dca8c443c24a6340002a8cd8169a1446b mse 2021-10-17 10:11:14
Commit a59633113908903af57e4e1c62008fe154d4cbb7 - Add --savehere flag and bump version to v0.6.3
Author: mse
Author date (UTC): 2021-11-16 02:12
Committer name: mse
Committer date (UTC): 2021-11-16 02:12
Parent(s): aaa8bd8300f89099bace4ee1de374d05dff2c089
Signing key:
Tree: d559488651ed228b7cfc753b8318f7e9c010691c
File Lines added Lines deleted
confec.cpp 31 26
File confec.cpp changed (mode: 100644) (index 78729cf..4a7f0a1)
... ... struct SpecialItem {
456 456 int32_t special_item_result = 0; int32_t special_item_result = 0;
457 457
458 458 // App variable definitions. // App variable definitions.
459 std::string app_version = "v0.6.2";
459 std::string app_version = "v0.6.3";
460 460 #ifdef __DEMO__ #ifdef __DEMO__
461 461 app_version += " demo"; app_version += " demo";
462 462 std::string app_name = "Confectioner Engine Demo"; std::string app_name = "Confectioner Engine Demo";
 
... ... int main( int argc, char* argv[] ){
941 941 } }
942 942 #endif #endif
943 943
944 bool windowed_mode = false;
944 bool save_here = false, windowed_mode = false;
945 945
946 946 for( int i = 1; i < argc; i++ ){ for( int i = 1; i < argc; i++ ){
947 947 std::string arg( argv[i] ); std::string arg( argv[i] );
 
... ... int main( int argc, char* argv[] ){
953 953 // parameters. // parameters.
954 954 mod_paths.insert( mod_paths.begin(), arg.substr( 2 ) ); mod_paths.insert( mod_paths.begin(), arg.substr( 2 ) );
955 955 printf( "Using mod: %s\n", mod_paths[0].c_str() ); printf( "Using mod: %s\n", mod_paths[0].c_str() );
956 }else if( arg == "--savehere" ){
957 save_here = true;
958 printf( "Using the game folder for saving.\n" );
956 959 }else if( arg == "--window" ){ }else if( arg == "--window" ){
957 960 windowed_mode = true; windowed_mode = true;
958 961 printf( "Starting in windowed mode.\n" ); printf( "Starting in windowed mode.\n" );
 
... ... int main( int argc, char* argv[] ){
960 963 fprintf( fprintf(
961 964 stderr, stderr,
962 965 "Unrecognized argument. Valid arguments are:\n%s\n", "Unrecognized argument. Valid arguments are:\n%s\n",
963 "-mModPath --window"
966 "-mModPath --savehere --window"
964 967 ); );
965 968 } }
966 969 }else{ }else{
 
... ... int main( int argc, char* argv[] ){
972 975 // Default to a local path if there is no system user data folder. // Default to a local path if there is no system user data folder.
973 976 user_data_path = data_path + "/userdata"; user_data_path = data_path + "/userdata";
974 977
975 // Make a user data path based on platform and app name.
976 #ifdef _WIN32
977 // Windows.
978 char* localappdata = std::getenv( "LocalAppData" );
979 if( localappdata ){
980 user_data_path = std::string( localappdata ) + "/" + app_name;
981 }
982 #elif defined(__APPLE__)
983 // MacOS (and iOS?)
984 // This does not work with MacOS sandboxing.
985 char* home = std::getenv( "HOME" );
986 if( home ){
987 user_data_path = std::string( home ) + "/Library/Application Support/" + app_name;
988 }
989 #elif !defined(__EMSCRIPTEN__)
990 // Other POSIX (Linux, Android, etc.)
991 char* xdgdatahome = std::getenv( "XDG_DATA_HOME" );
992 if( xdgdatahome ){
993 user_data_path = std::string( xdgdatahome ) + "/" + app_name;
994 }else{
978 if( !save_here ){
979 // Make a user data path based on platform and app name.
980 #ifdef _WIN32
981 // Windows.
982 char* localappdata = std::getenv( "LocalAppData" );
983 if( localappdata ){
984 user_data_path = std::string( localappdata ) + "/" + app_name;
985 }
986 #elif defined(__APPLE__)
987 // MacOS (and iOS?)
988 // This does not work with MacOS sandboxing.
995 989 char* home = std::getenv( "HOME" ); char* home = std::getenv( "HOME" );
996 990 if( home ){ if( home ){
997 user_data_path = std::string( home ) + "/.local/share/" + app_name;
991 user_data_path = std::string( home ) + "/Library/Application Support/" + app_name;
998 992 } }
999 }
1000 #endif
993 #elif !defined(__EMSCRIPTEN__)
994 // Other POSIX (Linux, Android, etc.)
995 char* xdgdatahome = std::getenv( "XDG_DATA_HOME" );
996 if( xdgdatahome ){
997 user_data_path = std::string( xdgdatahome ) + "/" + app_name;
998 }else{
999 char* home = std::getenv( "HOME" );
1000 if( home ){
1001 user_data_path = std::string( home ) + "/.local/share/" + app_name;
1002 }
1003 }
1004 #endif
1005 }
1001 1006
1002 1007 // Create the user data folder if it doesn't exist. // Create the user data folder if it doesn't exist.
1003 1008 #if defined(_MSC_VER) #if defined(_MSC_VER)
Hints:
Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://rocketgit.com/user/mse/ConfectionerEngine

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@ssh.rocketgit.com/user/mse/ConfectionerEngine

Clone this repository using git:
git clone git://git.rocketgit.com/user/mse/ConfectionerEngine

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a merge request:
... clone the repository ...
... make some changes and some commits ...
git push origin main