forked from shalzuth/ROMEncryption
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrom.lua
39 lines (31 loc) · 880 Bytes
/
rom.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
-- CameraController.singletonInstance.zoomMin = 0.1;
-- UnityEngine.Application.targetFrameRate = 60.0;
-- RenderSettings.fog = false;
if DebugLog == nil then
DebugLog = {};
DebugLog.File = io.open("/data/local/tmp/script/rom.log", "a");
DebugLog.Write = function(data)
DebugLog.File:write(os.date("%x %X") .. ' ' .. data .. "\n");
DebugLog.File:flush();
end;
end;
if Game~=nil and Game.me~=nil then
DebugLog.Write(tostring(Game.me));
end;
function SetFrameRate(fps)
UnityEngine.Application.targetFrameRate = fps;
end;
function ZoomHack(apply)
if apply then
CameraController.singletonInstance.zoomMin = 0.1;
else
CameraController.singletonInstance.zoomMin = 0.7;
end
end;
function RemoveFog()
RenderSettings.fog = false;
end;
ZoomHack(true);
RemoveFog();
SetFrameRate(60.0);
DebugLog.Write("loaded");