File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ tryMount()
6161local recursiveWatch = recursiveWatchMaker (watched , mainRealpath )
6262
6363if hasMain then
64- if lovr .getOS () == " Android" then
64+ if lovr .system . getOS () == " Android" then
6565 print (" Loading a script from the user files directory. To upload a new script, cd to your project directory and run: adb push --sync . " .. target )
6666 end
6767
143143 else
144144 message = message .. " does not contain a main.lua."
145145 end
146- if lovr .getOS () == " Android" then
146+ if lovr .system . getOS () == " Android" then
147147 message = message .. " \n\n To upload a " .. ((not hasProject or not atLeastOneFile ) and " " or " fixed " )
148148 .. " project,\n cd to your project directory and run:\n "
149149 .. " adb push --sync . " .. target
Original file line number Diff line number Diff line change 11-- lodr helper figures out what directory it is we're supposed to be running
2- if lovr .getOS () == " Android" then
2+ local system = lovr .system or require (' lovr.system' )
3+ if system .getOS () == " Android" then
34 lovr .filesystem .setIdentity (" IGNORETHIS" ) -- This will be ignored and is to work around a bug in Lovr 0.14.
45 local appId = lovr .filesystem .getIdentity ()
56 if not appId then error (" Failed to get the Android application ID of the loader app" ) end
You can’t perform that action at this time.
0 commit comments