Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I really need a way to "Re-instantiate the class" without reloading the page. Any Ideas? #21

Closed
iamjaime opened this issue Sep 19, 2021 · 4 comments

Comments

@iamjaime
Copy link

I've been reading through the loader script and i'm trying to re-init the class

so far i've got this, however it doesn't work 100% as expected.

container id: #gamecontainer

new EJS("#gamecontainer", {
biosUrl: '',
core: 'arcade',
gameUrl: 'mygamehere.zip',
pathtodata: 'data/path/here',
lightgun: false
})

Any ideas? I think the loader js file contains this logic but i'm having trouble decoding it. Any help would be appreciated.

@ethanaobrien
Copy link
Member

see the data/emulator.js file. I recently decoded it and it is mostly readable. I am still working on making it all readable

@iamjaime
Copy link
Author

nice job with the decoding! i'm going to see if i can swap my emulator file to this one and then hopefully i can figure out the way of doing a new Instance of this class

@ethanaobrien
Copy link
Member

@iamjaime

search for style in the emulator.js file. This should pull up where the style changes!

@iamjaime
Copy link
Author

got it, thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants