diff options
Diffstat (limited to 'src/main.zig')
-rw-r--r-- | src/main.zig | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/src/main.zig b/src/main.zig index 241e557..f6a2353 100644 --- a/src/main.zig +++ b/src/main.zig @@ -16,23 +16,21 @@ // You should have received a copy of the GNU General Public License // along with Black Shades. If not, see <https://www.gnu.org/licenses/>. -pub const c = @cImport({ - @cInclude("Game.h"); - @cInclude("Constants.h"); -}); +const allocator = std.heap.c_allocator; +const free = std.c.free; +const std = @import("std"); const Loca = @import("loca").Loca; -const Scores = misc.Scores; const al = @import("zeal"); -const allocator = std.heap.c_allocator; -const configuration = @import("config.zig"); -const free = std.c.free; const gf = @import("gfz"); const gl = @import("zgl"); + +const Scores = misc.Scores; +const c = @import("cimport.zig"); +const configuration = @import("config.zig"); const misc = @import("misc.zig"); const loadScores = misc.loadScores; const saveScores = misc.saveScores; -const std = @import("std"); var game: *c.Game = undefined; |