Commit Graph

109 Commits

Author SHA1 Message Date
ClxS 65f1e5bec4 Removed own memberwise cast function, and replaced with one by jpmikkers. This needs converting to a recursion-less version and having the loop issue I think it has fixed 2016-03-13 01:54:22 +00:00
ClxS 1ec0570ed9 Hooked up a few callbacks. Need to work on backwards compatability next 2016-03-11 20:52:10 +00:00
ClxS e1bfd54894 Further test on injecting. Injecting a callback to the constructor and capturing the instance that way seems to work. 2016-03-10 20:13:57 +00:00
ClxS 792cfcd796 Further work on getting MSIL Injection in. Next step is to overwrite the constructor for Game1 and redirect it to SGame 2016-03-09 22:11:57 +00:00
ClxS 608a5cb257 Changed SMAPI to load the modified assembly, but it doesn't work yet. 2016-03-09 19:04:33 +00:00
ClxS 8201b96034 Encapsulated Cecil functionality. Removed references to stardew injector from program 2016-03-09 18:45:04 +00:00
ClxS c8e09331d2 Deleted unused project 2016-03-09 18:02:40 +00:00
ClxS 27bc612a46 Test event callback code 2016-03-09 16:38:12 +00:00
ClxS 318f5feada Test code for msil injection 2016-03-09 15:05:47 +00:00
Carl 1b6244c087 Merge pull request #15 from Jtfinlay/master
Use choose to select build location
2016-03-08 16:51:23 +00:00
Carl d65c97ab48 Merge pull request #16 from Jtfinlay/dev
Perf improvements
2016-03-08 16:51:13 +00:00
James Finlay 626452834f Perf improvements
- The original '+=' of the GetHash method was taking ~10% of CPU usage for the game. This should improve performance considerably.

 - The next largest CPU usage we care about is the 'GetHash' method that gets called very often. Pulling the objects.GetHash() out will reduce hits on the method.
2016-03-07 21:47:52 -08:00
James Finlay dbe648486d Use choose to select build location
- Supports by reference & env var
2016-03-07 19:02:53 -08:00
ClxS 38f59b079e Updated readme 2016-03-07 17:41:39 +00:00
ClxS eebbab0e1e Updated version, and stopped TrainerMod spamming the window with "Cyan" 2016-03-07 17:37:08 +00:00
ClxS 0462c9de79 Finished gamepad input events 2016-03-07 17:25:51 +00:00
ClxS ba6420efac Updated readme to be a little less shouty 2016-03-07 14:36:11 +00:00
ClxS dcda664c83 Updated readme 2016-03-07 14:35:24 +00:00
ClxS 71bcfc11de Partially completed events for gamepad input 2016-03-07 13:49:45 +00:00
ClxS 49090c98fc Fixed mod content path not being set correctly. Fixed object draw code. Custom objects can now be placed and show up correctly. 2016-03-06 23:28:32 +00:00
Carl 8bf9e74096 Merge pull request #9 from Jtfinlay/dev
Main refactor
2016-03-06 22:32:55 +00:00
James Finlay bfd8d04766 Reverting GetFolderPath change 2016-03-06 14:04:22 -08:00
James Finlay 93112cbb32 Additional cleanup
- Moved Version & static strings to 'Constants' class
 - Cleaned out unused code that is not being used
2016-03-06 13:58:40 -08:00
James Finlay 04abcec53c Quick fixes 2016-03-06 12:51:22 -08:00
James Finlay ac8b738985 Merge 2016-03-06 12:25:14 -08:00
James Finlay 65c7c9b733 Basic refactor of Main
- Moved sections of Main out into: ConfigureUI, ConfigurePaths, ConfigureInjector, ConfigureSDV, GameRunInvoker
2016-03-06 12:19:59 -08:00
ClxS bfe6537f84 Added KeyReleased event 2016-03-06 19:46:47 +00:00
ClxS 126ce53618 Updated readme. Small change to prevent trainermod using copy-local 2016-03-06 18:01:52 +00:00
ClxS bc84a66a6f Updated readme 2016-03-06 17:53:37 +00:00
ClxS 1fbbd653a2 Added version.cs 2016-03-06 16:48:43 +00:00
ClxS 55b5770718 Readded Program.cs Logging commands but with Obsolete attribute 2016-03-06 15:54:09 +00:00
ClxS ff96bba617 Merge pull request #4 from Jtfinlay/release
Logging refactor
2016-03-06 15:26:04 +00:00
James Finlay 0e24d862a9 Resolving conflict
- Cleaning up two trailing vars from Program that are no longer being used
2016-03-05 10:20:40 -08:00
James Finlay bae7878ecd Merge branch 'master' into release 2016-03-05 10:10:35 -08:00
James Finlay 64a0552aea Merge remote-tracking branch 'upstream/master' 2016-03-05 10:08:33 -08:00
ClxS b417604466 Removed StardewInjector. That'll go in it's own testing branch when we get around trying to integrate it. 2016-03-05 12:14:53 +00:00
James Finlay 14b59117a7 Reverting .sln changes.... 2016-03-04 23:01:45 -08:00
James Finlay a5a32e148b Pulled Logs into new Log object
- Greatly simplifies Program.cs
 - Removed the 'Colour' method so that logging is more consistent for users - willing to discuss this change. I believe it is beneficial.
 - Added uses of #DEBUG
2016-03-04 22:55:47 -08:00
James Finlay 9420dfb071 Modify default steam path
- Tries to read from ENV variable 'SteamInstallPath'.
 - We can investigate  using a choose for normal Steam installation paths, this'll be better for now than having to modify the csproj for every dev.
2016-03-04 20:17:42 -08:00
ClxS ed3bf29600 A few small clean ups and removed a lot of the readme until I think of what to put there 2016-03-04 22:21:16 +00:00
ClxS b8a9f8fc88 Added event handlers for each of the level up events 2016-03-04 20:40:46 +00:00
ClxS 4712da9f2d Improved Inventory Changed command to show which items were added/removed/alteredQuantity 2016-03-04 20:20:58 +00:00
ClxS 210db71a92 Fixed bug due to accidental early commit 2016-03-04 19:14:19 +00:00
ClxS c145e5f727 Added event for Inventory change 2016-03-04 19:10:39 +00:00
ClxS afef5648ca Refactored all of the events into their own categories 2016-03-04 14:05:36 +00:00
ClxS ec81b3306e Merged Zoryn4163/master into master 2016-03-04 13:27:22 +00:00
cjones 0887a0a22a Deleted unwanted files. Ideally these would not be in source control. 2016-03-04 13:16:50 +00:00
Zoryn Aaron a2e3039c27 i can't find a way to support #14 2016-03-03 17:08:40 -05:00
Zoryn 7fa375ea66 Merge pull request #18 from ClxS/Feature_AdditionalEventListeners
Added event for when item is placed on ground
2016-03-03 16:40:53 -05:00
ClxS c488d35b94 Merged Feature_AdditionalEventHandlers 2016-03-03 20:42:53 +00:00