Skip to content
This repository was archived by the owner on Mar 30, 2024. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
321 commits
Select commit Hold shift + click to select a range
f9d02f3
Change extension .m -> .mm for StateManagementController.
simontoens May 16, 2015
e2f9811
Delete StateManagementBridge.
simontoens May 16, 2015
36a8e7c
Actually save the emulator state when the 'save' button is pushed, in…
simontoens May 16, 2015
b90efcb
Add SVProgressHUD as a git submodule, and use it to show saved state/…
simontoens May 16, 2015
976e480
Format readme.
simontoens May 16, 2015
568d1c3
Add -fobjc-arc for SVProgressHUD files.
simontoens May 16, 2015
7698fed
Merge pull request #3 from simontoens/1.1.0b1_states
emufreak May 16, 2015
a74213b
Started implementing Settings for Gamecontroller
emufreak May 16, 2015
54aba7f
Set cell's accessory to "Disclosuer Indicator" for all cells instead …
simontoens May 17, 2015
dcfd903
Merge remote-tracking branch 'origin/1.1.0b1' into 1.1.0b1
emufreak May 17, 2015
a865e4b
Merge changes
emufreak May 17, 2015
c52917b
Merge pull request #5 from simontoens/1.1.0b1_settings
emufreak May 17, 2015
307530a
Merge pull request #4 from simontoens/1.1.0b1_project
emufreak May 17, 2015
9ced6c0
Implementation of Joystick settings continues
emufreak May 17, 2015
254a7ee
Implementing Code for Joypad Settings
emufreak May 23, 2015
0754124
Implementing of Settings gamecontroller almost finished
emufreak May 25, 2015
4d65a82
Settings for Gamecontroller finished. Maybe some details left. Button…
emufreak May 28, 2015
cdc3090
Work on states ui rendering.
simontoens May 19, 2015
760ea53
Update .gitignore to exclude iUAE.xcodeproj/project.xcworkspace/xcsha…
simontoens May 19, 2015
464454f
State management ui renders ok on both iPad and iPhone.
simontoens May 21, 2015
75edf10
Add more generic saveState method.
simontoens May 21, 2015
2fb1906
Store inserted disks information along with state.
simontoens May 22, 2015
971dcc9
Set InsertedDisks on State instance when loading a state.
simontoens May 30, 2015
e1b2a7a
Use NUM_DRIVES when possible instead of hardcoding the value.
simontoens May 30, 2015
eae77cd
Remove logic around persisting the inserted disks when saving a state…
simontoens Jun 1, 2015
d06b791
Change state button text.
simontoens Jun 1, 2015
6cd7c33
Add missing call to [super layoutSubviews].
simontoens Jun 2, 2015
471e9ac
Merge pull request #6 from simontoens/1.1.0b1_states_ui
emufreak Jun 6, 2015
909eb12
SVProgressHUD Added
emufreak Jun 6, 2015
84f51a2
Merge branch '1.1.0b1' of https://github.com/emufreak/iAmiga into 1.1…
emufreak Jun 6, 2015
95590cb
Attempt to fix SVProgressHUD submodule setup.
simontoens Jun 7, 2015
d47f923
-Association for all Buttons MFI Game Controller implemented
emufreak Jun 19, 2015
640ffb8
Merge remote-tracking branch 'remotes/upstream/1.1.0b1' into 1.1.0b1
simontoens Jun 20, 2015
420614e
Somewhat simplify settings logic related to keeping track what floppi…
simontoens Jun 3, 2015
3774c23
Refactor to read inserted floppies from the disk drives instead of th…
simontoens Jun 3, 2015
00d550e
Populate drive labels from emulator drive content, add drive manageme…
simontoens Jun 11, 2015
5f49bb9
AutoloadConfig enabled = auto insert persisted floppies.
simontoens Jun 13, 2015
ab7abec
Fix issue when attempting to restore disk drive state.
simontoens Jun 14, 2015
38d7211
Reduce time we wait before insering floppies when autoload is enabled.
simontoens Jun 14, 2015
19157ef
Show confirmation before restore a state. Exit settings automaticall…
simontoens Jun 14, 2015
fbe5a3d
Add properties to Settings in favor of hadcoding setting names in mul…
simontoens Jun 18, 2015
37744b0
Remove weird disk loading code at emulator startup.
simontoens Jun 19, 2015
201b5bc
Band-aid "fix" for crash when exiting and re-entering the emulator wh…
simontoens Jun 19, 2015
1a0454c
Remove project references to adfs and rom.
simontoens Jun 19, 2015
d22eaa7
Add DiskDriveService to project.
simontoens Jun 19, 2015
df77088
Move disk related methods out of the Settings class, into DiskDriveSe…
simontoens Jun 20, 2015
e3c35e3
Call setFloppyConfiguration when floppies are inserted.
simontoens Jun 20, 2015
3e2715a
Re-apply emufreak's changes to the project file that I overwrote by a…
simontoens Jun 20, 2015
33494d4
Fix log message.
simontoens Jun 23, 2015
33151d5
Merge pull request #7 from simontoens/1.1.0b1_drivestate
emufreak Jun 24, 2015
7f0b097
Don't use buttons to detect cell selection.
simontoens Jun 21, 2015
1b607c8
Cosmetic ui fixes.
simontoens Jun 23, 2015
17e8c4a
Code cleanup.
simontoens Jun 25, 2015
932d563
Rename SettingsGeneralController.m to SettingsGeneralController.mm so…
simontoens Jun 25, 2015
1598998
Add "reset amiga" option in settings.
simontoens Jun 25, 2015
7e07264
Tweak state restore disk logic - only update changed_df if the refere…
simontoens Jun 28, 2015
911e136
Swipe on drive cell to eject inserted disk.
simontoens Jun 28, 2015
bf4b1cf
Enable df2 and df3.
Jun 28, 2015
a0b2a7f
Fix drive label constraints.
Jun 28, 2015
24c0385
Fix array index typo.
Jun 29, 2015
ad10c7f
-Pausebutton for MFI game controller implemented
emufreak Jul 1, 2015
ad41364
Merge pull request #8 from simontoens/1.1.0b1_drives
emufreak Jul 1, 2015
91b7a0a
Add effects.
Jun 30, 2015
08d44cc
Wire up effects selection.
Jul 1, 2015
84e9a91
Show/hide status bar.
Jul 2, 2015
f3f2474
Toggle device status bar based on status bar setting.
Jul 3, 2015
abedb4e
Persist and apply effect selection.
Jul 3, 2015
b373678
Merge adf download logic from defender. This merge includes the foll…
Jul 4, 2015
7716e3e
Bugfix for crash when re-launching iUAE from background: self.mainCon…
Jul 4, 2015
22d638c
Use SVProgressHUD to show 'import successful' message when downloadin…
Jul 4, 2015
8e9fe6e
Move indexTitles intialization into viewDidLoad method.
Jul 4, 2015
9224bdf
Add switches to disable drives.
Jul 4, 2015
b2888f0
Tweak drive enable/disable logic.
Jul 4, 2015
8d1b7b1
Fix comment.
Jul 5, 2015
a6daba3
Only allow enabling/disabling drives when resetting the emulator. Pe…
Jul 10, 2015
a70cd5a
Merge pull request #9 from simontoens/1.1.0b1_display
emufreak Jul 10, 2015
871f07d
Merge pull request #10 from simontoens/1.1.0b1_adfdownload
emufreak Jul 10, 2015
184191d
-Fix for Debug label
emufreak Jul 1, 2015
446bf73
resolved merge conflicts
emufreak Jul 10, 2015
5718819
Merge branch 'simontoens-1.1.0b1_disabledrive' into 1.1.0b1
emufreak Jul 10, 2015
72e4e7a
Fix for conflict resolution on Add switches to disable drives. #11
emufreak Jul 10, 2015
b84d17c
Remove duplicate property declarations.
Jul 11, 2015
7024c2f
Remove unused import.
Jul 11, 2015
71fff90
Add constraints in effects selection view.
Jul 10, 2015
d1c3398
Fixes for the following mouse and joycontroller regressions:
simontoens Jul 21, 2015
fe554e9
Merge pull request #12 from simontoens/1.1.0b1_misc
emufreak Jul 22, 2015
f49aa46
iCade Joystick support
emufreak Jul 25, 2015
33b29c2
Merge remote-tracking branch 'origin/1.1.0b1' into 1.1.0b1
emufreak Jul 25, 2015
531df62
-Merge Commit #12 from Simon
emufreak Jul 25, 2015
69e90f8
Set SAFE_MEMORY_ACCESS Macro - without it the emulator crashes when l…
simontoens Nov 23, 2015
8a1a39b
Fix off by 1 error which causes the emulator to crash at startup.
simontoens Oct 1, 2015
bf3def4
Joypad improvements
emufreak Nov 30, 2015
c4eab6e
Merge pull request #14 from simontoens/1.1.0b1_safe
emufreak Dec 5, 2015
5d07856
-Fix VPAD Buttonsize
emufreak Dec 23, 2015
4bdee18
-Fixed Vpad Center position
emufreak Dec 23, 2015
a56af71
-Default Joypadonfiguration for new iUAE Setups implemented
emufreak Dec 23, 2015
dc12234
Merge remote-tracking branch 'origin/1.1.0b1' into 1.1.0b1
emufreak Dec 23, 2015
1bca3e1
Organize files under the "Settings" group alphabetically.
simontoens Dec 25, 2015
c6d2cb3
Ensure adf references in state files resolve after iUAE reload on device
simontoens Dec 25, 2015
d1d96d3
Don't create unused "saves" directory.
simontoens Dec 25, 2015
737799d
Also look for roms in user documents directory.
simontoens Dec 25, 2015
6baf171
Merge pull request #15 from simontoens/1.1.0b1_statefix
emufreak Dec 28, 2015
83bc6df
-
emufreak Dec 28, 2015
0cdf719
Merge remote-tracking branch 'origin/1.1.0b1' into 1.1.0b1
emufreak Dec 28, 2015
d77f57d
-Removed Class for Oldstyle Control Buttons Floatpanel.mm and Floatpa…
emufreak Dec 28, 2015
96fe1c6
-Fixed Bug: Config was autoloaded even if autoload config was turned off
emufreak Dec 28, 2015
f25c60f
-Select added Configuration for use immediately
emufreak Dec 28, 2015
9178a71
Cleanup - fix some warnings, use camel case for method name
simontoens Dec 29, 2015
b2c5c0b
Hook KeyButtonManagementController into the storyboard
simontoens Jan 3, 2016
6886ef2
-Fix Bug that selects wrong onscreen Joypad Button when using multitouch
emufreak Jan 5, 2016
f031b46
Hook in KeyButtonConfigurationController
simontoens Jan 5, 2016
ada7b7f
Remove dead code
simontoens Jan 11, 2016
4a9ff96
Key buttons work for joypad (InputControllerView)
simontoens Jan 14, 2016
f74e6a1
Key buttons work for both mouse and joypad
simontoens Jan 16, 2016
217ff5d
Fix 'clickedscreen' logic.
simontoens Jan 17, 2016
2dfc473
Add switch to enable/disable the key button feature
simontoens Jan 17, 2016
bb5183c
Simplify logic for tracking touches on key buttons
simontoens Jan 17, 2016
9b93e54
Merge pull request #16 from simontoens/1.1.0b1_keys
emufreak Jan 20, 2016
325d9af
-New Icons
emufreak Jan 24, 2016
7191b5f
Merge remote-tracking branch 'origin/1.1.0b1' into 1.1.0b1
emufreak Jan 24, 2016
9159161
-MFI Detection now correctly displayed in settings
emufreak Jan 31, 2016
59b7307
Fix all warnings
simontoens Feb 1, 2016
0212ea9
Merge pull request #17 from simontoens/1.1.0b1_cleanup
emufreak Feb 5, 2016
c59b056
Store key buttons as part of a group
simontoens Feb 2, 2016
33529b9
-enabled Sprite to Sprite collision detection
mithrendal Feb 9, 2016
22b2b2c
Merge pull request #18 from simontoens/1.1.0b1_default_keygroup
emufreak Feb 9, 2016
ca01a99
Merge pull request #19 from mithrendal/1.1.0b1
emufreak Feb 9, 2016
115e979
-
emufreak Feb 9, 2016
7cacc70
Merge remote-tracking branch 'origin/1.1.0b1' into 1.1.0b1
emufreak Feb 9, 2016
b4cc31b
recommit try 3. 5 files changed
mithrendal Feb 12, 2016
f2da37c
do persist vertical stretch addition value. That way it is saved per …
mithrendal Feb 13, 2016
cc4cccf
Merge pull request #22 from mithrendal/1.1.0b1
emufreak Feb 15, 2016
27bebb9
Merge remote-tracking branch 'origin/1.1.0b1' into 1.1.0b1
emufreak Feb 15, 2016
ec0ec38
-Added MultiPeerConnectivity for both joystick ports for use with iDe…
mithrendal Feb 23, 2016
c2c8c48
Refactored the code. Separated MCSession stuff from MainEmulationView…
mithrendal Feb 25, 2016
0b1c3a0
still one odd thing to repair ;-)
mithrendal Feb 25, 2016
c35447c
Added file sharing support to EMUBrowser.
MrStargazer Feb 25, 2016
d1f57d6
cleanup: removed unnecessary parameter
mithrendal Feb 25, 2016
86d246d
some more robustness ;-) preventing that the multipeer server connect…
mithrendal Feb 27, 2016
ddc3017
even more state robustness, for switching like a crazy between server…
mithrendal Feb 27, 2016
19ed452
re-enable idle timer again when going to be a client remote
mithrendal Feb 27, 2016
4ce4699
some minor improvements to the messages that will be shown to the user
mithrendal Feb 27, 2016
2da38d8
using SVProgress instead of UIAlertView for Messages
mithrendal Feb 27, 2016
6cbceab
still some code beautifying ;-)
mithrendal Feb 28, 2016
532596a
Fixes for Joystick controls when mapped to keyboard
emufreak Feb 29, 2016
28891a8
Merge pull request #25 from MrStargazer/1.1.0b1
emufreak Mar 8, 2016
cfcab77
Merge pull request #24 from mithrendal/1.1.0b1
emufreak Mar 8, 2016
bf9c303
Fix Project Settings
emufreak Mar 9, 2016
2aac775
Fix Info plist
emufreak Mar 12, 2016
8038504
Remove adf and rom references from project file
simontoens Mar 17, 2016
b829041
Fix for MFI Game Controller Crash if connecting when iuae already loaded
emufreak Mar 25, 2016
ad3e24b
Merge pull request #26 from simontoens/dev
emufreak Mar 25, 2016
504ddf8
Moving methods from SDL_sysyostick.m to MFI_ControllerReaderView
emufreak Mar 27, 2016
c4f3e5f
Merge remote-tracking branch 'origin/dev' into dev
emufreak Mar 27, 2016
ad3e802
Moved some joystickrelated Methods to MultipeerconnectivityController
emufreak Mar 27, 2016
f64a27b
Experimental Changes
emufreak Mar 28, 2016
e8cc77d
Support for Keyboard button when using iPhone as a controller
emufreak Mar 30, 2016
85f488d
Merge branch 'devtest' into dev
emufreak Mar 30, 2016
b94ae5b
added optimization information to readme.
mdbergmann Apr 7, 2016
314f4d0
Added motion controller as an alternative to virtual touch dpad.
MrStargazer Apr 7, 2016
71edfc2
Merge pull request #43 from MrStargazer/dev
emufreak Apr 10, 2016
fbd6599
Merge pull request #42 from mdbergmann/dev
emufreak Apr 10, 2016
843addf
Begin Changes for support of Multiple Joypads with mapping
emufreak Apr 11, 2016
234d0b2
Merge remote-tracking branch 'origin/dev' into dev
emufreak Apr 11, 2016
deb9fa7
-256k Roms work now and hopefully Cloanto Roms
emufreak Apr 12, 2016
0712cfd
Removed all references to .rom and .adf
emufreak Apr 13, 2016
6ab0e22
Issue #29: limited hard drive support
simontoens Apr 23, 2016
cbe56a3
Merge pull request #46 from simontoens/dev_hd
emufreak Apr 24, 2016
b7f2b15
-Changes to support Cloanto rom
emufreak Apr 26, 2016
dde97f8
Merge remote-tracking branch 'origin/dev' into dev
emufreak Apr 26, 2016
bedace1
-Preparation in Settings to Support Multiple Joypads with different K…
emufreak May 10, 2016
cc65c4c
-Removed Adfs and Kickroms
emufreak May 10, 2016
864d2f3
Issue #44: add section to settings to let the user pick a rom file to…
simontoens May 17, 2016
88c3fd8
Merge pull request #49 from simontoens/dev_rom-selector
emufreak May 17, 2016
ff9f4d2
Joystick Mapping Finished but not tested yet
emufreak May 21, 2016
001069a
Better handling of settings that require an emulator restart
simontoens May 25, 2016
b354e93
Enabling/disabling NTSC mode now shows that an emulator reset is requ…
simontoens May 26, 2016
df5534b
Minor cleanup: remove unnecessary if stmts
simontoens May 26, 2016
f043b9b
Update README
simontoens May 28, 2016
dc413ff
Merge pull request #50 from simontoens/reset_refactor
emufreak May 28, 2016
08c3266
-
emufreak Jun 14, 2016
31889b5
Pulled Changes from remote
emufreak Jun 21, 2016
9d473c4
Fixes for Joypad connectivity
emufreak Jun 21, 2016
f774627
Fix for unmounting and mounting a different HDF within a single reset
simontoens Jun 29, 2016
c6d8fa7
Merge pull request #52 from simontoens/dev
emufreak Jul 4, 2016
a36efe4
undo for tests
emufreak Jul 8, 2016
e89935d
Merge remote-tracking branch 'origin/dev' into dev
emufreak Jul 8, 2016
7fc0f49
-Joystickcleanup
emufreak Jul 8, 2016
4304245
-Its now possible to select menu after starting the app without activ…
emufreak Jul 17, 2016
4373921
Update README.md
emufreak Jul 24, 2016
beb9d65
-Some changes to compile for cydia store
emufreak Jul 24, 2016
c9afa9e
Merge remote-tracking branch 'origin/dev' into dev
emufreak Jul 24, 2016
7b54892
-
emufreak Jul 24, 2016
9831bcc
-Imported savestate from UAE4All2
emufreak Jul 31, 2016
08794f4
-Fixes in Savestate
emufreak Aug 8, 2016
8c4ce07
Control Mouse using Mfi Joypad
emufreak Aug 28, 2016
531573f
Scroll table views to the previously selected row
simontoens Aug 16, 2016
e231639
Project file tweaks/fixes
simontoens Aug 22, 2016
055b25f
Delete dead code
simontoens Aug 22, 2016
f2041a5
Clear previously selected adf when the underlying data changes
simontoens Aug 23, 2016
6f9010c
Clear selected row when deleting adf
simontoens Aug 29, 2016
4b37966
Sort files in the "Settings" group alphabetically for easier browsing
simontoens Aug 29, 2016
7f51d66
Merge pull request #55 from simontoens/states
emufreak Aug 29, 2016
a9308ab
-Last fixes Mousecontrol over MFI Controller
emufreak Sep 5, 2016
4b9895b
Merge remote-tracking branch 'origin/dev' into dev
emufreak Sep 5, 2016
45b78ef
Optionally mount hd as read-only
simontoens Sep 3, 2016
3335307
Merge pull request #57 from simontoens/ro_hd
emufreak Sep 17, 2016
c99e911
-Changes to Support iOS 10
emufreak Sep 17, 2016
b63e848
-Fix For Controller For All
emufreak Sep 20, 2016
d634a6f
-Fix for Compatibility to iOS 7 and 8
emufreak Sep 20, 2016
df34dc6
The emulator now plays sound alongside other apps (issue #28)
simontoens Oct 3, 2016
58cdf0e
Expose sound volume as a setting (issue #28)
simontoens Oct 3, 2016
dd3a751
Abstract audio interaction behind a new class, AudioService
simontoens Oct 4, 2016
6502199
Fix comments
simontoens Oct 4, 2016
29f0f02
Be more defensive when initializing sound volume
simontoens Oct 4, 2016
d78b4ff
Prefix volume setting name with '_'
simontoens Oct 19, 2016
6fbe506
Merge pull request #59 from simontoens/dev_sound
emufreak Oct 20, 2016
9b95c38
Show image of previously selected state
simontoens Nov 15, 2016
7536881
Merge pull request #60 from simontoens/dev
emufreak Nov 16, 2016
c65cbe4
Fix using multiple configurations
emufreak Nov 16, 2016
d14f6bf
Merge remote-tracking branch 'origin/dev' into dev
emufreak Nov 16, 2016
c7a7c44
-Fixes
emufreak Nov 18, 2016
8e787eb
-Fixing some references
emufreak Nov 18, 2016
c2788de
-Preparations for Release 1.2.2
emufreak Nov 30, 2016
1b66ff3
Beautiful Amiga Hires Output Fix: Use of 640 iOS horizontal pixels in…
mithrendal Jan 4, 2017
babed2d
some better performance for dual playfield drawing
mithrendal Jan 6, 2017
72c6daa
MAX_WORDS_PER_LINE=40 => 640 pixel were too low for hires display, 1s…
mithrendal Jan 6, 2017
0dbed46
set the max vertical height from 240 to 256, because the at 240 the l…
mithrendal Jan 11, 2017
9db52fc
Automatic adaptive vertical stretching implemented if stretching is s…
mithrendal Jan 14, 2017
d6a88c3
added some lagging into the adaptive vertical stretching, because som…
mithrendal Jan 15, 2017
ee34014
When both settings were enabled showStatus and Stretchscreen and if a…
mithrendal Jan 15, 2017
b66ea28
Enhancement: Some games do not start their viewport on the first line…
mithrendal Jan 16, 2017
1bc5dc7
If stretch setting is off then really do not stretch also not over th…
mithrendal Jan 17, 2017
dbfc84a
This commit makes it to react more conservative and therefore more ro…
mithrendal Jan 23, 2017
2d78551
Adresses the bug of constantly changing magnifications on some device…
mithrendal Jan 23, 2017
d273bc9
When stretching was disabled and a previous PAL screen used the full …
mithrendal Jan 28, 2017
31c1607
Adjustment to the stretching strategy (for iPads). Now it basically n…
mithrendal Feb 15, 2017
ae8d0ee
Merge pull request #63 from mithrendal/dev
emufreak Feb 19, 2017
e7c281d
-Configurable Memory
emufreak Apr 13, 2017
b19b9af
Merge branch 'pr/63' into dev
emufreak Apr 13, 2017
978b774
Merge remote-tracking branch 'origin/dev' into dev
emufreak Apr 13, 2017
6e3e83b
-64bit Support
emufreak Apr 15, 2017
fdd9aee
-Fix for Hardwaresettingspage on iphone
emufreak Apr 15, 2017
2f25419
-Fix for Hardwaresettings and multiple configurations
emufreak Apr 15, 2017
05b138e
-Fix Bug with VirtualPad
emufreak Apr 28, 2017
6244a58
64 Bit related bug fixes for controller mapping and for restoring sav…
mithrendal May 23, 2017
7089c8b
spaces instead of tabs
mithrendal May 23, 2017
f62d675
Merge pull request #69 from mithrendal/dev
emufreak May 27, 2017
68b4ee8
-Joystickfixes
emufreak May 27, 2017
c5836d7
Merge remote-tracking branch 'origin/dev' into dev
emufreak May 27, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 0 additions & 1 deletion .gitattributes

This file was deleted.

9 changes: 8 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ build/*
*.perspective
*.perspectivev3
*.xcodeproj/project.xcworkspace/xcuserdata/*
*.xcodeproj/project.xcworkspace/xcshareddata/*
*.xcodeproj/xcuserdata/*

# old school
Expand All @@ -22,6 +23,12 @@ disks/*
# vim
*.swp

# emacs
*~

rgetSpecific/DotC/Info-DotC.plist

libraries/sdl-mini
disks/
Packages/
iUAE/
roms/
38 changes: 38 additions & 0 deletions .gitignore.save
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
q


# XCode noise
build/*
*.pbxuser
*.mode1v3
*.pyc
*~.nib/
*.perspective
*.perspectivev3
*.xcodeproj/project.xcworkspace/xcuserdata/*
*.xcodeproj/project.xcworkspace/xcshareddata/*
*.xcodeproj/xcuserdata/*

# old school
.svn

# osx noise
.DS_store
profile

# iAmiga specific
disks/*

# vim
*.swp

# emacs
*~

rgetSpecific/DotC/Info-DotC.plist

disks/
Packages/
iUAE/
roms/
Submodules/
6 changes: 6 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[submodule "Submodules/SVProgressHUD"]
path = Submodules/SVProgressHUD
url = https://github.com/TransitApp/SVProgressHUD.git
[submodule "Submodules/STObjCToolbelt"]
path = Submodules/STObjCToolbelt
url = https://github.com/simontoens/STObjCToolbelt
32 changes: 32 additions & 0 deletions Classes/AddConfigurationViewController.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
// Created by Emufr3ak on 31.01.2016
//
// iUAE is free software: you may copy, redistribute
// and/or modify it under the terms of the GNU General Public License as
// published by the Free Software Foundation, either version 2 of the
// License, or (at your option) any later version.
//
// This file 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, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.

#import <UIKit/UIKit.h>

@protocol AddConfigurationDelegate
- (void)configurationAdded:(NSString *)configurationname;
@end

@interface AddConfigurationViewController : UITableViewController

- (IBAction)addConfiguration:(id)sender;
- (IBAction)toggleAddConfiguration:(id)sender;

@property (readwrite, retain) IBOutlet UIButton *add;
@property (readwrite, retain) IBOutlet UITextField *name;
@property (nonatomic, assign) id<AddConfigurationDelegate> delegate;

@end
94 changes: 94 additions & 0 deletions Classes/AddConfigurationViewController.mm
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
// Created by Emufr3ak on 31.1.2016
//
// iUAE is free software: you may copy, redistribute
// and/or modify it under the terms of the GNU General Public License as
// published by the Free Software Foundation, either version 2 of the
// License, or (at your option) any later version.
//
// This file 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, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#import "AddConfigurationViewController.h"
#import "Settings.h"

@interface AddConfigurationViewController ()

@end

@implementation AddConfigurationViewController {
Settings *settings;
NSMutableArray *configurations;
}

- (void)viewDidLoad {
[super viewDidLoad];

[_add setEnabled:false];

settings = [[Settings alloc] init];

configurations = [[settings arrayForKey:@"configurations"] mutableCopy];

if(!configurations)
{
configurations = [[NSMutableArray alloc] init];
}

}

- (void)didReceiveMemoryWarning {
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
}

-(IBAction)addConfiguration:(id)sender {
if([configurations containsObject:_name.text] || [_name.text isEqual:@"None"])
{
[[UIAlertView alloc] initWithTitle:@"Configuration Exists"
message:@"Configuration Already exists enter a new Name"
delegate:nil
cancelButtonTitle:@"OK"
otherButtonTitles:nil];
}
else
{
[configurations addObject:[NSString stringWithString:_name.text]];
[settings setObject:configurations forKey:@"configurations"];
[self.navigationController popViewControllerAnimated:YES];

if(self.delegate)
{
[self.delegate configurationAdded:_name.text];
}
}

}

-(IBAction)toggleAddConfiguration:(id)sender {

if(_name.text.length > 0)
{
[_add setEnabled:TRUE];
}
else
{
[_add setEnabled:FALSE];
}
}

-(void)dealloc {
[_add release];
[_name release];
[configurations release];
[settings release];
[super dealloc];
}

#pragma mark - Table view data source

@end
30 changes: 30 additions & 0 deletions Classes/AdfImporter.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
// Created by Simon Toens on 25.03.15
//
// iUAE is free software: you may copy, redistribute
// and/or modify it under the terms of the GNU General Public License as
// published by the Free Software Foundation, either version 2 of the
// License, or (at your option) any later version.
//
// This file 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, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.

#import <Foundation/Foundation.h>

@interface AdfImporter : NSObject

/**
* Handles .adf and .zip paths. Intended to be used with the AppDelegate's
* - (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation
* method.
*/
- (BOOL)import:(NSString *)path;

- (BOOL)isDownloadedAdf:(NSString *)path;

@end
97 changes: 97 additions & 0 deletions Classes/AdfImporter.mm
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
// Created by Simon Toens on 25.03.15
//
// iUAE is free software: you may copy, redistribute
// and/or modify it under the terms of the GNU General Public License as
// published by the Free Software Foundation, either version 2 of the
// License, or (at your option) any later version.
//
// This file 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, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.

#import "AdfImporter.h"
#import "ZipArchive.h"

static NSString *kAdfExtension = @"adf";
static NSString *kZipExtension = @"zip";
static NSString *kAdfsDirectoryName = @"downloadedadfs";

@implementation AdfImporter {
@private
NSFileManager *_fileManager;
NSString *_adfsDirectory;
}

- (instancetype)init {
if (self = [super init]) {
_fileManager = [[NSFileManager defaultManager] retain];
NSString *docunentsDirectory = [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) firstObject];
_adfsDirectory = [[docunentsDirectory stringByAppendingPathComponent:kAdfsDirectoryName] retain];
[_fileManager createDirectoryAtPath:_adfsDirectory withIntermediateDirectories:YES attributes:nil error:NULL];
}
return self;
}

- (void)dealloc {
[_fileManager release];
[_adfsDirectory release];
[super dealloc];
}

# pragma mark - Public methods

- (BOOL)import:(NSString *)path {
BOOL imported = NO;
if ([self isAdf:path]) {
imported = [self importAdf:path];
} else if ([self isZip:path]) {
imported = [self importZippedAdf:path];
} else {
imported = NO;
}
if (imported) {
[_fileManager removeItemAtPath:path error:NULL];
}
return imported;
}

- (BOOL)isDownloadedAdf:(NSString *)path {
NSString *directory = [path stringByDeletingLastPathComponent];
return [directory isEqualToString:_adfsDirectory];
}

# pragma mark - Private methods

- (BOOL)importAdf:(NSString *)adfPath {
NSString *adfFileName = [adfPath lastPathComponent];
NSString *destPath = [_adfsDirectory stringByAppendingPathComponent:adfFileName];
return [_fileManager copyItemAtPath:adfPath toPath:destPath error:NULL];
}

- (BOOL)importZippedAdf:(NSString *)zipPath {
// this does not validate the zip content
ZipArchive *zipArchive = [[ZipArchive alloc] init];
BOOL unzipOk = [zipArchive UnzipOpenFile:zipPath];
@try {
unzipOk = unzipOk && [zipArchive UnzipFileTo:_adfsDirectory overWrite:YES];
} @finally {
[zipArchive UnzipCloseFile];
}
[zipArchive release];
return unzipOk;
}

- (BOOL)isAdf:(NSString *)path {
return [kAdfExtension caseInsensitiveCompare:path.pathExtension] == NSOrderedSame;
}

- (BOOL)isZip:(NSString *)path {
return [kZipExtension caseInsensitiveCompare:path.pathExtension] == NSOrderedSame;
}

@end
36 changes: 36 additions & 0 deletions Classes/AudioService.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
// Created by Simon Toens on 04.10.16
//
// iUAE is free software: you may copy, redistribute
// and/or modify it under the terms of the GNU General Public License as
// published by the Free Software Foundation, either version 2 of the
// License, or (at your option) any later version.
//
// This file 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, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.

#import <Foundation/Foundation.h>

/**
* The audio service handles interactions with the sound subsystem.
*
* Note that this class uses the emulator state as source of truth, it does not/should not read configuration.
*/
@interface AudioService : NSObject

/**
* Sets the emulator volume: 0 = min, 1 = max.
*/
- (void)setVolume:(float)volume;

/**
* Returns the emulator volume: 0 = min, 1 = max.
*/
- (float)getVolume;

@end
Loading