saving
This commit is contained in:
parent
39ad2ffd70
commit
943a325ec0
|
|
@ -33,7 +33,7 @@ pub fn start_module(spec: *core.SpecVariantMap, args: anytype, allocator: std.me
|
|||
}
|
||||
|
||||
pub fn shutdown_module(allocator: std.mem.Allocator) void {
|
||||
_ = allocator;
|
||||
gSoundLoader.destroy(allocator);
|
||||
gSoundEngine.shutdown();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -42,7 +42,6 @@ pub const SoundLoader = struct {
|
|||
}
|
||||
|
||||
pub fn destroy(self: *@This(), allocator: std.mem.Allocator) void {
|
||||
self.engine.deinit();
|
||||
allocator.destroy(self);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -238,6 +238,11 @@ pub const PhysicsRuntime = struct {
|
|||
for (PhysicsCharacter.BaseContainer.list.items) |physChar| {
|
||||
physChar.deinit();
|
||||
}
|
||||
var iterator = self.shapes.iterator();
|
||||
while (iterator.next()) |n| {
|
||||
n.value_ptr.shape.release();
|
||||
}
|
||||
|
||||
self.idToEntity.deinit(self.allocator);
|
||||
// core.undefineComponent(PhysicsCharacter);
|
||||
// core.undefineComponent(PhysicsCollider);
|
||||
|
|
|
|||
|
|
@ -101,6 +101,7 @@ pub fn setup(self: *@This()) !void {
|
|||
pub fn destroy(self: *@This()) void {
|
||||
self.screenContext.destroy();
|
||||
self.runtime.destroy();
|
||||
self.drawList.deinit();
|
||||
self.allocator.destroy(self);
|
||||
}
|
||||
|
||||
|
|
|
|||
23631
projects/out.txt
23631
projects/out.txt
File diff suppressed because it is too large
Load Diff
|
|
@ -234,6 +234,8 @@ pub const ExternGameObject = struct {
|
|||
}
|
||||
|
||||
pub fn destroy(self: *@This()) void {
|
||||
self.consoleWindow.deinit();
|
||||
self.physicsObjectsWindow.destroy();
|
||||
self.allocator.destroy(Slack.fromPtr(self));
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue