fna-workbench

fna-workbench Commit Details


Date:2016-02-25 11:00:46 (8 years 9 months ago)
Author:Ethan Lee
Branch:master
Commit:fef7759983c3b01f86deec8f628c7a0c3580478b
Parents: f4806139fe6aa89aeda9cefc6d0a888a8788a056
Message:Load gamecontrollerdb before init

Changes:

File differences

src/SDL2/SDL2_FNAPlatform.cs
4343
4444
4545
46
47
48
49
50
51
52
53
54
55
56
57
4658
4759
4860
......
6072
6173
6274
63
64
65
66
67
68
69
70
71
72
73
74
7575
7676
7777
*/
SDL.SDL_SetMainReady();
// If available, load the SDL_GameControllerDB
string mappingsDB = Path.Combine(
TitleContainer.Location,
"gamecontrollerdb.txt"
);
if (File.Exists(mappingsDB))
{
SDL.SDL_GameControllerAddMappingsFromFile(
mappingsDB
);
}
// This _should_ be the first real SDL call we make...
SDL.SDL_Init(
SDL.SDL_INIT_VIDEO |
"1"
);
}
// If available, load the SDL_GameControllerDB
string mappingsDB = Path.Combine(
TitleContainer.Location,
"gamecontrollerdb.txt"
);
if (File.Exists(mappingsDB))
{
SDL.SDL_GameControllerAddMappingsFromFile(
mappingsDB
);
}
}
public static void ProgramExit(object sender, EventArgs e)

Archive Download the corresponding diff file

Branches

Number of commits:
Page rendered in 0.05819s using 13 queries.