Commit Graph

10089 Commits

Author SHA1 Message Date
hegyak addb22ea39 Merge branch 'master' of https://github.com/TASVideos/BizHawk 2015-12-01 16:48:23 -08:00
Hathor86 32271899c3 Comments on Watch derived class; started on watchlist
+ Moved WatchList.cs to specific directory (just a matter of ordering)
+ Mark some properties and methods in watchlist as obsolete
+ Create Comparer class that are used for sorting (Only domain and
address atm, other a still stored with linq). Unlike OrderBy in LINQ, it
doesn't create a new list for sorting (so it saves memory), furthermore,
it runs faster.
Finally, change to type of Watch.Address from nullable lon to regular
long (the rare times watch.Address.Value was used, there wasn't any
check of null and so, program would have crashed -
InvalidOperationException -)
2015-12-01 22:18:55 +01:00
feos ef563a77e0 tastudio: differentiate between marker with text and regular marker.
both have buttons and context menu items.
if mass adding regular markers, give a warning for 50+.
marker with text can only be added one at a time.

fix #504
2015-12-01 19:36:13 +03:00
hegyak 9cfef3f063 Merge branch 'master' of https://github.com/TASVideos/BizHawk 2015-11-30 16:00:46 -08:00
feos d8ec9e6878 tastudio: editable HoverInterval for BranchView (stored to TAStudioSettings).
when comparing, we want them to show up instantly.
2015-11-30 23:45:06 +03:00
Hathor86 ee860fd820 Quick fix of save watch
Wrong ToString() method was called when writing
Reading was ok
2015-11-30 18:27:55 +01:00
hegyak 020c71557b Add some code for Slide Code Handling for Action Replay MAX.
TODO: Detect Action Replay MAX codes Vs. GameShark/Action Replay codes.
2015-11-29 14:22:23 -08:00
feos 3c07f7e649 lua: optional domain for memory functions.
fixes #538.

I tested heavy memory reading, and it's not adding noticeable overhead.
2015-11-29 22:56:28 +03:00
feos eb41e8a8e0 lua: remove registered functions on toggle option. 2015-11-29 22:56:28 +03:00
feos 0be8f8c564 lua: another pixelFont tweak. 2015-11-29 22:56:26 +03:00
Hathor86 e7de250fb2 Comments on ByteWatch
Also moved nullable value type to non nullable (with exception
prevention).
2015-11-29 17:13:32 +01:00
Hathor86 01639c3e10 Watch comparaison interfaces implementation
Watch now implements IEquatable<Watch>, IEquatable<Cheat>,
IComparable<Watch>
Operators had also been overloaded. You can now put watches from SAME
domain in a list and easly sort them.
Sorting is based on address first then size.
2015-11-29 13:46:50 +01:00
feos fbd1d6d8e2 Lua: autoload recent scripts too (unless there's a recent session to autoload).
pixelText bg tweak.
2015-11-29 13:29:48 +03:00
Hathor86 1e2f4e12be Watch refactoring
Some improvement when you get Available types. Used to return a new
array each time you call the function. It has been transformed into an
IEnumrable and yield return.
DisplayType, PreviousType and Watchsize have been moved outside the
Watch Class
2015-11-28 22:52:00 +01:00
feos 128c09e7b4 progress with lua:
- added fceux and gens/snes9x pixelated fonts
- added gui.pixelFont() function for them (no resizing, so perfectly scalable)
- added background to drawText and pixelText (halo was painfully slow, so just a box)
- reordered fore and back colors for gui.text (no need to specify back every time we want to change fore). thought its back color was shadow, that is obsoleted by halo now, whose color we can't change. anyway, it's way slower than simple text functions, so they should be used mostly.
- option to toggle all scripts if none is selected. greatly reduces routine when heavily tweaking a script, and is just generally pretty.
2015-11-28 22:19:15 +03:00
Hathor86 565f19fc83 Watch: Comments & reordering
Just comments some methods and reordering them
2015-11-27 13:43:49 +01:00
Hathor86 d4b4c06f0c Draft of API
So, I create a new dll named BizHawk.Client.ApiHawk and moved few stuff
to it.
Also moved some stuff to BizHawk.Client.Common. Don't think it can be
desiociated.

I started comment Watch and rearrange code (put some #region etc...

It compiles and it seems working :)
2015-11-26 23:05:29 +01:00
feos 1928d04137 default font now has halo.
if someone really prefers the shadow way (why would anyone?), it can be made optional. well, halo color can't be edited. regarding lua, this only affects gui.text, since it uses the same bitmap font.
2015-11-26 22:51:48 +03:00
feos 2ce108e310 lua: ability to SetBranchText.
doesn't make much sense to add text to existing branches from lua, but highly useful to set some text to a new branch.
and we also have a default branch text variable now.
2015-11-26 00:12:25 +03:00
feos 796a62f883 tastudio: moved branch and marker popups to their controls.
marker add called from MarkerControl doesn't check TasView selection anymore: current frame has higher priority, and if we don't want a marker on it, we use TasView's doubleclic or menu to mark selection.
sight MarkerControl cleanup.
2015-11-25 23:28:46 +03:00
feos 344cd94aa2 tastudio: MarkerControl buttons (and commands).
also moved marker context menu from TAStudio to MarkerControl.
2015-11-25 00:10:34 +03:00
feos 33144e18c7 tastudio: add buttons to branch view. 2015-11-24 20:43:43 +03:00
feos 1f1382ceb7 tastudio: attach usertext to branches, make it editable from menu.
moved branch functions and menu items around.
2015-11-23 23:27:27 +03:00
hegyak 9b0a94dd8e Merge branch 'master' of https://github.com/TASVideos/BizHawk 2015-11-22 16:04:05 -08:00
hegyak 280b7a84c7 Clear the Text Box inputs for GBA. 2015-11-22 16:03:22 -08:00
Hathor86 f3771e7b98 Ambigous call fixed
This bug occured sometime, when we try to call Load() by reflection
without parameters.
2015-11-22 23:45:57 +01:00
hegyak 3f12ae3485 Correct a small bug in GBA Game Shark code adding. Description is NOT code. 2015-11-22 13:51:10 -08:00
Hathor86 dee47067ad Merge pull request #540 from Hathor86/CustomTool-Improvement
Custom tool improvement
2015-11-22 20:49:10 +01:00
hegyak 2055e375aa Add Game Shark and Action Replay Code GBA code handling. Action Replay MAX, Codebreaker, GameShark SP, and Xploder codes are not detected or handled, yet. Action Replay MAX does have a decryption key set. 2015-11-22 11:37:42 -08:00
feos 5715dc2a84 tastudio: add user text area to screenshot control.
padding height is autocalculated based on string and bitmap width.
todo: add branch user text and use it for the above.
2015-11-22 22:31:08 +03:00
Hathor86 6f18e44fe7 Code Formating
Just more sexy
2015-11-22 17:56:08 +01:00
feos 2723739a02 tastudio: screenshot control tweaks.
- don't cut it on the left if tasview is narrow, push it right instead
- don't hide it instantly if it spawns right under the mouse cursor, hide it if mouse leaves *it*, not branch control
- keep consistent Y position
2015-11-22 19:54:21 +03:00
Hathor86 7d2e02b94b Debugging and POC
Change some logic into ToolManager for better practice
Adjust the look of toolstrip items
Update comments
2015-11-22 17:37:00 +01:00
feos 099e37ad76 tastudio: load session and rebuild columns on every file load.
it was only loaded on tastudio launch, so whenever it's not autoloading a recent project, loading one with different syncSettings would cause ! columns.
2015-11-22 17:17:01 +03:00
feos 33ac38fe5d tastudio: do right-click frame move only on Alt
right-scrolling should not fire frame drag AND greenzone invalidation (every time we accidentally move the mouse over the frame column)
2015-11-22 12:44:24 +03:00
hegyak 7ec0e74c3f Add Support for Game Genie to GameBoy, Game Gear, Nintendo Entertainment System and Sega Master System. 2015-11-21 05:55:09 -08:00
Hathor86 d92eed5845 Menuing
Change the menu item name
Change interface name
turn menu item into a submenu dynamically filled
2015-11-21 01:03:48 +01:00
hegyak 37445ccb89 Merge branch 'master' of https://github.com/TASVideos/BizHawk 2015-11-20 07:26:13 -08:00
hegyak 570e0aeb34 Add SNES Game Genie Handling. Added start of NES Game Genie handling. Minor code cleanup in GameShark.cs
Also updated .gitignore to have Output/Gameboy on the list
2015-11-20 07:25:09 -08:00
Hathor86 8ad0dc3a6d Fix missing } 2015-11-20 14:09:27 +01:00
Hathor86 155a08c7bb Merge pull request #524 from Hathor86/master
External custom gametool feature
2015-11-20 13:30:14 +01:00
Hathor86 bae4d53cbf merge remote master 2015-11-20 13:14:38 +01:00
hegyak c4016affee Add SMS Action Replay handling. 2015-11-19 11:07:52 -08:00
hegyak a3b7770333 GameShark for N64 Corrected. Genesis Game Genie and Action Replay Added. Made Code detection smarter for several systems. 2015-11-19 09:34:09 -08:00
zeromus 10fcf662a1 oops, i didnt commit enough 2015-11-18 21:18:00 -06:00
zeromus bc2e8c773d fix crash in loading hex editor (openadvanced regression) 2015-11-18 21:17:34 -06:00
zeromus 4de1d244ce fix endianness of sprintf floats. i thought i checked this, but i guess not 2015-11-18 18:12:16 -06:00
zeromus 4b46bc60bb TempFileManager throws less exceptions 2015-11-17 17:41:01 -06:00
zeromus 5086ea62c2 fix libretro sprintf of %f and %e throwing exceptions 2015-11-17 17:40:51 -06:00
zeromus 28eae0dcb1 Revert "Revert "common logic for tempfiles""
This reverts commit 5196fc6b70.
2015-11-17 17:26:03 -06:00