Compare commits
2 Commits
07faf6bd11
...
4622f61057
Author | SHA1 | Date |
---|---|---|
magical | 4622f61057 | |
magical | 3c7ae38f81 |
20
GUI.py
20
GUI.py
|
@ -231,19 +231,23 @@ def main_window(debug):
|
|||
fileName = str()
|
||||
finishGenerating = False
|
||||
oldNum = str()
|
||||
while True:
|
||||
(event, values) = window.read()
|
||||
if event == ui.WINDOW_CLOSED:
|
||||
pass
|
||||
break
|
||||
|
||||
elif event == 'Num':
|
||||
if len(values['Num']) > 3:
|
||||
window['Num'].update(oldNum)
|
||||
for x in range(4):
|
||||
if x < len(values['Num']) or values['Num'][x] not in '0123456789':
|
||||
if x < len(values['Num']):
|
||||
if values['Num'][x] not in '0123456789':
|
||||
window['Num'].update(oldNum)
|
||||
|
||||
break
|
||||
else:
|
||||
oldNum = values['Num']
|
||||
# continue
|
||||
if event == 'Generate':
|
||||
|
||||
elif event == 'Generate':
|
||||
basegame = ui.popup_get_file('Choose base game', no_titlebar=True, file_types=[('GBA File', '*.gba')], history=True, history_setting_filename=os.path.join('.', 'settings.json'))
|
||||
if basegame == '':
|
||||
ui.popup('Please select a Metroid Fusion (U) rom.', title='No source rom selected')
|
||||
|
@ -268,11 +272,12 @@ def main_window(debug):
|
|||
window['Num'].update(disabled=True)
|
||||
window['Patch'].update(disabled=True)
|
||||
window['Generate'].update(disabled=True)
|
||||
|
||||
if generating:
|
||||
ui.popup_animated(ui.DEFAULT_BASE64_LOADING_GIF, 'Generating game, please wait...', time_between_frames=20)
|
||||
window.Refresh()
|
||||
# continue
|
||||
if finishGenerating:
|
||||
|
||||
elif finishGenerating:
|
||||
ui.popup_animated(None)
|
||||
if failedgen:
|
||||
ui.popup('Could not generate a game with the current settings. Try changing your settings.', title='Metroid Fusion Open Randomizer')
|
||||
|
@ -299,6 +304,5 @@ def main_window(debug):
|
|||
window['Patch'].update(disabled=False)
|
||||
window['Generate'].update(disabled=False)
|
||||
finishGenerating = False
|
||||
# continue
|
||||
window.close()
|
||||
|
||||
|
|
14
README.md
14
README.md
|
@ -4,13 +4,23 @@ This is the official unofficial Git repository for the Metroid Fusion Open Rando
|
|||
|
||||
Considering the original repository states that the software is GPL-3.0 licensed, but no source was ever released, we're endeavouring on this (potentially failing) task of making MFOR Open Again️™️
|
||||
|
||||
## Links
|
||||
|
||||
* [OpenMFOR repository][] (This project, in case you are looking at a fork)
|
||||
* The [original MFOR repository][] on Github
|
||||
* The [original MFOR thread][] on Metroid Construction
|
||||
|
||||
[OpenMFOR repository]: https://git.inabaudonge.reisen/OpenMFOR/OpenMFOR
|
||||
[original MFOR repository]: https://github.com/Kazuto88/MFOR
|
||||
[original MFOR thread]: https://forum.metroidconstruction.com/index.php/topic,5376.0.html
|
||||
|
||||
## Project Status
|
||||
|
||||
- [x] Decent disassembly
|
||||
- [x] GUI
|
||||
- [x] CRC verification
|
||||
- [ ] Logic
|
||||
- [ ] Reconstructing missing parts of code
|
||||
- [x] Logic
|
||||
- [x] Reconstructing missing parts of code
|
||||
- [x] Patching
|
||||
- [ ] Generating BPS patches
|
||||
|
||||
|
|
Loading…
Reference in New Issue