mirror of
https://github.com/PixelGuys/Cubyz.git
synced 2025-09-08 03:29:48 -04:00
Fix compiler error on windows after update.
This commit is contained in:
parent
628404393c
commit
2295ddf310
@ -31,7 +31,7 @@ pub const Compression = struct {
|
|||||||
|
|
||||||
while(try walker.next()) |entry| {
|
while(try walker.next()) |entry| {
|
||||||
if(entry.kind == .file) {
|
if(entry.kind == .file) {
|
||||||
var relPath = entry.path;
|
var relPath: []const u8 = entry.path;
|
||||||
if(builtin.os.tag == .windows) { // I hate you
|
if(builtin.os.tag == .windows) { // I hate you
|
||||||
const copy = main.stackAllocator.dupe(u8, relPath);
|
const copy = main.stackAllocator.dupe(u8, relPath);
|
||||||
std.mem.replaceScalar(u8, copy, '\\', '/');
|
std.mem.replaceScalar(u8, copy, '\\', '/');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user