Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Degrees of Lewdity
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Vrelnir
Degrees of Lewdity
Commits
d088adbc
Commit
d088adbc
authored
1 year ago
by
majou
Browse files
Options
Downloads
Patches
Plain Diff
remove save to file restrictions on mobile
parent
c89f7010
No related branches found
No related tags found
1 merge request
!2187
Compat fixes for old mobiles
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
game/base-system/overlays/saves-export-import.twee
+20
-21
20 additions, 21 deletions
game/base-system/overlays/saves-export-import.twee
with
20 additions
and
21 deletions
game/base-system/overlays/saves-export-import.twee
+
20
−
21
View file @
d088adbc
:: Saves Export/Import Overlay [widget]
:: Saves Export/Import Overlay [widget]
<<widget "optionsExportImport">>
<<widget "optionsExportImport">>
<<if SugarCube.Browser.isMobile.any() is true>>
<<if SugarCube.Browser.isMobile.Android is true>>
Note that saving and loading from file does not work on Android currently.
<span class="red">Note that saving and loading from file may not work on Android devices in all environments.</span>
<<else>>
<</if>>
<<set $_errorCount to document.querySelectorAll('.error').length>>
<<set $_errorCount to document.querySelectorAll('.error').length>>
<<set $_dolErrorCount to document.querySelectorAll('.dol-error').length>>
<<set $_dolErrorCount to document.querySelectorAll('.dol-error').length>>
<<set $_customErrorCount to Errors.log.length>>
<<set $_customErrorCount to Errors.log.length>>
<<set $_bypassRestrictions to $debug is 1 or $_errorCount gt 0 or $_dolErrorCount gt 0 or $_customErrorCount gt 0>>
<<set $_bypassRestrictions to $debug is 1 or $_errorCount gt 0 or $_dolErrorCount gt 0 or $_customErrorCount gt 0>>
Load from file: <input id="saveImport" type="file" value="Load from file" onchange="importSave(this.files)">
Load from file: <input id="saveImport" type="file" value="Load from file" onchange="importSave(this.files)">
<br><br>
<br><br>
<<if tags().includes("nosave")>>
<<if tags().includes("nosave")>>
You can't export your current save here!
You can't export your current save here!
<<elseif $ironmanmode>>
<<elseif $ironmanmode>>
<<if $_bypassRestrictions>>
<<if $_bypassRestrictions>>
<input type="button" class="saveMenuButton" value="Save to file" onclick="IronMan.exportCurrent()">
<input type="button" class="saveMenuButton" value="Save to file" onclick="IronMan.exportCurrent()">
<<else>>
Unable to save to file during ironman-mode. Only autosaves can be exported.
<</if>>
<<elseif ($replayScene is undefined) or $_bypassRestrictions>>
<<set _exportName to "'degrees-of-lewdity"+($saveName isnot ''?'-'+$saveName:'')+ "'">>
<input type="button" class="saveMenuButton" value="Save to file" @onclick="'updateExportDay();SugarCube.Save.export('+_exportName+')'">
<<else>>
<<else>>
Unable to save to file
c
ur
rently
.
Unable to save to file
d
ur
ing ironman-mode. Only autosaves can be exported
.
<</if>>
<</if>>
<<elseif ($replayScene is undefined) or $_bypassRestrictions>>
<<set _exportName to "'degrees-of-lewdity"+($saveName isnot ''?'-'+$saveName:'')+ "'">>
<input type="button" class="saveMenuButton" value="Save to file" @onclick="'updateExportDay();SugarCube.Save.export('+_exportName+')'">
<<else>>
Unable to save to file currently.
<</if>>
<</if>>
<br><br>
<br><br>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment